Home
last modified time | relevance | path

Searched refs:toLanguageTag (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/tests/Internal/src/com/android/internal/app/
DLocaleStoreTest.java187 info -> info.getLocale().toLanguageTag().equals("en"))); in getLevelLocales_languageTier_returnAllSupportLanguages()
189 info -> info.getLocale().toLanguageTag().equals("zh-Hant"))); in getLevelLocales_languageTier_returnAllSupportLanguages()
191 info -> info.getLocale().toLanguageTag().equals("ja"))); in getLevelLocales_languageTier_returnAllSupportLanguages()
193 info -> info.getLocale().toLanguageTag().equals("bn"))); in getLevelLocales_languageTier_returnAllSupportLanguages()
195 info -> info.getLocale().toLanguageTag().equals("ks-Arab"))); in getLevelLocales_languageTier_returnAllSupportLanguages()
215 info -> info.getLocale().toLanguageTag().equals("en-US"))); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
217 info -> info.getLocale().toLanguageTag().equals("en-GB"))); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
219 info -> info.getLocale().toLanguageTag().equals("en-ZA"))); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
235 assertEquals("bn-IN", localeInfos.iterator().next().getLocale().toLanguageTag()); in getLevelLocales_numberingTierAndParentIsBnIn_returnBnInLocales()
267 info -> info.getLocale().toLanguageTag().equals("bn-IN-u-nu-adlm"))); in getLevelLocales_regionTierAndParentIsBnIn_returnBnLocaleFamily()
[all …]
/frameworks/base/services/core/java/com/android/server/locales/
DAppLocaleChangedAtomRecord.java42 this.mNewLocales = DEFAULT_PREFIX + defaultLocale.toLanguageTag(); in AppLocaleChangedAtomRecord()
43 this.mPrevLocales = DEFAULT_PREFIX + defaultLocale.toLanguageTag(); in AppLocaleChangedAtomRecord()
72 target = DEFAULT_PREFIX + defaultLocale.toLanguageTag(); in convertEmptyLocales()
/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleHelper.java116 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
117 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
140 final String languageTag = locale.toLanguageTag(); in getDisplayCountry()
159 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
DLocaleStore.java61 this.mId = locale.toLanguageTag(); in LocaleInfo()
162 ? mLocale.toLanguageTag() in getLangScriptKey()
163 : parentWithScript.toLanguageTag(); in getLangScriptKey()
295 String parentId = parent.toLanguageTag(); in fillCache()
360 if (parentId.equals(li.getParent().toLanguageTag())) { in getLevelLocales()
376 String id = locale.toLanguageTag(); in getLocaleInfo()
/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java107 this.mId = locale.toLanguageTag(); in LocaleInfo()
253 ? mLocale.toLanguageTag() in getLangScriptKey()
254 : parentWithScript.toLanguageTag(); in getLangScriptKey()
504 String parentId = parent.toLanguageTag(); in fillCache()
634 if (parentId.equals(li.getParent().toLanguageTag())) { in getTierLocales()
675 String parentId = parent.toLanguageTag(); in convertExplicitLocales()
719 String id = locale.toLanguageTag(); in getLocaleInfo()
725 if (localeInfos.containsKey(filteredLocale.toLanguageTag())) { in getLocaleInfo()
727 LocaleInfo localeInfo = localeInfos.get(filteredLocale.toLanguageTag()); in getLocaleInfo()
752 if (!map.containsKey(locale.toLanguageTag())) { in addLocaleInfoToMap()
[all …]
DLocaleHelper.java90 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
91 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
115 final String languageTag = locale.toLanguageTag(); in getDisplayCountry()
134 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
DAppLocaleCollector.java174 langTagsToIgnore.add(mAppCurrentLocale.getLocale().toLanguageTag()); in getIgnoredLocaleList()
180 info -> langTagsToIgnore.add(info.getLocale().toLanguageTag())); in getIgnoredLocaleList()
182 mImeLocales.forEach(info -> langTagsToIgnore.add(info.getLocale().toLanguageTag())); in getIgnoredLocaleList()
188 langTagsToIgnore.add(systemLangList.get(i).toLanguageTag()); in getIgnoredLocaleList()
/frameworks/base/media/java/android/media/voice/
DKeyphraseModelManager.java90 locale.toLanguageTag()); in getKeyphraseSoundModel()
151 locale.toLanguageTag()); in deleteKeyphraseSoundModel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java107 + l.toLanguageTag()); in getLocaleForLanguageCountry()
124 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp35 static size_t toLanguageTag(char* output, size_t outSize, const StringPiece& locale) { in toLanguageTag() function
92 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java109 return mEntityConfidence.getConfidenceScore(locale.toLanguageTag()); in getConfidenceScore()
172 mEntityConfidenceMap.put(locale.toLanguageTag(), confidenceScore); in putLocale()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java178 soundModel.getKeyphrases()[0].getLocale().toLanguageTag()); in updateKeyphraseSoundModel()
195 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel()
219 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
233 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
DTestModelEnrollmentDatabase.java102 keyphrase.getLocale().toLanguageTag()), in updateKeyphraseSoundModel()
/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java64 assertThat(localeInfo.getParent().toLanguageTag()).isEqualTo("zh-Hant"); in getLevel()
DSuggestedLocaleAdapterTest.java136 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpRequest.java123 .toLanguageTag()); in builder()
/frameworks/base/core/java/android/hardware/input/
DVirtualKeyboardConfig.java144 mLanguageTag = ULocale.createCanonical(locale).toLanguageTag(); in setLanguageTag()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java213 mPkLanguageTag = languageTag == null ? "" : languageTag.toLanguageTag(); in setPhysicalKeyboardHint()
512 final String langTag = locale.toLanguageTag(); in getCanonicalizedLanguageTag()
514 result = ULocale.createCanonical(ULocale.forLanguageTag(langTag)).toLanguageTag(); in getCanonicalizedLanguageTag()
/frameworks/base/core/java/android/os/
DRecoverySystem.java630 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in installPackage()
833 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in scheduleUpdateOnBoot()
979 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeUserData()
1228 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeCache()
1257 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeAb()
DLocaleList.java199 sb.append(localeClone.toLanguageTag()); in LocaleList()
250 sb.append(localeList[i].toLanguageTag()); in LocaleList()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DBilingualSuggestedLocaleAdapterTest.java127 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java92 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/core/java/android/security/
DConfirmationPrompt.java276 String locale = Locale.getDefault().toLanguageTag(); in presentPrompt()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java471 adjustLanguageTag(intersection[i].toLanguageTag()); in updateConfigurationImpl()
474 adjustLanguageTag(lc.getDefaultLocale().toLanguageTag()); in updateConfigurationImpl()
494 adjustLanguageTag(bestLocale.toLanguageTag())}; in updateConfigurationImpl()
508 selectedLocales[i] = adjustLanguageTag(locales.get(i).toLanguageTag()); in updateConfigurationImpl()
512 adjustLanguageTag(locales.get(0).toLanguageTag())}; in updateConfigurationImpl()
/frameworks/base/core/java/android/app/admin/
DFullyManagedDeviceProvisioningParams.java373 dest.writeString(mLocale == null ? null : mLocale.toLanguageTag()); in writeToParcel()

12