Home
last modified time | relevance | path

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

12

/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()
359 if (parentId.equals(li.getParent().toLanguageTag())) { in getLevelLocales()
375 String id = locale.toLanguageTag(); in getLocaleInfo()
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java118 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
119 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
143 final String languageTag = locale.toLanguageTag(); in getDisplayCountry()
162 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
DLocaleStore.java57 this.mId = locale.toLanguageTag(); in LocaleInfo()
163 ? mLocale.toLanguageTag() in getLangScriptKey()
164 : parentWithScript.toLanguageTag(); in getLangScriptKey()
296 String parentId = parent.toLanguageTag(); in fillCache()
361 if (parentId.equals(li.getParent().toLanguageTag())) { in getLevelLocales()
378 String id = locale.toLanguageTag(); in getLocaleInfo()
/frameworks/base/media/java/android/media/voice/
DKeyphraseModelManager.java88 locale.toLanguageTag()); in getKeyphraseSoundModel()
149 locale.toLanguageTag()); in deleteKeyphraseSoundModel()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp34 static size_t toLanguageTag(char* output, size_t outSize, const StringPiece& locale) { in toLanguageTag() function
91 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java107 + l.toLanguageTag()); in getLocaleForLanguageCountry()
124 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java182 soundModel.getKeyphrases()[0].getLocale().toLanguageTag()); in updateKeyphraseSoundModel()
201 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in deleteKeyphraseSoundModel()
230 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
249 bcp47Locale = Locale.forLanguageTag(bcp47Locale).toLanguageTag(); in getKeyphraseSoundModel()
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java109 return mEntityConfidence.getConfidenceScore(locale.toLanguageTag()); in getConfidenceScore()
172 mEntityConfidenceMap.put(locale.toLanguageTag(), confidenceScore); in putLocale()
DTextClassifierEvent.java241 dest.writeString(mLocale == null ? null : mLocale.toLanguageTag()); in writeToParcel()
/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java67 assertThat(localeInfo.getParent().toLanguageTag()).isEqualTo("zh-Hant"); in getLevel()
DSuggestedLocaleAdapterTest.java136 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java74 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/core/java/android/os/
DRecoverySystem.java600 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in installPackage()
730 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in scheduleUpdateOnBoot()
864 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeUserData()
1105 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeCache()
1134 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeAb()
DLocaleList.java177 sb.append(localeClone.toLanguageTag()); in LocaleList()
228 sb.append(localeList[i].toLanguageTag()); in LocaleList()
/frameworks/base/core/java/android/security/
DConfirmationPrompt.java274 String locale = Locale.getDefault().toLanguageTag(); in presentPrompt()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java786 mKeyphraseMetadata.getId(), mLocale.toLanguageTag(), mInternalCallback, in startRecognitionLocked()
991 mText, mLocale.toLanguageTag()); in internalUpdateEnrolledKeyphraseMetadata()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java184 mLanguageTag = sourceLocale == null ? "" : sourceLocale.toLanguageTag(); in SuggestionSpan()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java185 assertEquals(defaultLocale.toLanguageTag(), req.getValue().getVoiceName()); in testDefaultLanguage_setsVoiceName()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java351 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) in getManageKeyphraseIntent()
DConversionUtil.java137 aidlPhrase.locale = apiPhrase.getLocale().toLanguageTag(); in api2aidlPhrase()
DSoundTrigger.java665 dest.writeString(getLocale().toLanguageTag()); in writeToParcel()
734 + ", locale=" + getLocale().toLanguageTag() + ", text=" + getText() in toString()
/frameworks/base/core/java/android/content/res/
DConfiguration.java2018 n = thisLocale.toLanguageTag().compareTo(thatLocale.toLanguageTag()); in compareTo()
DResourcesImpl.java466 adjustLanguageTag(mConfiguration.getLocales().get(0).toLanguageTag()), in updateConfiguration()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java336 String voiceName = properLocale.toLanguageTag(); in onGetDefaultVoiceNameFor()

12