Home
last modified time | relevance | path

Searched refs:forLanguageTag (Results 1 – 25 of 31) 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.java466 getResourcesForLocales(Locale.forLanguageTag("sr-Latn-RS")), imi); in testGetImplicitlyApplicableSubtypesLocked()
486 getResourcesForLocales(Locale.forLanguageTag("sr-Cyrl-RS")), imi); in testGetImplicitlyApplicableSubtypesLocked()
513 Locale.forLanguageTag("sr-Latn-RS-x-android"), in testGetImplicitlyApplicableSubtypesLocked()
514 Locale.forLanguageTag("ja-JP"), in testGetImplicitlyApplicableSubtypesLocked()
515 Locale.forLanguageTag("fr-FR"), in testGetImplicitlyApplicableSubtypesLocked()
516 Locale.forLanguageTag("en-GB"), in testGetImplicitlyApplicableSubtypesLocked()
517 Locale.forLanguageTag("en-US")), in testGetImplicitlyApplicableSubtypesLocked()
/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/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java531 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en"))); in testGetLayoutDirectionFromLocale()
533 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-US"))); in testGetLayoutDirectionFromLocale()
535 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az"))); in testGetLayoutDirectionFromLocale()
537 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-AZ"))); in testGetLayoutDirectionFromLocale()
539 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("az-Latn"))); in testGetLayoutDirectionFromLocale()
541 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("en-EG"))); in testGetLayoutDirectionFromLocale()
543 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar-Latn"))); in testGetLayoutDirectionFromLocale()
546 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("ar"))); in testGetLayoutDirectionFromLocale()
548 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("fa"))); in testGetLayoutDirectionFromLocale()
550 TextUtils.getLayoutDirectionFromLocale(Locale.forLanguageTag("he"))); in testGetLayoutDirectionFromLocale()
[all …]
/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/core/java/android/text/
DHyphenator.java226 sMap.put(Locale.forLanguageTag(languageTag), h); in init()
233 sMap.put(Locale.forLanguageTag(language), sMap.get(Locale.forLanguageTag(fallback))); in init()
/frameworks/base/packages/Osu/src/com/android/anqp/
DI18Name.java30 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
41 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DI18Name.java30 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
41 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
DCivicLocationElement.java51 mLocale = Locale.forLanguageTag(Constants.getString(payload, 2, StandardCharsets.US_ASCII)); in CivicLocationElement()
/frameworks/support/tests/java/android/support/v4/text/
DIcuCompatTest.java26 assertEquals("Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US"))); in testMaximizeAndGetScript()
/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/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java123 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel()
152 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
/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()
DLocalePicker.java120 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); in getAllAssetLocales()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DMainInteractionService.java74 "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); in onReady()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java228 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java251 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i])); in getKeyphraseFromTypedArray()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java340 loc = Locale.forLanguageTag(localeCode); in setLocaleData()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java255 return mLanguageTag.isEmpty() ? null : Locale.forLanguageTag(mLanguageTag); in getLocaleObject()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java374 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java363 Locale locale = Locale.forLanguageTag(voiceName); in onLoadVoice()
394 Locale locale = Locale.forLanguageTag(voiceName); in onIsValidVoiceName()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java288 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); in getLocaleForLanguageCountry()
DPhone.java1449 return Locale.forLanguageTag(carrierLocales[i + 1].toString().replace('_', '-')); in getLocaleFromCarrierProperties()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1298 localeArray[i] = Locale.forLanguageTag(source.readString()); in readFromParcel()

12