Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java44 assertEquals(localeString, createDummySubtype(localeString).getLocale()); in verifyLocale()
47 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
48 cloneViaParcel(createDummySubtype(localeString)).getLocale()); in verifyLocale()
51 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
52 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).getLocale()); in verifyLocale()
115 assertEquals("iw", subtypeIw.getLocale()); in testDeprecatedLocaleString()
116 assertEquals("he", subtypeHe.getLocale()); in testDeprecatedLocaleString()
124 assertEquals("iw", clonedSubtypeIw.getLocale()); in testDeprecatedLocaleString()
125 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/com/android/internal/app/
DLocaleStore.java86 public Locale getLocale() { in getLocale() method in LocaleStore.LocaleInfo
236 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
256 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
279 if (LocaleList.isPseudoLocale(li.getLocale())) { in fillCache()
290 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
307 final String country = li.getLocale().getCountry(); in fillCache()
DLocaleHelper.java240 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare()
241 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode))); in compare()
DLocalePicker.java83 public Locale getLocale() { in getLocale() method in LocalePicker.LocaleInfo
230 text.setTextLocale(item.getLocale()); in constructAdapter()
/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/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java55 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_noUsers()
75 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_zeroUsers()
95 assertEquals(keyphrase.getLocale(), unparceled.getLocale()); in testKeyphraseParcelUnparcel_pos()
/frameworks/base/core/java/android/view/textservice/
DTextServicesManager.java218 Locale locale = params.getLocale(); in newSpellCheckerSession()
244 final String subtypeLocale = subtypeInUse.getLocale(); in newSpellCheckerSession()
254 final String tempSubtypeLocale = subtype.getLocale(); in newSpellCheckerSession()
270 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/core/java/android/app/admin/
DFullyManagedDeviceProvisioningParams.java86 getLocale(localeStr), in FullyManagedDeviceProvisioningParams()
91 private static Locale getLocale(String localeStr) { in getLocale() method in FullyManagedDeviceProvisioningParams
119 public @SuppressLint("UseIcu") Locale getLocale() { in getLocale() method in FullyManagedDeviceProvisioningParams
/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/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteRenderParamsAdapter.java134 public String getLocale() { in getLocale() method in RemoteRenderParamsAdapter
135 return mDelegate.getLocale(); in getLocale()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1591 voiceLanguage = voice.getLocale().getISO3Language();
1594 + voice.getLocale(), e);
1599 voiceCountry = voice.getLocale().getISO3Country();
1602 + voice.getLocale(), e);
1607 mParams.putString(Engine.KEY_PARAM_VARIANT, voice.getLocale().getVariant());
1662 locales.add(voice.getLocale());
1704 language = voice.getLocale().getISO3Language();
1707 + voice.getLocale(), e);
1712 country = voice.getLocale().getISO3Country();
1715 + voice.getLocale(), e);
[all …]
/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/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteRenderParams.java55 String getLocale() throws RemoteException; in getLocale() method
/frameworks/base/core/java/android/text/style/
DLocaleSpan.java104 public Locale getLocale() { in getLocale() method in LocaleSpan
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java354 public String getLocale() { in getLocale() method in InputMethodSubtype
608 && (subtype.getLocale().equals(getLocale())) in equals()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java619 public Locale getLocale() { in getLocale() method in SoundTrigger.Keyphrase
673 dest.writeString(getLocale().toLanguageTag()); in writeToParcel()
695 result = prime * result + ((getLocale() == null) ? 0 : getLocale().hashCode()); in hashCode()
723 if (getLocale() == null) { in equals()
724 if (other.getLocale() != null) { in equals()
727 } else if (!getLocale().equals(other.getLocale())) { in equals()
742 + ", locale=" + getLocale().toLanguageTag() + ", text=" + getText() in toString()
/frameworks/base/location/java/android/location/
DGeocoderParams.java90 public @NonNull Locale getLocale() { in getLocale() method in GeocoderParams
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java288 if (localeInfo.getLocale().getISO3Language().equals(iso3Language)) { in handleSetMenuLanguage()
294 LocalePicker.updateLocale(localeInfo.getLocale()); in handleSetMenuLanguage()
/frameworks/minikin/tests/unittest/
DHyphenatorMapTest.cpp133 const Locale& getLocale(const std::string& localeStr) { in getLocale() function in minikin::__anon0407a1160111::HyphenatorMapTest
143 return mMap.lookupInternal(getLocale(localeStr)); in lookup()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java90 public final Locale getLocale() { in getLocale() method in CaptioningManager
203 final Locale locale = getLocale(); in notifyLocaleChanged()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java183 if (keyphrase.getLocale() == null) { in verifyKeyphraseSoundModel()
/frameworks/base/services/translation/java/com/android/server/translation/
DTranslationManagerServiceImpl.java283 res.putSerializable(EXTRA_SOURCE_LOCALE, sourceSpec.getLocale()); in invokeCallbacks()
284 res.putSerializable(EXTRA_TARGET_LOCALE, targetSpec.getLocale()); in invokeCallbacks()

123