Home
last modified time | relevance | path

Searched refs:getLocale (Results 1 – 25 of 61) sorted by relevance

123

/aosp14/frameworks/base/tests/Internal/src/com/android/internal/app/
H A DLocaleStoreTest.java154 assertTrue(result.get("de-1996").getLocale().getCountry().isEmpty()); in convertExplicitLocales_nonRegularFormat_resultEmptyContry()
184 assertTrue(localeInfo.getLocale().getCountry().isEmpty()); in getLevelLocales_languageTier_returnAllSupportLanguages()
187 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()
212 assertEquals("en", localeInfo.getLocale().getLanguage()); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
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()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DAppLocaleCollector.java113 info -> info.getLocale().getCountry().length() > 0).collect( in getActiveImeLocales()
165 info -> info.getLocale().getCountry().length() > 0).collect( in getSystemCurrentLocales()
174 langTagsToIgnore.add(mAppCurrentLocale.getLocale().toLanguageTag()); in getIgnoredLocaleList()
180 info -> langTagsToIgnore.add(info.getLocale().toLanguageTag())); in getIgnoredLocaleList()
233 && localeInfo.getLocale().equals(mAppCurrentLocale.getLocale()); in getSupportedLocaleList()
302 if (info.getLocale().equals(localeInfo.getLocale())) { in addSystemSuggestionFlag()
315 if (imeLocale.getLocale().equals(localeInfo.getLocale())) { in addImeSuggestionFlag()
330 Locale appLocale = appLocaleInfo.getLocale(); in filterSameLanguageAndCountry()
332 Locale suggested = localeInfo.getLocale(); in filterSameLanguageAndCountry()
352 if (appSupportedLocales.contains(li.getLocale())) { in filterSupportedLocales()
[all …]
H A DLocaleStore.java121 this.mLocale = localeInfo.getLocale(); in LocaleInfo()
153 public Locale getLocale() { in getLocale() method in LocaleStore.LocaleInfo
342 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
452 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
481 if (LocaleList.isPseudoLocale(li.getLocale())) { in fillCache()
492 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
515 final String country = li.getLocale().getCountry(); in fillCache()
559 } else if (parent.getLocale().getCountry().isEmpty()) { in getLocaleTier()
642 if (parent.getLocale().stripExtensions() in getTierLocales()
697 localeInfo.getLocale().getCountry())) { in matchLocaleFromSupportedLocaleList()
[all …]
H A DBilingualSuggestedLocaleAdapter.java171 textNative.setTextLocale(localeInfo.getLocale()); in setLocaleToListItem()
175 textSecondary.setText(localeInfo.getLocale().getDisplayLanguage(mSecondaryLocale)); in setLocaleToListItem()
H A DLocaleHelper.java260 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare()
261 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode))); in compare()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeTest.java47 assertEquals(localeString, createSubtype(localeString).getLocale()); in verifyLocale()
50 assertEquals(createSubtype(localeString).getLocale(), in verifyLocale()
51 cloneViaParcel(createSubtype(localeString)).getLocale()); in verifyLocale()
54 assertEquals(createSubtype(localeString).getLocale(), in verifyLocale()
55 cloneViaParcel(cloneViaParcel(createSubtype(localeString))).getLocale()); in verifyLocale()
118 assertEquals("iw", subtypeIw.getLocale()); in testDeprecatedLocaleString()
119 assertEquals("he", subtypeHe.getLocale()); in testDeprecatedLocaleString()
127 assertEquals("iw", clonedSubtypeIw.getLocale()); in testDeprecatedLocaleString()
128 assertEquals("he", clonedSubtypeHe.getLocale()); in testDeprecatedLocaleString()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textservice/
H A DSpellCheckerSubtypeTest.java72 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); in testSubtypeWithNoSubtypeId()
85 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, clonedSubtype.getLocale()); in testSubtypeWithNoSubtypeId()
100 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); in testSubtypeWithSubtypeId()
110 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, clonedSubtype.getLocale()); in testSubtypeWithSubtypeId()
/aosp14/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java222 Locale locale = params.getLocale(); in newSpellCheckerSession()
248 final String subtypeLocale = subtypeInUse.getLocale(); in newSpellCheckerSession()
258 final String tempSubtypeLocale = subtype.getLocale(); in newSpellCheckerSession()
274 mService.getSpellCheckerService(mUserId, sci.getId(), subtypeInUse.getLocale(), in newSpellCheckerSession()
H A DSpellCheckerSubtype.java138 public String getLocale() { in getLocale() method in SpellCheckerSubtype
214 && (subtype.getLocale().equals(getLocale())) in equals()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DTextLanguageTest.java63 assertEquals(ULocale.ENGLISH, result.getLocale(0)); in testParcel()
65 assertEquals(ULocale.GERMAN, result.getLocale(1)); in testParcel()
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java1635 voiceLanguage = voice.getLocale().getISO3Language();
1638 + voice.getLocale(), e);
1643 voiceCountry = voice.getLocale().getISO3Country();
1646 + voice.getLocale(), e);
1651 mParams.putString(Engine.KEY_PARAM_VARIANT, voice.getLocale().getVariant());
1706 locales.add(voice.getLocale());
1748 language = voice.getLocale().getISO3Language();
1751 + voice.getLocale(), e);
1756 country = voice.getLocale().getISO3Country();
1759 + voice.getLocale(), e);
[all …]
/aosp14/frameworks/base/services/translation/java/com/android/server/translation/
H A DTranslationManagerServiceImpl.java384 boolean specsAreIdentical = activeTranslation.sourceSpec.getLocale().equals( in invokeCallbacksIfNecessaryLocked()
385 sourceSpec.getLocale()) in invokeCallbacksIfNecessaryLocked()
386 && activeTranslation.targetSpec.getLocale().equals( in invokeCallbacksIfNecessaryLocked()
387 targetSpec.getLocale()); in invokeCallbacksIfNecessaryLocked()
512 result.putSerializable(EXTRA_SOURCE_LOCALE, sourceSpec.getLocale()); in createResultForCallback()
513 result.putSerializable(EXTRA_TARGET_LOCALE, targetSpec.getLocale()); in createResultForCallback()
/aosp14/frameworks/base/core/java/android/app/admin/
H A DFullyManagedDeviceProvisioningParams.java99 getLocale(localeStr), in FullyManagedDeviceProvisioningParams()
106 private static Locale getLocale(String localeStr) { in getLocale() method in FullyManagedDeviceProvisioningParams
155 public @SuppressLint("UseIcu") Locale getLocale() { in getLocale() method in FullyManagedDeviceProvisioningParams
/aosp14/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java176 final String localeStr = getLocale(); in onGetSentenceSuggestionsMultiple()
224 public String getLocale() { in getLocale() method in SpellCheckerService.Session
225 return mInternalSession.getLocale(); in getLocale()
314 public String getLocale() { in getLocale() method in SpellCheckerService.InternalISpellCheckerSession
/aosp14/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/
H A DSoundTriggerTest.java74 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_zeroUsers()
94 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_pos()
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DSubtypeUtils.java84 subtype.getLocale())); in containsSubtypeOf()
268 final String subtypeLocale = subtype.getLocale(); in findLastResortApplicableSubtypeLocked()
297 + applicableSubtype.getMode() + "," + applicableSubtype.getLocale()); in findLastResortApplicableSubtypeLocked()
/aosp14/frameworks/base/core/java/android/text/style/
H A DLocaleSpan.java104 public Locale getLocale() { in getLocale() method in LocaleSpan
/aosp14/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DSlicePurchaseBroadcastReceiverTest.java300 Locale before = getLocale(); in testLocaleChanged()
332 assertEquals(newLocale, getLocale()); in testLocaleChanged()
335 private Locale getLocale() { in getLocale() method in SlicePurchaseBroadcastReceiverTest
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/hdmi/
H A DHdmiCecSetMenuLanguageHelper.java71 public Locale getLocale() { in getLocale() method in HdmiCecSetMenuLanguageHelper
H A DHdmiCecSetMenuLanguageActivity.java63 mHdmiCecSetMenuLanguageHelper.getLocale().getDisplayLanguage()); in onResume()
/aosp14/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTrigger.java631 public Locale getLocale() { in getLocale() method in SoundTrigger.Keyphrase
685 dest.writeString(getLocale().toLanguageTag()); in writeToParcel()
707 result = prime * result + ((getLocale() == null) ? 0 : getLocale().hashCode()); in hashCode()
735 if (getLocale() == null) { in equals()
736 if (other.getLocale() != null) { in equals()
739 } else if (!getLocale().equals(other.getLocale())) { in equals()
754 + ", locale=" + getLocale().toLanguageTag() + ", text=" + getText() in toString()
/aosp14/frameworks/base/location/java/android/location/
H A DGeocoderParams.java90 public @NonNull Locale getLocale() { in getLocale() method in GeocoderParams
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java450 public String getLocale() { in getLocale() method in InputMethodSubtype
759 && (subtype.getLocale().equals(getLocale())) in equals()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/hdmi/
H A DHdmiCecSetMenuLanguageHelperTest.java67 assertThat(mHdmiCecSetMenuLanguageHelper.getLocale()).isEqualTo(Locale.ENGLISH); in testSetGetLocale()
/aosp14/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
H A DEnrollmentUtil.java183 if (keyphrase.getLocale() == null) { in verifyKeyphraseSoundModel()

123