Home
last modified time | relevance | path

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

123

/frameworks/base/tests/Internal/src/com/android/internal/app/
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()
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/
DAppLocaleCollector.java82 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 …]
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()
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 …]
DBilingualSuggestedLocaleAdapter.java171 textNative.setTextLocale(localeInfo.getLocale()); in setLocaleToListItem()
175 textSecondary.setText(localeInfo.getLocale().getDisplayLanguage(mSecondaryLocale)); in setLocaleToListItem()
DLocaleHelper.java260 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/
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()
/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleStore.java89 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()
DLocaleHelper.java225 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare()
226 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode))); in compare()
/frameworks/base/core/java/android/service/notification/
DSystemZenRules.java151 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/
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()
/frameworks/base/core/java/android/view/textservice/
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()
DSpellCheckerSubtype.java138 public String getLocale() { in getLocale() method in SpellCheckerSubtype
214 && (subtype.getLocale().equals(getLocale())) in equals()
/frameworks/base/location/lib/java/com/android/location/provider/
DGeocodeProvider.java59 request.getLocale()),
88 request.getLocale()),
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextLanguageTest.java63 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/
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()
/frameworks/base/core/java/android/speech/tts/
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 …]
/frameworks/base/core/java/android/app/admin/
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
/frameworks/base/core/java/android/service/textservice/
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
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/
DSoundTriggerTest.java75 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/
DSubtypeUtils.java84 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/
DLocaleSpan.java104 public Locale getLocale() { in getLocale() method in LocaleSpan
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DSlicePurchaseBroadcastReceiverTest.java300 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/
DGeocoderParams.java87 public @NonNull Locale getLocale() { in getLocale() method in GeocoderParams
/frameworks/base/core/java/android/hardware/soundtrigger/
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()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java451 public String getLocale() { in getLocale() method in InputMethodSubtype
760 && (subtype.getLocale().equals(getLocale())) in equals()

123