Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java55 this.mId = locale.toLanguageTag(); in LocaleInfo()
156 ? mLocale.toLanguageTag() in getLangScriptKey()
157 : parentWithScript.toLanguageTag(); in getLangScriptKey()
288 String parentId = parent.toLanguageTag(); in fillCache()
352 if (parentId.equals(li.getParent().toLanguageTag())) { in getLevelLocales()
368 String id = locale.toLanguageTag(); in getLocaleInfo()
DLocaleHelper.java115 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
116 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
139 final String languageTag = locale.toLanguageTag(); in getDisplayCountry()
158 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DAndroidLocale.java35 public static String toLanguageTag(Locale locale) { in toLanguageTag() method in AndroidLocale
36 return ULocale.forLocale(locale).toLanguageTag(); in toLanguageTag()
/frameworks/support/compat/src/androidTest/java/androidx/core/os/
DLocaleListCompatTest.java163 assertEquals(toLanguageTag(Locale.US), ll.toLanguageTags()); in testToLanguageTags()
167 assertEquals(toLanguageTag(Locale.US) + "," + toLanguageTag(Locale.FRENCH), in testToLanguageTags()
407 private String toLanguageTag(Locale locale) { in toLanguageTag() method in LocaleListCompatTest
409 return locale.toLanguageTag(); in toLanguageTag()
411 return LocaleHelper.toLanguageTag(locale); in toLanguageTag()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp34 static size_t toLanguageTag(char* output, size_t outSize, const StringPiece& locale) { in toLanguageTag() function
88 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
/frameworks/support/compat/src/main/java/androidx/core/os/
DLocaleHelper.java61 static String toLanguageTag(Locale locale) { in toLanguageTag() method in LocaleHelper
DLocaleListHelper.java189 sb.append(LocaleHelper.toLanguageTag(localeClone)); in LocaleListHelper()
241 sb.append(LocaleHelper.toLanguageTag(localeList[i])); in LocaleListHelper()
/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java73 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/core/java/android/os/
DRecoverySystem.java584 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in installPackage()
642 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in scheduleUpdateOnBoot()
772 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeUserData()
881 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeCache()
910 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeAb()
DLocaleList.java197 sb.append(localeClone.toLanguageTag()); in LocaleList()
248 sb.append(localeList[i].toLanguageTag()); in LocaleList()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java576 mKeyphraseMetadata.id, mLocale.toLanguageTag(), mInternalCallback, in startRecognitionLocked()
749 mVoiceInteractionService, keyphraseId, locale.toLanguageTag()); in internalGetIsEnrolled()
/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/security/
DConfirmationPrompt.java278 String locale = Locale.getDefault().toLanguageTag(); in presentPrompt()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java304 l.toLanguageTag()); in getLocaleForLanguageCountry()
321 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
/frameworks/base/core/java/android/view/textclassifier/
DSelectionSessionLogger.java248 localesJoiner.add(locale.toLanguageTag()); in createId()
DTextClassifierImpl.java551 localesJoiner.add(locale.toLanguageTag()); in toString()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java184 assertEquals(defaultLocale.toLanguageTag(), req.getValue().getVoiceName()); in testDefaultLanguage_setsVoiceName()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java316 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) in getManageKeyphraseIntent()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java154 mLanguageTag = sourceLocale == null ? "" : sourceLocale.toLanguageTag(); in SuggestionSpan()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1724 n = thisLocale.toLanguageTag().compareTo(thatLocale.toLanguageTag()); in compareTo()
DResourcesImpl.java438 adjustLanguageTag(mConfiguration.getLocales().get(0).toLanguageTag()), in updateConfiguration()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java336 String voiceName = properLocale.toLanguageTag(); in onGetDefaultVoiceNameFor()
/frameworks/base/services/java/com/android/server/
DSystemServer.java337 final String languageTag = Locale.getDefault().toLanguageTag(); in run()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java239 return mInjectedLocale.toLanguageTag(); in injectGetLocaleTagsForUser()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1002 SystemProperties.set("persist.sys.locale", locale.toLanguageTag()); in copyLocaleFromMountService()

12