/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
LocaleUtilsTest.java | 39 availableLocales.add(Locale.forLanguageTag("en-US")); 40 availableLocales.add(Locale.forLanguageTag("fr-CA")); 41 availableLocales.add(Locale.forLanguageTag("in")); 42 availableLocales.add(Locale.forLanguageTag("ja")); 43 availableLocales.add(Locale.forLanguageTag("fil")); 55 availableLocales.add(Locale.forLanguageTag("en-US")); 56 availableLocales.add(Locale.forLanguageTag("fr-CA")); 57 availableLocales.add(Locale.forLanguageTag("in")); 58 availableLocales.add(Locale.forLanguageTag("ja")); 59 availableLocales.add(Locale.forLanguageTag("fil")) [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
SuggestionSpanTest.java | 40 return Locale.forLanguageTag(locale.toLanguageTag()); 66 checkGetLocaleObject(Locale.forLanguageTag("en")); 67 checkGetLocaleObject(Locale.forLanguageTag("en-GB")); 68 checkGetLocaleObject(Locale.forLanguageTag("EN-GB")); 69 checkGetLocaleObject(Locale.forLanguageTag("en-gb")); 70 checkGetLocaleObject(Locale.forLanguageTag("En-gB")); 71 checkGetLocaleObject(Locale.forLanguageTag("und")); 72 checkGetLocaleObject(Locale.forLanguageTag("de-DE-u-co-phonebk")); 73 checkGetLocaleObject(Locale.forLanguageTag(""));
|
/frameworks/base/core/tests/coretests/src/android/os/ |
LocaleListTest.java | 28 ll = new LocaleList(Locale.forLanguageTag("fr"), null); 31 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.getEmptyLocaleList()); 34 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr")); 37 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de")); 40 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,ja")); 43 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr,ja")); 46 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr")); 49 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr,de")); 77 Locale.setDefault(Locale.forLanguageTag("ae"));
|
/cts/tests/tests/os/src/android/os/cts/ |
LocaleListTest.java | 54 final Locale enPH = Locale.forLanguageTag("en-PH"); 111 assertEquals(0, twoMember.indexOf(Locale.forLanguageTag("en"))); 112 assertEquals(1, twoMember.indexOf(Locale.forLanguageTag("fr"))); 113 assertEquals(-1, twoMember.indexOf(Locale.forLanguageTag("en-US"))); 193 assertEquals(new LocaleList(Locale.forLanguageTag("en-US")), 196 final Locale[] la = {Locale.forLanguageTag("en-PH"), Locale.forLanguageTag("en-US")}; 225 Locale.setDefault(Locale.forLanguageTag("fr")); 229 Locale.setDefault(Locale.forLanguageTag("de")); 233 Locale.setDefault(Locale.forLanguageTag("en")) [all...] |
/frameworks/support/compat/tests/java/android/support/v4/text/ |
IcuCompatTest.java | 29 assertEquals("Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US")));
|
/libcore/benchmarks/src/benchmarks/regression/ |
BreakIteratorBenchmark.java | 29 THAI(Locale.forLanguageTag("th-TH"), "??????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????? ?????????????????? ??? ?????????????????????????????????? ?????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????? ???, ????, ??????, ?????? ???????????????????? ????????????????? ??(?), ????(? ???????\"???\") ???????? ???(? ??????? \"???\") ??????? ??????????????????????????????????????????????????????????????? \"?\" ?????????????????????? \"?\" ????????????????????????????????????? ??? ???? ???, ?????? ???? ?????? ???? ?????? ???? ????? ????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????"), 30 THAI2(Locale.forLanguageTag("th-TH"), "this is the word browser in Thai: ???????????"), 37 BIDI(Locale.forLanguageTag("he-IL"), "Sarah ??? is spelled sin ? resh ? heh ? from right to left.");
|
IcuBenchmark.java | 31 private static final Locale CZECH_LOCALE = Locale.forLanguageTag("cs-CZ"); 32 private static final Locale PINYIN_LOCALE = Locale.forLanguageTag("zh-Latn");
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
CompactDecimalFormatTest.java | 260 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); 281 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); 285 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); 289 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); 293 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); 297 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); 305 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestData); 309 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestDataNegative); 314 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); 325 ULocale.forLanguageTag("sw"), CompactStyle.SHORT) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
CompactDecimalFormatTest.java | 256 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); 277 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); 281 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); 285 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); 289 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); 293 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); 301 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestData); 305 checkLocale(ULocale.forLanguageTag("sw"), CompactStyle.SHORT, SwahiliTestDataNegative); 310 ULocale.forLanguageTag("sw"), CompactStyle.SHORT); 321 ULocale.forLanguageTag("sw"), CompactStyle.SHORT) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
AndroidLocale.java | 54 public static Locale forLanguageTag(String tag) { 55 return ULocale.forLanguageTag(tag).toLocale();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
LocaleSetTest.java | 53 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh"))); 54 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-SG"))); 56 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-TW"))); 57 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-HK"))); 60 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja"))); 61 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja-JP"))); 66 assertTrue(LocaleSet.isLocaleSimplifiedChinese(Locale.forLanguageTag("zh-SG"))); 79 assertTrue(LocaleSet.isLocaleTraditionalChinese(Locale.forLanguageTag("zh-TW")));
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
ResourcesLocaleTest.java | 60 language.equals(Locale.forLanguageTag(languageTag).getLanguage())); 77 assertEquals(Locale.forLanguageTag("en-US"), 94 assertEquals(Locale.forLanguageTag("pl-PL"),
|
/frameworks/base/core/tests/coretests/src/android/text/ |
TextUtilsTest.java | 531 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en"))); 533 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-US"))); 535 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az"))); 537 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-AZ"))); 539 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-Latn"))); 541 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-EG"))); 543 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar-Latn"))); 546 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar"))); 548 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("fa"))); 550 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("he"))) [all...] |
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/rules/ |
ULocaleDefaultRule.java | 45 ULocale.setDefault(ULocale.forLanguageTag(annotation.languageTag()));
|
/frameworks/base/packages/Osu/src/com/android/anqp/ |
I18Name.java | 30 mLocale = Locale.forLanguageTag(mLanguage); 41 mLocale = Locale.forLanguageTag(mLanguage);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
I18Name.java | 30 mLocale = Locale.forLanguageTag(mLanguage); 41 mLocale = Locale.forLanguageTag(mLanguage);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
ConfigurationTest.java | 111 cfg1.locale = Locale.forLanguageTag("en"); 112 cfg2.locale = Locale.forLanguageTag("en-Shaw"); 114 cfg1.locale = Locale.forLanguageTag("en-Shaw"); 115 cfg2.locale = Locale.forLanguageTag("en"); 330 assertWriteToParcel(createConfig(Locale.forLanguageTag("en-Shaw")), Parcel.obtain()); 422 config.locale = Locale.forLanguageTag("en"); 426 config.locale = Locale.forLanguageTag("fr"); 455 config1.locale = Locale.forLanguageTag("en"); 485 config1.locale = Locale.forLanguageTag("fr"); 487 config2.locale = Locale.forLanguageTag("fr") [all...] |
/frameworks/base/core/java/android/text/ |
Hyphenator.java | 226 sMap.put(Locale.forLanguageTag(languageTag), h); 233 sMap.put(Locale.forLanguageTag(language), sMap.get(Locale.forLanguageTag(fallback)));
|
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/lang/ |
UCharacterTest.java | 49 String titleCase = UCharacter.toTitleCase(Locale.forLanguageTag("nl"), "ijsland", null,
|
/libcore/luni/src/test/java/libcore/icu/ |
ICUTest.java | 139 Locale sr_Cyrl_BA = Locale.forLanguageTag("sr-Cyrl-BA"); 140 Locale sr_Cyrl_ME = Locale.forLanguageTag("sr-Cyrl-ME"); 141 Locale sr_Latn_BA = Locale.forLanguageTag("sr-Latn-BA"); 142 Locale sr_Latn_ME = Locale.forLanguageTag("sr-Latn-ME"); 210 Locale l = Locale.forLanguageTag("de-u-co-phonebk-kf-upper-kn");
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
MainInteractionService.java | 74 "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
CollationElementIteratorTest.java | 42 Collator.getInstance(Locale.forLanguageTag("es-u-co-trad")); 132 Locale.forLanguageTag("es-u-co-trad")); 185 Locale.forLanguageTag("es-u-co-trad"));
|
/libcore/luni/src/test/java/libcore/java/util/ |
LocaleTest.java | 86 Locale.forLanguageTag("zh-Hant-CN").getDisplayName(Locale.US)); 89 Locale.forLanguageTag("zh-Hant-VARIANT").getDisplayName(Locale.US)); 92 Locale.forLanguageTag("zh-CN-VARIANT").getDisplayName(Locale.US)); 95 Locale.forLanguageTag("zh-Hant-CN-VARIANT").getDisplayName(Locale.US)); 527 return Locale.forLanguageTag(languageTag); [all...] |
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/ |
AlphabeticIndexTest.java | 61 .addLabels(ULocale.forLanguageTag("ru"));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
InputMethodSubtypeCompatUtils.java | 89 // Locale.forLanguageTag() is available only in Android L and later. 93 return Locale.forLanguageTag(languageTag);
|