/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 32 private String localeName; field in BasicDurationFormatterFactory 41 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 121 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 122 if (!localeName.equals(this.localeName)) { in setLocale() 123 this.localeName = localeName; in setLocale() 125 builder = builder.withLocale(localeName); in setLocale() 128 formatter = formatter.withLocale(localeName); in setLocale() 163 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 181 .setLocale(localeName) in getPeriodFormatter() 195 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 64 private String localeName; field in BasicPeriodFormatterFactory 70 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 87 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 89 this.localeName = localeName; in setLocale() 201 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 216 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 24 private String localeName; field in BasicDurationFormatter 46 String localeName, 52 this.localeName = localeName; 80 if (!locName.equals(localeName)) { 102 localeName, tz);
|
D | BasicPeriodFormatter.java | 26 private String localeName; field in BasicPeriodFormatter 31 String localeName, in BasicPeriodFormatter() argument 35 this.localeName = localeName; in BasicPeriodFormatter() 50 if (!this.localeName.equals(locName)) { in withLocale()
|
D | BasicPeriodBuilderFactory.java | 149 Settings setLocale(String localeName) { in setLocale() argument 150 PeriodFormatterData data = ds.get(localeName); in setLocale() 255 public PeriodBuilderFactory setLocale(String localeName) { in setLocale() argument 256 settings = settings.setLocale(localeName); in setLocale() 358 public PeriodBuilder withLocale(String localeName) { 359 BasicPeriodBuilderFactory.Settings newSettings = settings.setLocale(localeName);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 31 private String localeName; field in BasicDurationFormatterFactory 40 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 120 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 121 if (!localeName.equals(this.localeName)) { in setLocale() 122 this.localeName = localeName; in setLocale() 124 builder = builder.withLocale(localeName); in setLocale() 127 formatter = formatter.withLocale(localeName); in setLocale() 162 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 180 .setLocale(localeName) in getPeriodFormatter() 194 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 62 private String localeName; field in BasicPeriodFormatterFactory 68 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 85 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 87 this.localeName = localeName; in setLocale() 199 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 214 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 23 private String localeName; field in BasicDurationFormatter 45 String localeName, 51 this.localeName = localeName; 79 if (!locName.equals(localeName)) { 101 localeName, tz);
|
D | BasicPeriodFormatter.java | 25 private String localeName; field in BasicPeriodFormatter 30 String localeName, in BasicPeriodFormatter() argument 34 this.localeName = localeName; in BasicPeriodFormatter() 49 if (!this.localeName.equals(locName)) { in withLocale()
|
D | BasicPeriodBuilderFactory.java | 148 Settings setLocale(String localeName) { in setLocale() argument 149 PeriodFormatterData data = ds.get(localeName); in setLocale() 254 public PeriodBuilderFactory setLocale(String localeName) { in setLocale() argument 255 settings = settings.setLocale(localeName); in setLocale() 357 public PeriodBuilder withLocale(String localeName) { 358 BasicPeriodBuilderFactory.Settings newSettings = settings.setLocale(localeName);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 88 public PeriodFormatterData get(String localeName) { in get() argument 90 int x = localeName.indexOf('@'); in get() 92 localeName = localeName.substring(0, x); in get() 96 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 100 PeriodFormatterData ld = cache.get(localeName); in get() 102 String ln = localeName; in get() 131 ld = new PeriodFormatterData(localeName, dr); in get() 142 "Duration data not found for " + localeName, PATH, in get() 143 localeName); in get() 149 cache.put(localeName, ld); in get() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 86 public PeriodFormatterData get(String localeName) { in get() argument 88 int x = localeName.indexOf('@'); in get() 90 localeName = localeName.substring(0, x); in get() 94 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 98 PeriodFormatterData ld = cache.get(localeName); in get() 100 String ln = localeName; in get() 129 ld = new PeriodFormatterData(localeName, dr); in get() 140 "Duration data not found for " + localeName, PATH, in get() 141 localeName); in get() 147 cache.put(localeName, ld); in get() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 37 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 39 logln("Number test " + localeName); in _testLocale() 43 logln("Currency test " + localeName); in _testLocale() 47 logln("Percent test " + localeName); in _testLocale() 52 logln("Scientific test " + localeName); in _testLocale() 64 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 66 logln("Number test " + localeName); in TestLocale() 70 logln("Currency test " + localeName); in TestLocale() 74 logln("Percent test " + localeName); in TestLocale()
|
D | IntlTestDateFormat.java | 67 private 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()
|
D | PluralFormatUnitTest.java | 221 String localeName = locale0.toString().length() == 0 ? "root" : locale0.toString(); in TestSamples() local 222 logln(localeName + "\t=\t" + same.get(locale0)); in TestSamples() 223 logln(localeName + "\ttoString\t" + rules.toString()); in TestSamples() 233 errln("Empty list for " + localeName + " : " + keyword); in TestSamples() 235 logln("\t" + localeName + " : " + keyword + " ; " + list); in TestSamples()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 38 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 40 logln("Number test " + localeName); in _testLocale() 44 logln("Currency test " + localeName); in _testLocale() 48 logln("Percent test " + localeName); in _testLocale() 53 logln("Scientific test " + localeName); in _testLocale() 65 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 67 logln("Number test " + localeName); in TestLocale() 71 logln("Currency test " + localeName); in TestLocale() 75 logln("Percent test " + localeName); in TestLocale()
|
D | IntlTestDateFormat.java | 68 private void localeTest(final ULocale locale, final String localeName) { in localeTest() argument 77 fTestName = new String("Time test " + timeStyle + " (" + localeName + ")"); in localeTest() 91 fTestName = new String("Date test " + dateStyle + " (" + localeName + ")"); in localeTest() 104 … fTestName = new String("DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")"); in localeTest()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | UResourceBundle.java | 109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 126 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 128 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 147 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 149 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 369 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 375 return ICUResourceBundle.getBundleInstance(baseName, localeName, root, disableFallback); in instantiateBundle() 378 return ResourceBundleWrapper.getBundleInstance(baseName, localeName, root, in instantiateBundle() 385 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | UResourceBundle.java | 109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 125 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 127 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 145 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 147 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 354 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 360 return ICUResourceBundle.getBundleInstance(baseName, localeName, root, disableFallback); in instantiateBundle() 363 return ResourceBundleWrapper.getBundleInstance(baseName, localeName, root, in instantiateBundle() 370 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TrieMapTest.java | 82 String localeName; in init() local 84 localeName = ULocale.getDisplayName(languageCode, locale); in init() 85 if (!localeName.equals(languageCode)) { in init() 86 if (!unicodeTestMap.containsKey(localeName)) { in init() 87 unicodeTestMap.put(localeName, MASK & i++); in init() 93 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 94 if (!localeName.equals(countryCode)) { in init() 95 if (!unicodeTestMap.containsKey(localeName)) { in init() 96 unicodeTestMap.put(localeName, MASK & i++); in init() 395 String localeName; in TestTimeGet() local [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | TrieMapTest.java | 81 String localeName; in init() local 83 localeName = ULocale.getDisplayName(languageCode, locale); in init() 84 if (!localeName.equals(languageCode)) { in init() 85 if (!unicodeTestMap.containsKey(localeName)) { in init() 86 unicodeTestMap.put(localeName, MASK & i++); in init() 92 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 93 if (!localeName.equals(countryCode)) { in init() 94 if (!unicodeTestMap.containsKey(localeName)) { in init() 95 unicodeTestMap.put(localeName, MASK & i++); in init() 394 String localeName; in TestTimeGet() local [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
D | TestDataModule.java | 43 … static final TestDataModule get(String baseName, String localeName) throws DataModuleFormatError { in get() argument 44 return new ResourceModule(baseName, localeName); in get()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | TestDataModule.java | 44 … static final TestDataModule get(String baseName, String localeName) throws DataModuleFormatError { in get() argument 45 return new ResourceModule(baseName, localeName); in get()
|
/external/icu/icu4c/source/test/intltest/ |
D | tsdate.cpp | 69 IntlTestDateFormat::testLocale(/*char* par, */const Locale& locale, const UnicodeString& localeName) in testLocale() argument 82 fTestName = (UnicodeString) "Time test " + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale() 93 fTestName = (UnicodeString) "Date test " + (int32_t) dateStyle + " (" + localeName + ")"; in testLocale() 106 …ring) "DateTime test " + (int32_t) dateStyle + "/" + (int32_t) timeStyle + " (" + localeName + ")"; in testLocale()
|
D | tsnmfmt.cpp | 77 …TestNumberFormat::testLocale(/* char* par, */const Locale& locale, const UnicodeString& localeName) in testLocale() argument 83 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 89 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 95 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 102 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale()
|