/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 | 466 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/ |
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/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 531 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/ |
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/core/java/android/text/ |
D | Hyphenator.java | 226 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/ |
D | I18Name.java | 30 mLocale = Locale.forLanguageTag(mLanguage); in I18Name() 41 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | I18Name.java | 30 mLocale = Locale.forLanguageTag(mLanguage); in I18Name() 41 mLocale = Locale.forLanguageTag(mLanguage); in I18Name()
|
D | CivicLocationElement.java | 51 mLocale = Locale.forLanguageTag(Constants.getString(payload, 2, StandardCharsets.US_ASCII)); in CivicLocationElement()
|
/frameworks/support/tests/java/android/support/v4/text/ |
D | IcuCompatTest.java | 26 assertEquals("Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US"))); in testMaximizeAndGetScript()
|
/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/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 123 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel() 152 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
|
/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()
|
D | LocalePicker.java | 120 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); in getAllAssetLocales()
|
/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/android/view/textservice/ |
D | SpellCheckerSubtype.java | 228 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | KeyphraseEnrollmentInfo.java | 251 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i])); in getKeyphraseFromTypedArray()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 340 loc = Locale.forLanguageTag(localeCode); in setLocaleData()
|
/frameworks/base/core/java/android/text/style/ |
D | SuggestionSpan.java | 255 return mLanguageTag.isEmpty() ? null : Locale.forLanguageTag(mLanguageTag); in getLocaleObject()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 374 return Locale.forLanguageTag(mSubtypeLanguageTag); in getLocaleObject()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeechService.java | 363 Locale locale = Locale.forLanguageTag(voiceName); in onLoadVoice() 394 Locale locale = Locale.forLanguageTag(voiceName); in onIsValidVoiceName()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MccTable.java | 288 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); in getLocaleForLanguageCountry()
|
D | Phone.java | 1449 return Locale.forLanguageTag(carrierLocales[i + 1].toString().replace('_', '-')); in getLocaleFromCarrierProperties()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 1298 localeArray[i] = Locale.forLanguageTag(source.readString()); in readFromParcel()
|