/frameworks/base/tests/Internal/src/com/android/internal/app/ |
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() 195 info -> info.getLocale().toLanguageTag().equals("ks-Arab"))); 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() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AppLocaleCollector.java | 82 if (localeInfo != null && localeInfo.getLocale().getCountry().length() > 0) { in getAllAppActiveLocales() 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() 182 mImeLocales.forEach(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() [all …]
|
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() 496 if (li.getLocale().stripExtensions().equals(l.stripExtensions())) { in fillCache() 515 final String country = li.getLocale().getCountry(); in fillCache() 547 .equals(li.getLocale().stripExtensions()))) { in isShallIgnore() 559 } else if (parent.getLocale().getCountry().isEmpty()) { in getLocaleTier() [all …]
|
D | BilingualSuggestedLocaleAdapter.java | 171 textNative.setTextLocale(localeInfo.getLocale()); in setLocaleToListItem() 175 textSecondary.setText(localeInfo.getLocale().getDisplayLanguage(mSecondaryLocale)); in setLocaleToListItem()
|
D | LocaleHelper.java | 260 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare() 261 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode))); in compare()
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
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()
|
/frameworks/opt/localepicker/src/com/android/localepicker/ |
D | LocaleStore.java | 89 public Locale getLocale() { in getLocale() method in LocaleStore.LocaleInfo 235 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries() 255 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion() 278 if (LocaleList.isPseudoLocale(ULocale.forLocale(li.getLocale()))) { in fillCache() 289 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache() 306 final String country = li.getLocale().getCountry(); in fillCache()
|
D | LocaleHelper.java | 225 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare() 226 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode))); in compare()
|
/frameworks/base/core/java/android/service/notification/ |
D | SystemZenRules.java | 151 final Calendar cStart = Calendar.getInstance(getLocale(context)); in getShortDaysSummary() 152 final Calendar cEnd = Calendar.getInstance(getLocale(context)); in getShortDaysSummary() 203 SimpleDateFormat dayFormat = new SimpleDateFormat("EEE", getLocale(context)); in getShortDaysSummary() 231 final Calendar c = Calendar.getInstance(getLocale(context)); in timeString() 248 private static Locale getLocale(Context context) { in getLocale() method in SystemZenRules
|
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
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()
|
/frameworks/base/core/java/android/view/textservice/ |
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()
|
D | SpellCheckerSubtype.java | 138 public String getLocale() { in getLocale() method in SpellCheckerSubtype 214 && (subtype.getLocale().equals(getLocale())) in equals()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | GeocodeProvider.java | 59 request.getLocale()), 88 request.getLocale()),
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextLanguageTest.java | 63 assertEquals(ULocale.ENGLISH, result.getLocale(0)); in testParcel() 65 assertEquals(ULocale.GERMAN, result.getLocale(1)); in testParcel()
|
/frameworks/base/services/translation/java/com/android/server/translation/ |
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()
|
/frameworks/base/core/java/android/speech/tts/ |
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 …]
|
/frameworks/base/core/java/android/app/admin/ |
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
|
/frameworks/base/core/java/android/service/textservice/ |
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
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/ |
D | SoundTriggerTest.java | 75 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_zeroUsers() 95 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_pos()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | SubtypeUtils.java | 84 subtype.getLocale())); in containsSubtypeOf() 260 final String subtypeLocale = subtype.getLocale(); in findLastResortApplicableSubtype() 289 + applicableSubtype.getMode() + "," + applicableSubtype.getLocale()); in findLastResortApplicableSubtype()
|
/frameworks/base/core/java/android/text/style/ |
D | LocaleSpan.java | 104 public Locale getLocale() { in getLocale() method in LocaleSpan
|
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/ |
D | SlicePurchaseBroadcastReceiverTest.java | 300 Locale before = getLocale(); in testLocaleChanged() 332 assertEquals(newLocale, getLocale()); in testLocaleChanged() 335 private Locale getLocale() { in getLocale() method in SlicePurchaseBroadcastReceiverTest
|
/frameworks/base/location/lib/java/android/location/ |
D | GeocoderParams.java | 87 public @NonNull Locale getLocale() { in getLocale() method in GeocoderParams
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
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()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 451 public String getLocale() { in getLocale() method in InputMethodSubtype 760 && (subtype.getLocale().equals(getLocale())) in equals()
|