Home
last modified time | relevance | path

Searched refs:getCountry (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java68 if (locale.getCountry().isEmpty()) { in getParent()
229 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
243 final String country = locale.getCountry(); in addSuggestedLocalesForRegion()
249 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
282 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
299 final String country = li.getLocale().getCountry(); in fillCache()
DLocalePicker.java111 || l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getAllAssetLocales()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java169 public String getCountry() { in getCountry() method in LocationBasedCountryDetectorTest.CountryListenerImpl
216 assertEquals("us", countryListener.getCountry().toLowerCase()); in testFindingCountryCommon()
241 assertEquals("us", countryListener.getCountry().toLowerCase()); in testFindingCountryCancelled()
282 assertNull(countryListener.getCountry()); in testFindingLocationFailed()
319 assertNull(countryListener.getCountry()); in testFindingCountryFailed()
342 assertEquals("us", countryListener.getCountry().toLowerCase()); in testFindingCountryWithLastKnownLocation()
DComprehensiveCountryDetectorTest.java138 public Country getCountry() {
180 assertTrue(sameCountry(listener.getCountry(), locationBasedCountry));
245 assertTrue(sameCountry(listener.getCountry(), null));
261 assertTrue(sameCountry(listener.getCountry(), null));
/frameworks/support/compat/src/main/java/androidx/core/os/
DLocaleHelper.java64 final String country = locale.getCountry(); in toLanguageTag()
67 buf.append(locale.getCountry()); in toLanguageTag()
DLocaleListHelper.java329 final String supportedRegion = supported.getCountry(); in matchScore()
330 return (supportedRegion.isEmpty() || supportedRegion.equals(desired.getCountry())) in matchScore()
/frameworks/base/core/java/android/speech/tts/
DEventLogger.java68 if (!TextUtils.isEmpty(mRequest.getCountry())) { in getLocaleString()
70 sb.append(mRequest.getCountry()); in getLocaleString()
DSynthesisRequest.java95 public String getCountry() { in getCountry() method in SynthesisRequest
DTextToSpeechService.java255 if (locale.getCountry().isEmpty()) { in getExpectedLanguageAvailableStatus()
1048 request.setLanguage(getLanguage(), getCountry(), getVariant()); in setRequestParams()
1074 private String getCountry() { in getCountry() method in TextToSpeechService.SynthesisSpeechItem
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java67 assertEquals("US", localeObject.getCountry()); in testLocaleObj_locale()
79 assertEquals("US", localeObject.getCountry()); in testLocaleObj_languageTag()
/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java168 private Country getCountry() { in getCountry() method in ComprehensiveCountryDetector
257 return new Country(defaultLocale.getCountry(), Country.COUNTRY_SOURCE_LOCALE); in getLocaleCountry()
271 Country country = getCountry(); in detectCountry()
/frameworks/base/core/java/com/android/internal/inputmethod/
DLocaleUtils.java67 final String supportedCountry = supported.getCountry(); in calculateMatchingSubScore()
68 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) { in calculateMatchingSubScore()
DInputMethodUtils.java385 !TextUtils.equals(subtypeLocale.getCountry(), locale.getCountry())) { in containsSubtypeOf()
1449 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java115 assertEquals("USA", req.getValue().getCountry()); in testSetLanguage_availableLanguage()
139 assertEquals("USA", req2.getValue().getCountry()); in testSetLanguage_unavailableLanguage()
182 assertEquals(defaultLocale.getISO3Country(), req.getValue().getCountry()); in testDefaultLanguage_setsVoiceName()
/frameworks/base/location/java/android/location/
DGeocoderParams.java90 parcel.writeString(mLocale.getCountry()); in writeToParcel()
DAddress.java535 parcel.writeString(mLocale.getCountry()); in writeToParcel()
/frameworks/base/core/java/android/os/
DLocaleList.java157 protoOutputStream.write(LocaleProto.COUNTRY, locale.getCountry()); in writeToProto()
345 final String supportedRegion = supported.getCountry(); in matchScore()
347 supportedRegion.equals(desired.getCountry())) in matchScore()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCountryDetectorServiceTest.java35 public Country getCountry() { in getCountry() method in CountryDetectorServiceTest.CountryListenerTester
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java297 l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getLocaleForLanguageCountry()
302 if (l.getCountry().equals(target.getCountry())) { in getLocaleForLanguageCountry()
330 if (!TextUtils.isEmpty(target.getCountry())) { in getLocaleForLanguageCountry()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java60 this(Locale.getDefault().getCountry()); in PhoneNumberFormattingTextWatcher()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java865 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout()
878 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout()
894 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale()
895 && !TextUtils.isEmpty(keyboardLocale.getCountry()) in isCompatibleLocale()
896 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1720 n = thisLocale.getCountry().compareTo(thatLocale.getCountry()); in compareTo()
1941 final int c = loc.getCountry().length(); in localesToResourceQualifier()
1952 sb.append("-r").append(loc.getCountry()); in localesToResourceQualifier()
1963 sb.append(loc.getCountry()); in localesToResourceQualifier()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java312 if (locale.getScript().isEmpty() || locale.getCountry().isEmpty()) { in toFullLocale()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java628 countryIso = locale.getCountry(); in getCurrentCountryIso()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java383 final List<String> zoneIds = lookupTimeZoneIdsByCountry(locale.getCountry());

12