/aosp14/frameworks/base/tests/Internal/src/com/android/internal/app/ |
H A D | LocaleStoreTest.java | 154 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 D | AppLocaleCollector.java | 113 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 D | LocaleStore.java | 121 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 D | BilingualSuggestedLocaleAdapter.java | 171 textNative.setTextLocale(localeInfo.getLocale()); in setLocaleToListItem() 175 textSecondary.setText(localeInfo.getLocale().getDisplayLanguage(mSecondaryLocale)); in setLocaleToListItem()
|
H A D | LocaleHelper.java | 260 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 D | InputMethodSubtypeTest.java | 47 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 D | SpellCheckerSubtypeTest.java | 72 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 D | TextServicesManager.java | 222 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 D | SpellCheckerSubtype.java | 138 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 D | TextLanguageTest.java | 63 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 D | TextToSpeech.java | 1635 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 D | TranslationManagerServiceImpl.java | 384 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 D | FullyManagedDeviceProvisioningParams.java | 99 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 D | SpellCheckerService.java | 176 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 D | SoundTriggerTest.java | 74 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 D | SubtypeUtils.java | 84 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 D | LocaleSpan.java | 104 public Locale getLocale() { in getLocale() method in LocaleSpan
|
/aosp14/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/ |
H A D | SlicePurchaseBroadcastReceiverTest.java | 300 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 D | HdmiCecSetMenuLanguageHelper.java | 71 public Locale getLocale() { in getLocale() method in HdmiCecSetMenuLanguageHelper
|
H A D | HdmiCecSetMenuLanguageActivity.java | 63 mHdmiCecSetMenuLanguageHelper.getLocale().getDisplayLanguage()); in onResume()
|
/aosp14/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | SoundTrigger.java | 631 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 D | GeocoderParams.java | 90 public @NonNull Locale getLocale() { in getLocale() method in GeocoderParams
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtype.java | 450 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 D | HdmiCecSetMenuLanguageHelperTest.java | 67 assertThat(mHdmiCecSetMenuLanguageHelper.getLocale()).isEqualTo(Locale.ENGLISH); in testSetGetLocale()
|
/aosp14/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
H A D | EnrollmentUtil.java | 183 if (keyphrase.getLocale() == null) { in verifyKeyphraseSoundModel()
|