Home
last modified time | relevance | path

Searched refs:localeName (Results 1 – 25 of 100) sorted by relevance

1234

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DBasicDurationFormatterFactory.java29 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 …]
DBasicPeriodFormatterFactory.java60 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()
DBasicDurationFormatter.java21 private String localeName; field in BasicDurationFormatter
43 String localeName,
49 this.localeName = localeName;
73 if (!locName.equals(localeName)) {
94 localeName, tz);
DBasicPeriodFormatter.java23 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/
DBasicDurationFormatterFactory.java30 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 …]
DBasicPeriodFormatterFactory.java62 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()
DBasicDurationFormatter.java22 private String localeName; field in BasicDurationFormatter
44 String localeName,
50 this.localeName = localeName;
74 if (!locName.equals(localeName)) {
95 localeName, tz);
DBasicPeriodFormatter.java24 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/
DResourceBasedPeriodFormatterDataService.java83 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 …]
DYMDDateFormatter.java22 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/
DResourceBasedPeriodFormatterDataService.java85 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 …]
DYMDDateFormatter.java24 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/
DIntlTestNumberFormat.java36 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()
DIntlTestDateFormat.java63 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/
DIntlTestNumberFormat.java40 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()
DIntlTestDateFormat.java67 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/
DUResourceBundle.java107 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/
DUResourceBundle.java107 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/
DTrieMapTest.java76 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/
DTrieMapTest.java80 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/
DModuleTest.java38 private String localeName = null; field in ModuleTest
45 localeName = locName; in ModuleTest()
84 m = Factory.get(baseName, localeName); in validate()
DTestDataModule.java41 … 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/
DModuleTest.java39 private String localeName = null; field in ModuleTest
46 localeName = locName; in ModuleTest()
85 m = Factory.get(baseName, localeName); in validate()
DTestDataModule.java42 … 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/
Dtsdate.cpp67 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()

1234