Home
last modified time | relevance | path

Searched refs:forLanguageTag (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DLocaleUtilsTest.java39 availableLocales.add(Locale.forLanguageTag("en-US")); in testFilterByLanguageEmptyLanguageList()
40 availableLocales.add(Locale.forLanguageTag("fr-CA")); in testFilterByLanguageEmptyLanguageList()
41 availableLocales.add(Locale.forLanguageTag("in")); in testFilterByLanguageEmptyLanguageList()
42 availableLocales.add(Locale.forLanguageTag("ja")); in testFilterByLanguageEmptyLanguageList()
43 availableLocales.add(Locale.forLanguageTag("fil")); in testFilterByLanguageEmptyLanguageList()
55 availableLocales.add(Locale.forLanguageTag("en-US")); in testFilterDoesNotMatchAnything()
56 availableLocales.add(Locale.forLanguageTag("fr-CA")); in testFilterDoesNotMatchAnything()
57 availableLocales.add(Locale.forLanguageTag("in")); in testFilterDoesNotMatchAnything()
58 availableLocales.add(Locale.forLanguageTag("ja")); in testFilterDoesNotMatchAnything()
59 availableLocales.add(Locale.forLanguageTag("fil")); in testFilterDoesNotMatchAnything()
[all …]
DInputMethodUtilsTest.java435 getResourcesForLocales(Locale.forLanguageTag("sr-Latn-RS")), imi); in testGetImplicitlyApplicableSubtypesLocked()
455 getResourcesForLocales(Locale.forLanguageTag("sr-Cyrl-RS")), imi); in testGetImplicitlyApplicableSubtypesLocked()
482 Locale.forLanguageTag("sr-Latn-RS-x-android"), in testGetImplicitlyApplicableSubtypesLocked()
483 Locale.forLanguageTag("ja-JP"), in testGetImplicitlyApplicableSubtypesLocked()
484 Locale.forLanguageTag("fr-FR"), in testGetImplicitlyApplicableSubtypesLocked()
485 Locale.forLanguageTag("en-GB"), in testGetImplicitlyApplicableSubtypesLocked()
486 Locale.forLanguageTag("en-US")), in testGetImplicitlyApplicableSubtypesLocked()
/frameworks/support/compat/tests/java/android/support/v4/os/
DLocaleListCompatTest.java78 final Locale enPH = forLanguageTag("en-PH"); in testTwoMemberLocaleList()
138 assertEquals(0, twoMember.indexOf(forLanguageTag("en"))); in testIndexOf()
139 assertEquals(1, twoMember.indexOf(forLanguageTag("fr"))); in testIndexOf()
140 assertEquals(-1, twoMember.indexOf(forLanguageTag("en-US"))); in testIndexOf()
188 assertEquals(LocaleListCompat.create(forLanguageTag("en-US")), in testForLanguageTags()
191 final Locale[] la = {forLanguageTag("en-PH"), forLanguageTag("en-US")}; in testForLanguageTags()
221 forLanguageTag("fr-BE"), in testGetFirstMatch_noAssets()
224 forLanguageTag("fr-BE"), in testGetFirstMatch_noAssets()
232 forLanguageTag("fr-BE"), in testGetFirstMatch_oneAsset()
235 forLanguageTag("nl-BE"), in testGetFirstMatch_oneAsset()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java28 ll = new LocaleList(Locale.forLanguageTag("fr"), null); in testConstructor()
31 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.getEmptyLocaleList()); in testConstructor()
34 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr")); in testConstructor()
37 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de")); in testConstructor()
40 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,ja")); in testConstructor()
43 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr,ja")); in testConstructor()
46 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("de,fr")); in testConstructor()
49 ll = new LocaleList(Locale.forLanguageTag("fr"), LocaleList.forLanguageTags("fr,de")); in testConstructor()
77 Locale.setDefault(Locale.forLanguageTag("ae")); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DMccTableTest.java75 assertEquals(Locale.forLanguageTag("en-CA"), in testLocale()
77 assertEquals(Locale.forLanguageTag("en-GB"), in testLocale()
79 assertEquals(Locale.forLanguageTag("en-US"), in testLocale()
81 assertEquals(Locale.forLanguageTag("zh-HK"), in testLocale()
83 assertEquals(Locale.forLanguageTag("en-HK"), in testLocale()
85 assertEquals(Locale.forLanguageTag("zh-TW"), in testLocale()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java548 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en"))); in testGetLayoutDirectionFromLocale()
550 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-US"))); in testGetLayoutDirectionFromLocale()
552 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az"))); in testGetLayoutDirectionFromLocale()
554 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-AZ"))); in testGetLayoutDirectionFromLocale()
556 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-Latn"))); in testGetLayoutDirectionFromLocale()
558 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-EG"))); in testGetLayoutDirectionFromLocale()
560 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar-Latn"))); in testGetLayoutDirectionFromLocale()
563 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar"))); in testGetLayoutDirectionFromLocale()
565 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("fa"))); in testGetLayoutDirectionFromLocale()
567 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("he"))); in testGetLayoutDirectionFromLocale()
[all …]
/frameworks/base/packages/Osu/src/com/android/anqp/
DI18Name.java32 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
43 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
86 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java60 language.equals(Locale.forLanguageTag(languageTag).getLanguage())); in ensureNoLanguage()
77 assertEquals(Locale.forLanguageTag("en-US"), in testEnglishIsAlwaysConsideredSupported()
94 assertEquals(Locale.forLanguageTag("pl-PL"), in testSelectFirstSupportedLanguage()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DAndroidLocale.java54 public static Locale forLanguageTag(String tag) { in forLanguageTag() method in AndroidLocale
55 return ULocale.forLanguageTag(tag).toLocale(); in forLanguageTag()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewSetTextLocalePerfTest.java59 mFirstLocale = Locale.forLanguageTag(firstLocale); in TextViewSetTextLocalePerfTest()
60 mSecondLocale = Locale.forLanguageTag(secondLocale); in TextViewSetTextLocalePerfTest()
/frameworks/base/core/java/android/text/
DHyphenator.java259 sMap.put(Locale.forLanguageTag(data.mLanguageTag), h); in init()
266 sMap.put(Locale.forLanguageTag(language), sMap.get(Locale.forLanguageTag(fallback))); in init()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DI18NameTest.java39 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE);
149 I18Name expectedName = new I18Name(language, Locale.forLanguageTag(language), text); in parseBufferWithFrenchData()
DANQPParserTest.java258 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVenueNameElement()
386 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVendorSpecificElementWithHSFriendlyName()
411 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseHSFrendlyNameElement()
DVenueNameElementTest.java43 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE);
DHSFriendlyNameElementTest.java43 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE);
/frameworks/support/compat/tests/java/android/support/v4/text/
DIcuCompatTest.java34 "Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US"))); in testMaximizeAndGetScript()
/frameworks/support/compat/java/android/support/v4/os/
DLocaleHelper.java34 static Locale forLanguageTag(String str) { in forLanguageTag() method in LocaleHelper
DLocaleListCompat.java295 ? Locale.forLanguageTag(tags[i]) in forLanguageTags()
296 : LocaleHelper.forLanguageTag(tags[i]); in forLanguageTags()
DLocaleListHelper.java280 localeArray[i] = LocaleHelper.forLanguageTag(tags[i]); in forLanguageTags()
351 private static final Locale EN_LATN = LocaleHelper.forLanguageTag("en-Latn");
373 final Locale supportedLocale = LocaleHelper.forLanguageTag(languageTag); in computeFirstMatchIndex()
/frameworks/base/core/java/android/os/
DLocaleList.java272 localeArray[i] = Locale.forLanguageTag(tags[i]); in forLanguageTags()
341 private static final Locale EN_LATN = Locale.forLanguageTag("en-Latn");
363 final Locale supportedLocale = Locale.forLanguageTag(languageTag); in computeFirstMatchIndex()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DI18Name.java77 Locale locale = Locale.forLanguageTag(language); in parse()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DMainInteractionService.java74 "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); in onReady()
/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java63 this(Locale.forLanguageTag(localeId)); in LocaleInfo()
277 LocaleInfo li = getLocaleInfo(Locale.forLanguageTag(localeId)); in fillCache()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java183 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel()
212 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java229 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()

12