Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java115 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
116 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
139 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.forLocale(displayLocale)); in getDisplayCountry()
149 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
DLocaleStore.java54 this.mId = locale.toLanguageTag(); in LocaleInfo()
149 ? mLocale.toLanguageTag() in getLangScriptKey()
150 : parentWithScript.toLanguageTag(); in getLangScriptKey()
267 String parentId = parent.toLanguageTag(); in fillCache()
344 if (parentId.equals(li.getParent().toLanguageTag())) { in getLevelLocales()
360 String id = locale.toLanguageTag(); in getLocaleInfo()
/frameworks/base/tools/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/minikin/libs/minikin/
DFontLanguageListCache.cpp34 static size_t toLanguageTag(char* output, size_t outSize, const std::string& locale) { in toLanguageTag() function
91 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
104 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
/frameworks/support/compat/tests/java/android/support/v4/os/
DLocaleListCompatTest.java165 assertEquals(toLanguageTag(Locale.US), ll.toLanguageTags()); in testToLanguageTags()
169 assertEquals(toLanguageTag(Locale.US) + "," + toLanguageTag(Locale.FRENCH), in testToLanguageTags()
411 private String toLanguageTag(Locale locale) { in toLanguageTag() method in LocaleListCompatTest
413 return locale.toLanguageTag(); in toLanguageTag()
415 return LocaleHelper.toLanguageTag(locale); in toLanguageTag()
/frameworks/support/compat/java/android/support/v4/os/
DLocaleHelper.java61 static String toLanguageTag(Locale locale) { in toLanguageTag() method in LocaleHelper
DLocaleListHelper.java190 sb.append(LocaleHelper.toLanguageTag(localeClone)); in LocaleListHelper()
242 sb.append(LocaleHelper.toLanguageTag(localeList[i])); in LocaleListHelper()
/frameworks/base/core/java/android/os/
DRecoverySystem.java569 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in installPackage()
627 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in scheduleUpdateOnBoot()
744 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeUserData()
775 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeCache()
804 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeAb()
DLocaleList.java176 sb.append(localeClone.toLanguageTag()); in LocaleList()
227 sb.append(localeList[i].toLanguageTag()); in LocaleList()
/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java73 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java578 mKeyphraseMetadata.id, mLocale.toLanguageTag(), mInternalCallback, in startRecognitionLocked()
751 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/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/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java321 l.toLanguageTag()); in getLocaleForLanguageCountry()
338 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java154 mLanguageTag = sourceLocale == null ? "" : sourceLocale.toLanguageTag(); in SuggestionSpan()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1503 dest.writeString(l.toLanguageTag()); in writeToParcel()
1617 n = thisLocale.toLanguageTag().compareTo(thatLocale.toLanguageTag()); in compareTo()
DResourcesImpl.java417 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/core/java/android/text/
DStaticLayout.java359 nSetLocale(mNativePtr, locale.toLanguageTag(),
/frameworks/base/services/java/com/android/server/
DSystemServer.java300 final String languageTag = Locale.getDefault().toLanguageTag(); in run()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java233 return mInjectedLocale.toLanguageTag(); in injectGetLocaleTagsForUser()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1052 SystemProperties.set("persist.sys.locale", locale.toLanguageTag()); in copyLocaleFromMountService()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java2283 Log.d(TAG, "Storing locale " + l.toLanguageTag() + " for decryption UI"); in handleMessage()
2284 storageManager.setField(StorageManager.SYSTEM_LOCALE_KEY, l.toLanguageTag()); in handleMessage()
20278 locales.get(bestLocaleIndex).toLanguageTag());
/frameworks/base/api/
Dcurrent.txt20013 method public java.lang.String toLanguageTag();
64129 method public java.lang.String toLanguageTag();

12