Home
last modified time | relevance | path

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

12

/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/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/base/core/tests/coretests/src/android/view/textclassifier/
DModelFileManagerTest.java129 Collections.singletonList(locale), locale.toLanguageTag(), false); in findBestModel_languageDependentModelIsPreferred()
136 LocaleList.forLanguageTags(locale.toLanguageTag())); in findBestModel_languageDependentModelIsPreferred()
151 Collections.singletonList(locale), locale.toLanguageTag(), false); in findBestModel_noMatchedLanguageModel()
174 DEFAULT_LOCALE), DEFAULT_LOCALE.toLanguageTag(), false); in findBestModel_noMatchedLanguageModel_defaultLocaleModelExists()
DActionsSuggestionsHelperTest.java57 private static final String LOCALE_TAG = Locale.US.toLanguageTag();
DTextClassifierTest.java653 && languageTag.equals(result.getLocale(0).toLanguageTag());
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java111 return mEntityConfidence.getConfidenceScore(locale.toLanguageTag()); in getConfidenceScore()
174 mEntityConfidenceMap.put(locale.toLanguageTag(), confidenceScore); in putLocale()
DActionsSuggestionsHelper.java113 localesJoiner.add(locale.toLanguageTag()); in createResultId()
DModelFileManager.java295 localesJoiner.add(locale.toLanguageTag()); in toString()
DSelectionSessionLogger.java257 localesJoiner.add(locale.toLanguageTag()); in createId()
DTextClassifierEvent.java237 dest.writeString(mLocale == null ? null : mLocale.toLanguageTag()); in writeToParcel()
DTextClassifierImpl.java528 languageTags.add(locale.toLanguageTag()); in detectLanguageTagsFromText()
/frameworks/base/core/java/android/os/
DRecoverySystem.java583 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in installPackage()
641 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() + "\n"; in scheduleUpdateOnBoot()
772 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeUserData()
909 final String localeArg = "--locale=" + Locale.getDefault().toLanguageTag() ; in rebootWipeCache()
938 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/android/os/
DLocaleListTest.java74 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/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/text/style/
DSuggestionSpan.java184 mLanguageTag = sourceLocale == null ? "" : sourceLocale.toLanguageTag(); in SuggestionSpan()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java316 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) in getManageKeyphraseIntent()
/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/content/res/
DConfiguration.java1900 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