/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | LocaleUtilsTest.java | 39 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 …]
|
D | InputMethodUtilsTest.java | 435 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/ |
D | LocaleListCompatTest.java | 78 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/ |
D | LocaleListTest.java | 28 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/ |
D | MccTableTest.java | 75 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/ |
D | TextUtilsTest.java | 548 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/ |
D | I18Name.java | 32 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/ |
D | ResourcesLocaleTest.java | 60 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/ |
D | AndroidLocale.java | 54 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/ |
D | TextViewSetTextLocalePerfTest.java | 59 mFirstLocale = Locale.forLanguageTag(firstLocale); in TextViewSetTextLocalePerfTest() 60 mSecondLocale = Locale.forLanguageTag(secondLocale); in TextViewSetTextLocalePerfTest()
|
/frameworks/base/core/java/android/text/ |
D | Hyphenator.java | 259 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/ |
D | I18NameTest.java | 39 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE); 149 I18Name expectedName = new I18Name(language, Locale.forLanguageTag(language), text); in parseBufferWithFrenchData()
|
D | ANQPParserTest.java | 258 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()
|
D | VenueNameElementTest.java | 43 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE);
|
D | HSFriendlyNameElementTest.java | 43 private static final Locale TEST_LOCALE = Locale.forLanguageTag(TEST_LANGUAGE);
|
/frameworks/support/compat/tests/java/android/support/v4/text/ |
D | IcuCompatTest.java | 34 "Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US"))); in testMaximizeAndGetScript()
|
/frameworks/support/compat/java/android/support/v4/os/ |
D | LocaleHelper.java | 34 static Locale forLanguageTag(String str) { in forLanguageTag() method in LocaleHelper
|
D | LocaleListCompat.java | 295 ? Locale.forLanguageTag(tags[i]) in forLanguageTags() 296 : LocaleHelper.forLanguageTag(tags[i]); in forLanguageTags()
|
D | LocaleListHelper.java | 280 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/ |
D | LocaleList.java | 272 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/ |
D | I18Name.java | 77 Locale locale = Locale.forLanguageTag(language); in parse()
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
D | MainInteractionService.java | 74 "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); in onReady()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocaleStore.java | 63 this(Locale.forLanguageTag(localeId)); in LocaleInfo() 277 LocaleInfo li = getLocaleInfo(Locale.forLanguageTag(localeId)); in fillCache()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 183 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel() 212 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSubtype.java | 229 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()
|