/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | CurrencyTest.java | 21 import java.util.Locale; 25 private static Locale defaultLocale = Locale.getDefault(); 43 Currency c1 = Currency.getInstance(new Locale("en", "CA")); in test_getInstanceLjava_util_Locale() 47 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); in test_getInstanceLjava_util_Locale() 51 Currency c3 = Currency.getInstance(new Locale("", "CA")); in test_getInstanceLjava_util_Locale() 57 c1 = Currency.getInstance(new Locale("ja", "JP")); in test_getInstanceLjava_util_Locale() 61 c2 = Currency.getInstance(new Locale("", "JP")); in test_getInstanceLjava_util_Locale() 65 c3 = Currency.getInstance(new Locale("bogus", "JP")); in test_getInstanceLjava_util_Locale() 70 Locale localeGu = new Locale("gu", "IN"); in test_getInstanceLjava_util_Locale() 72 Locale localeKn = new Locale("kn", "IN"); in test_getInstanceLjava_util_Locale() [all …]
|
D | LocaleTest.java | 23 import java.util.Locale; 28 Locale testLocale; 30 Locale l; 32 Locale defaultLocale; 39 Locale x = new Locale("xx", "CV"); in test_ConstructorLjava_lang_StringLjava_lang_String() 51 Locale x = new Locale("xx", "CV", "ZZ"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 55 new Locale(null, "CV", "ZZ"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 61 new Locale("xx", null, "ZZ"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 67 new Locale("xx", "CV", null); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 86 Locale l2 = new Locale("en", "CA", "WIN32"); in test_equalsLjava_lang_Object() [all …]
|
D | ControlTest.java | 40 import java.util.Locale; 217 Locale defaultLocale = Locale.getDefault(); in test_getNoFallbackControl_LList() 218 Locale.setDefault(new Locale("TestLanguage", "TestCountry", "Var")); in test_getNoFallbackControl_LList() 219 assertNull(control.getFallbackLocale("message", Locale.US)); in test_getNoFallbackControl_LList() 227 control.getFallbackLocale(null, Locale.US); in test_getNoFallbackControl_LList() 232 Locale.setDefault(defaultLocale); in test_getNoFallbackControl_LList() 296 List<Locale> result = control.getCandidateLocales("baseName", in test_getCandidateLocales_LStringLLocale() 297 new Locale("one", "two", "three")); in test_getCandidateLocales_LStringLLocale() 299 Locale locale = result.get(0); in test_getCandidateLocales_LStringLLocale() 303 assertEquals(new Locale("one", "TWO"), result.get(1)); in test_getCandidateLocales_LStringLLocale() [all …]
|
D | FormatterTest.java | 51 import java.util.Locale; 162 assertEquals(f.locale(), Locale.getDefault()); in test_Constructor() 173 assertEquals(f1.locale(), Locale.getDefault()); in test_ConstructorLjava_lang_Appendable() 192 Formatter f1 = new Formatter(Locale.FRANCE); in test_ConstructorLjava_util_Locale() 194 assertEquals(f1.locale(), Locale.FRANCE); in test_ConstructorLjava_util_Locale() 197 Formatter f2 = new Formatter((Locale) null); in test_ConstructorLjava_util_Locale() 208 Formatter f1 = new Formatter(ma, Locale.CANADA); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() 210 assertEquals(f1.locale(), Locale.CANADA); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() 216 Formatter f3 = new Formatter(null, Locale.GERMAN); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() 217 assertEquals(f3.locale(), Locale.GERMAN); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() [all …]
|
D | ScannerTest.java | 45 import java.util.Locale; 445 assertEquals(Locale.getDefault(), s.locale()); in test_locale() 460 s.useLocale(new Locale("test", "test")); in test_useLocale_LLocale() 461 assertEquals(new Locale("test", "test"), s.locale()); in test_useLocale_LLocale() 995 s.useLocale(Locale.GERMANY); in test_nextIntI() 1002 s.useLocale(Locale.ENGLISH); in test_nextIntI() 1011 s.useLocale(Locale.GERMANY); in test_nextIntI() 1018 s.useLocale(new Locale("it", "CH")); in test_nextIntI() 1041 s.useLocale(Locale.CHINESE); in test_nextIntI() 1048 s.useLocale(Locale.GERMANY); in test_nextIntI() [all …]
|
D | ResourceBundleTest.java | 33 import java.util.Locale; 80 Locale.setDefault(new Locale("en", "US")); in test_getStringLjava_lang_String() 81 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); in test_getStringLjava_lang_String() 107 private static final Locale LOCALE_FRFR = new Locale("fr", "FR"); 110 private static final Locale LOCALE_FR = new Locale("fr"); 113 private static final Locale LOCALE_EN = new Locale("en"); 116 private static final Locale LOCALE_ENUSVAR = new Locale("en", "US", "VAR"); 120 private Locale defLocale = null; 128 bundle = ResourceBundle.getBundle(CLASS_NAME, new Locale("fr", "FR", in test_getBundleLjava_lang_StringLjava_util_Locale() 132 bundle = ResourceBundle.getBundle(CLASS_NAME, new Locale("fr", "FR", in test_getBundleLjava_lang_StringLjava_util_Locale() [all …]
|
/external/icu4c/common/unicode/ |
D | locid.h | 182 class U_COMMON_API Locale : public UObject { 185 static const Locale &U_EXPORT2 getRoot(void); 187 static const Locale &U_EXPORT2 getEnglish(void); 189 static const Locale &U_EXPORT2 getFrench(void); 191 static const Locale &U_EXPORT2 getGerman(void); 193 static const Locale &U_EXPORT2 getItalian(void); 195 static const Locale &U_EXPORT2 getJapanese(void); 197 static const Locale &U_EXPORT2 getKorean(void); 199 static const Locale &U_EXPORT2 getChinese(void); 201 static const Locale &U_EXPORT2 getSimplifiedChinese(void); [all …]
|
D | brkiter.h | 308 createWordInstance(const Locale& where, UErrorCode& status); 332 createLineInstance(const Locale& where, UErrorCode& status); 354 createCharacterInstance(const Locale& where, UErrorCode& status); 375 createSentenceInstance(const Locale& where, UErrorCode& status); 400 createTitleInstance(const Locale& where, UErrorCode& status); 411 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count); 422 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale, 423 const Locale& displayLocale, 434 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale, 480 const Locale& locale, [all …]
|
/external/icu4c/common/ |
D | locid.cpp | 53 static Locale *gLocaleCache = NULL; 58 static Locale *gDefaultLocale = NULL; 102 delete (icu::Locale *) obj; in deleteLocale() 126 Locale *locale_set_default_internal(const char *id, UErrorCode& status) { in locale_set_default_internal() 165 Locale *newDefault = (Locale *)uhash_get(gDefaultLocalesHashT, localeNameBuf); in locale_set_default_internal() 167 newDefault = new Locale(Locale::eBOGUS); in locale_set_default_internal() 198 return Locale::getDefault().getName(); in locale_get_default() 204 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Locale) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 211 Locale::~Locale() in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 225 Locale::Locale() in Locale() function in Locale [all …]
|
D | servloc.h | 132 virtual Locale& canonicalLocale(Locale& result) const; 137 virtual Locale& currentLocale(Locale& result) const; 254 …virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString… 261 …virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCo… 313 const Locale& locale, 401 …virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCo… 426 Locale fallbackLocale; 463 UObject* get(const Locale& locale, UErrorCode& status) const; 469 UObject* get(const Locale& locale, int32_t kind, UErrorCode& status) const; 475 UObject* get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const; [all …]
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoderTest.java | 22 import java.util.Locale; 67 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); in testGetDescriptionForNumberWithNoDataFile() 69 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile() 71 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile() 73 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile() 75 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile() 82 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); in testGetDescriptionForNumberWithMissingPrefix() 87 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US() 89 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US() 91 geocoder.getDescriptionForNumber(US_NUMBER3, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US() [all …]
|
/external/icu4c/test/intltest/ |
D | tzfmttst.cpp | 87 const Locale testLocales[] = { in TestTimeZoneRoundTrip() 88 Locale("en"), in TestTimeZoneRoundTrip() 89 Locale("en_CA"), in TestTimeZoneRoundTrip() 90 Locale("fr"), in TestTimeZoneRoundTrip() 91 Locale("zh_Hant") in TestTimeZoneRoundTrip() 94 const Locale *LOCALES; in TestTimeZoneRoundTrip() 99 nLocales = sizeof(testLocales)/sizeof(Locale); in TestTimeZoneRoundTrip() 101 LOCALES = Locale::getAvailableLocales(nLocales); in TestTimeZoneRoundTrip() 255 const Locale* locales; // Static 451 const Locale *LOCALES; in TestTimeRoundTrip() [all …]
|
D | loctest.cpp | 243 Locale testLocale(""); in TestBasicGetters() 245 … testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters() 248 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters() 271 Locale testLocale(""); in TestBasicGetters() 273 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]); in TestBasicGetters() 276 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]); in TestBasicGetters() 294 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special"); in TestBasicGetters() 315 if (Locale::getDefault() != Locale::createFromName(NULL)) in TestBasicGetters() 324 Locale bogusLang("THISISABOGUSLANGUAGE"); // Jitterbug 2864: language code too long in TestBasicGetters() 329 bogusLang=Locale("eo"); in TestBasicGetters() [all …]
|
D | svccoll.cpp | 36 const Locale& FR = Locale::getFrance(); in TestRegister() 37 const Locale& US = Locale::getUS(); in TestRegister() 38 const Locale US_FOO("en", "US", "FOO"); in TestRegister() 59 Locale loc = frcol->getLocale(ULOC_REQUESTED_LOCALE, status); in TestRegister() 100 Locale fu_FU_FOO("fu", "FU", "FOO"); in TestRegister() 101 Locale fu_FU("fu", "FU", ""); in TestRegister() 158 const Locale& defaultLocale = Locale::getDefault(); in TestRegister() 160 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister() 161 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) { in TestRegister() 167 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister() [all …]
|
D | aliastst.cpp | 59 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestCalendar() 60 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestCalendar() 91 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestDateFormat() 92 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestDateFormat() 125 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestCollation() 126 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestCollation() 136 Locale l1 = c1->getLocale(ULOC_VALID_LOCALE, status); in TestCollation() 137 Locale l2 = c2->getLocale(ULOC_VALID_LOCALE, status); in TestCollation() 156 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestULocale() 157 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestULocale() [all …]
|
D | tmsgfmt.cpp | 77 Locale locale[] = { in testBug3() 78 Locale("ar", "", ""), in testBug3() 79 Locale("be", "", ""), in testBug3() 80 Locale("bg", "", ""), in testBug3() 81 Locale("ca", "", ""), in testBug3() 82 Locale("cs", "", ""), in testBug3() 83 Locale("da", "", ""), in testBug3() 84 Locale("de", "", ""), in testBug3() 85 Locale("de", "AT", ""), in testBug3() 86 Locale("de", "CH", ""), in testBug3() [all …]
|
/external/icu4c/test/perf/normperf/ |
D | dtfmtrtperf.h | 114 const Locale testLocales[] = { in call() 115 Locale("en"), in call() 116 Locale("en_US"), in call() 117 Locale("en_AU"), in call() 118 Locale("de_DE"), in call() 119 Locale("fr"), in call() 120 Locale("ja_JP"), in call() 121 Locale("ko"), in call() 122 Locale("pt"), in call() 123 Locale("th_TH"), in call() [all …]
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | DateFormatTest.java | 26 import java.util.Locale; 45 Locale[] locales = DateFormat.getAvailableLocales(); in test_getAvailableLocales() 49 if (locales[i].equals(Locale.ENGLISH)) in test_getAvailableLocales() 51 if (locales[i].equals(Locale.GERMAN)) in test_getAvailableLocales() 78 DateFormat.DEFAULT, Locale.getDefault()))); in test_getDateInstance() 96 DateFormat.SHORT, Locale.getDefault()))); in test_getDateInstanceI() 105 DateFormat.MEDIUM, Locale.getDefault()))); in test_getDateInstanceI() 114 DateFormat.LONG, Locale.getDefault()))); in test_getDateInstanceI() 123 DateFormat.FULL, Locale.getDefault()))); in test_getDateInstanceI() 143 DateFormat.SHORT, Locale.GERMAN); in test_getDateInstanceILjava_util_Locale() [all …]
|
D | DecimalFormatSymbolsTest.java | 30 import java.util.Locale; 56 DecimalFormatSymbols dfs = new DecimalFormatSymbols(new Locale("en", in test_ConstructorLjava_util_Locale() 66 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); in test_getAvailableLocales_no_provider() 70 for (Locale locale : locales) { in test_getAvailableLocales_no_provider() 71 if (locale.equals(Locale.US)) { in test_getAvailableLocales_no_provider() 89 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); in test_getAvailableLocales_correct_provider() 93 for (Locale locale : locales) { in test_getAvailableLocales_correct_provider() 138 assertEquals(new DecimalFormatSymbols(Locale.getDefault()), in test_getInstance() 155 assertEquals(new DecimalFormatSymbols(Locale.GERMANY), DecimalFormatSymbols in test_getInstanceLjava_util_Locale() 156 .getInstance(Locale.GERMANY)); in test_getInstanceLjava_util_Locale() [all …]
|
D | MockedDecimalFormatSymbolsProvider.java | 22 import java.util.Locale; 26 private static Locale supportLocale = new Locale("mock"); 29 public DecimalFormatSymbols getInstance(Locale locale) { in getInstance() 41 public Locale[] getAvailableLocales() { in getAvailableLocales() 42 return new Locale[] { supportLocale }; in getAvailableLocales()
|
D | MockedDateFormatSymbolsProvider.java | 22 import java.util.Locale; 25 private static Locale supportLocale = new Locale("mock"); 28 public DateFormatSymbols getInstance(Locale locale) { in getInstance() 40 public Locale[] getAvailableLocales() { in getAvailableLocales() 41 return new Locale[] { supportLocale }; in getAvailableLocales()
|
/external/icu4c/i18n/unicode/ |
D | coll.h | 323 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err); 349 static Collator *createInstance(const Locale &loc, UVersionInfo version, UErrorCode &err); 562 virtual Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const = 0; 700 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale, 701 const Locale& displayLocale, 712 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale, 726 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count); 778 …static StringEnumeration* U_EXPORT2 getKeywordValuesForLocale(const char* keyword, const Locale& l… 808 static Locale U_EXPORT2 getFunctionalEquivalent(const char* keyword, const Locale& locale, 820 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode… [all …]
|
D | currpinf.h | 23 class Locale; variable 60 CurrencyPluralInfo(const Locale& locale, UErrorCode& status); 136 const Locale& getLocale() const; 176 void setLocale(const Locale& loc, UErrorCode& status); 195 void initialize(const Locale& loc, UErrorCode& status); 197 void setupCurrencyPluralPattern(const Locale& loc, UErrorCode& status); 246 Locale* fLocale;
|
/external/icu4c/i18n/ |
D | coll.cpp | 57 static icu::Locale* availableLocaleList = NULL; 106 CollatorFactory::getDisplayName(const Locale& objectLocale, in getDisplayName() 107 const Locale& displayLocale, in getDisplayName() 129 Locale loc; in create() 165 Locale loc(""); in handleDefault() 184 Locale canonicalLocale(""); in getKey() 185 Locale currentLocale(""); in getKey() 245 Locale desiredLocale(loc); in createUCollator() 281 Locale * temp; in isAvailableLocaleListInitialized() 291 temp = new Locale[localeCount]; in isAvailableLocaleListInitialized() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | ContentLanguage.java | 31 import java.util.Locale; 92 protected Locale locale; 134 … this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) ); in setLanguageTag() 136 this.locale = new Locale(languageTag); in setLanguageTag() 148 public Locale getContentLanguage() { in getContentLanguage() 160 public void setContentLanguage(Locale language) { in setContentLanguage() 167 retval.locale = (Locale) this.locale.clone(); in clone()
|