/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 29 private String localeName; field in BasicDurationFormatterFactory 38 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 113 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 114 if (!localeName.equals(this.localeName)) { in setLocale() 115 this.localeName = localeName; in setLocale() 117 builder = builder.withLocale(localeName); in setLocale() 120 formatter = formatter.withLocale(localeName); in setLocale() 153 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 171 .setLocale(localeName) in getPeriodFormatter() 185 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 60 private String localeName; field in BasicPeriodFormatterFactory 66 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 82 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 84 this.localeName = localeName; in setLocale() 190 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 205 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 21 private String localeName; field in BasicDurationFormatter 43 String localeName, 49 this.localeName = localeName; 73 if (!locName.equals(localeName)) { 94 localeName, tz);
|
D | BasicPeriodFormatter.java | 23 private String localeName; field in BasicPeriodFormatter 28 String localeName, in BasicPeriodFormatter() argument 32 this.localeName = localeName; in BasicPeriodFormatter() 45 if (!this.localeName.equals(locName)) { in withLocale()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 30 private String localeName; field in BasicDurationFormatterFactory 39 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 114 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 115 if (!localeName.equals(this.localeName)) { in setLocale() 116 this.localeName = localeName; in setLocale() 118 builder = builder.withLocale(localeName); in setLocale() 121 formatter = formatter.withLocale(localeName); in setLocale() 154 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 172 .setLocale(localeName) in getPeriodFormatter() 186 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 62 private String localeName; field in BasicPeriodFormatterFactory 68 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 84 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 86 this.localeName = localeName; in setLocale() 192 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 207 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 22 private String localeName; field in BasicDurationFormatter 44 String localeName, 50 this.localeName = localeName; 74 if (!locName.equals(localeName)) { 95 localeName, tz);
|
D | BasicPeriodFormatter.java | 24 private String localeName; field in BasicPeriodFormatter 29 String localeName, in BasicPeriodFormatter() argument 33 this.localeName = localeName; in BasicPeriodFormatter() 46 if (!this.localeName.equals(locName)) { in withLocale()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 83 public PeriodFormatterData get(String localeName) { in get() argument 85 int x = localeName.indexOf('@'); in get() 87 localeName = localeName.substring(0, x); in get() 91 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 95 PeriodFormatterData ld = cache.get(localeName); in get() 97 String ln = localeName; in get() 126 ld = new PeriodFormatterData(localeName, dr); in get() 137 "Duration data not found for " + localeName, PATH, in get() 138 localeName); in get() 144 cache.put(localeName, ld); in get() [all …]
|
D | YMDDateFormatter.java | 22 private String localeName; field in YMDDateFormatter 46 public YMDDateFormatter(String requestedFields, String localeName, in YMDDateFormatter() argument 49 this.localeName = localeName; in YMDDateFormatter() 52 Locale locale = Utils.localeFromString(localeName); in YMDDateFormatter() 83 if (!locName.equals(localeName)) { in withLocale() 94 return new YMDDateFormatter(requestedFields, localeName, tz); in withTimeZone()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 85 public PeriodFormatterData get(String localeName) { in get() argument 87 int x = localeName.indexOf('@'); in get() 89 localeName = localeName.substring(0, x); in get() 93 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 97 PeriodFormatterData ld = cache.get(localeName); in get() 99 String ln = localeName; in get() 128 ld = new PeriodFormatterData(localeName, dr); in get() 139 "Duration data not found for " + localeName, PATH, in get() 140 localeName); in get() 146 cache.put(localeName, ld); in get() [all …]
|
D | YMDDateFormatter.java | 24 private String localeName; field in YMDDateFormatter 48 public YMDDateFormatter(String requestedFields, String localeName, in YMDDateFormatter() argument 51 this.localeName = localeName; in YMDDateFormatter() 54 Locale locale = Utils.localeFromString(localeName); in YMDDateFormatter() 85 if (!locName.equals(localeName)) { in withLocale() 96 return new YMDDateFormatter(requestedFields, localeName, tz); in withTimeZone()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 36 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 38 logln("Number test " + localeName); in _testLocale() 42 logln("Currency test " + localeName); in _testLocale() 46 logln("Percent test " + localeName); in _testLocale() 51 logln("Scientific test " + localeName); in _testLocale() 62 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 64 logln("Number test " + localeName); in TestLocale() 68 logln("Currency test " + localeName); in TestLocale() 72 logln("Percent test " + localeName); in TestLocale()
|
D | IntlTestDateFormat.java | 63 public void localeTest(final ULocale locale, final String localeName) { in localeTest() argument 72 fTestName = new String("Time test " + timeStyle + " (" + localeName + ")"); in localeTest() 86 fTestName = new String("Date test " + dateStyle + " (" + localeName + ")"); in localeTest() 99 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 40 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 42 logln("Number test " + localeName); in _testLocale() 46 logln("Currency test " + localeName); in _testLocale() 50 logln("Percent test " + localeName); in _testLocale() 55 logln("Scientific test " + localeName); in _testLocale() 66 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 68 logln("Number test " + localeName); in TestLocale() 72 logln("Currency test " + localeName); in TestLocale() 76 logln("Percent test " + localeName); in TestLocale()
|
D | IntlTestDateFormat.java | 67 public void localeTest(final ULocale locale, final String localeName) { in localeTest() argument 76 fTestName = new String("Time test " + timeStyle + " (" + localeName + ")"); in localeTest() 90 fTestName = new String("Date test " + dateStyle + " (" + localeName + ")"); in localeTest() 103 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | UResourceBundle.java | 107 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 108 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 122 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 124 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 141 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 143 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 516 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 527 String fullName = ICUResourceBundleReader.getFullName(baseName, localeName); in instantiateBundle() 530 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() 534 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | UResourceBundle.java | 107 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 108 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 123 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 125 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 143 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 145 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 531 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 542 String fullName = ICUResourceBundleReader.getFullName(baseName, localeName); in instantiateBundle() 545 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() 549 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | TrieMapTest.java | 76 String localeName; in init() local 78 localeName = ULocale.getDisplayName(languageCode, locale); in init() 79 if (!localeName.equals(languageCode)) { in init() 80 if (!unicodeTestMap.containsKey(localeName)) { in init() 81 unicodeTestMap.put(localeName, MASK & i++); in init() 87 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 88 if (!localeName.equals(countryCode)) { in init() 89 if (!unicodeTestMap.containsKey(localeName)) { in init() 90 unicodeTestMap.put(localeName, MASK & i++); in init() 377 String localeName; in TestTimeGet() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TrieMapTest.java | 80 String localeName; in init() local 82 localeName = ULocale.getDisplayName(languageCode, locale); in init() 83 if (!localeName.equals(languageCode)) { in init() 84 if (!unicodeTestMap.containsKey(localeName)) { in init() 85 unicodeTestMap.put(localeName, MASK & i++); in init() 91 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 92 if (!localeName.equals(countryCode)) { in init() 93 if (!unicodeTestMap.containsKey(localeName)) { in init() 94 unicodeTestMap.put(localeName, MASK & i++); in init() 381 String localeName; in TestTimeGet() local [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
D | ModuleTest.java | 38 private String localeName = null; field in ModuleTest 45 localeName = locName; in ModuleTest() 84 m = Factory.get(baseName, localeName); in validate()
|
D | TestDataModule.java | 41 … static final TestDataModule get(String baseName, String localeName) throws DataModuleFormatError { in get() argument 42 return new ResourceModule(baseName, localeName); in get()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | ModuleTest.java | 39 private String localeName = null; field in ModuleTest 46 localeName = locName; in ModuleTest() 85 m = Factory.get(baseName, localeName); in validate()
|
D | TestDataModule.java | 42 … static final TestDataModule get(String baseName, String localeName) throws DataModuleFormatError { in get() argument 43 return new ResourceModule(baseName, localeName); in get()
|
/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 67 IntlTestDateFormat::testLocale(/*char* par, */const Locale& locale, const UnicodeString& localeName) in testLocale() argument 80 fTestName = (UnicodeString) "Time test " + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale() 91 fTestName = (UnicodeString) "Date test " + (int32_t) dateStyle + " (" + localeName + ")"; in testLocale() 104 …ring) "DateTime test " + (int32_t) dateStyle + "/" + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale()
|