Home
last modified time | relevance | path

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

12

/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleStore.java74 if (locale.getCountry().isEmpty()) { in getParent()
235 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
249 final String country = locale.getCountry(); in addSuggestedLocalesForRegion()
255 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
289 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
306 final String country = li.getLocale().getCountry(); in fillCache()
/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java70 if (locale.getCountry().isEmpty()) { in getParent()
236 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
250 final String country = locale.getCountry(); in addSuggestedLocalesForRegion()
256 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
290 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
307 final String country = li.getLocale().getCountry(); in fillCache()
DLocalePicker.java152 || l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getAllAssetLocales()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java100 || l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getLocaleForLanguageCountry()
105 if (l.getCountry().equals(target.getCountry())) { in getLocaleForLanguageCountry()
129 if (!TextUtils.isEmpty(target.getCountry())) { in getLocaleForLanguageCountry()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
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/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
DTtsEngines.java455 String country = ttsLocale.getCountry(); in normalizeTTSLocale()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCountryDetectorServiceTest.java68 Country getCountry() { in getCountry() method in CountryDetectorServiceTest.CountryListenerTester
188 expect.that(countryListenerA.getCountry().equalsIgnoreSource(country)).isTrue(); in notifyReceivers_twoListenersRegistered_bothNotified()
189 expect.that(countryListenerB.getCountry().equalsIgnoreSource(country)).isTrue(); in notifyReceivers_twoListenersRegistered_bothNotified()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java68 assertEquals("US", localeObject.getCountry()); in testLocaleObj_locale()
80 assertEquals("US", localeObject.getCountry()); in testLocaleObj_languageTag()
/frameworks/base/services/people/java/com/android/server/people/data/
DUtils.java42 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DLocaleUtils.java63 final String supportedCountry = supported.getCountry(); in calculateMatchingSubScore()
64 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) { in calculateMatchingSubScore()
/frameworks/base/services/core/java/com/android/server/location/countrydetector/
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/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java116 assertEquals("USA", req.getValue().getCountry()); in testSetLanguage_availableLanguage()
140 assertEquals("USA", req2.getValue().getCountry()); in testSetLanguage_unavailableLanguage()
183 assertEquals(defaultLocale.getISO3Country(), req.getValue().getCountry()); in testDefaultLanguage_setsVoiceName()
/frameworks/base/services/core/java/com/android/server/textservices/
DLocaleUtils.java75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
/frameworks/base/location/java/android/location/
DGeocoderParams.java122 parcel.writeString(mLocale.getCountry()); in writeToParcel()
DAddress.java535 parcel.writeString(mLocale.getCountry()); in writeToParcel()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java62 this(Locale.getDefault().getCountry()); in PhoneNumberFormattingTextWatcher()
/frameworks/base/core/java/android/os/
DLocaleList.java333 final String supportedRegion = supported.getCountry(); in matchScore()
335 supportedRegion.equals(desired.getCountry())) in matchScore()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1126 if (locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout()
1139 if (locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout()
1155 if (!TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale()
1156 && !TextUtils.isEmpty(keyboardLocale.getCountry()) in isCompatibleLocale()
1157 && !systemLocale.getCountry().equals(keyboardLocale.getCountry())) { in isCompatibleLocale()
/frameworks/base/core/java/android/content/res/
DConfiguration.java2074 n = thisLocale.getCountry().compareTo(thatLocale.getCountry()); in compareTo()
2298 final int c = loc.getCountry().length(); in localesToResourceQualifier()
2309 sb.append("-r").append(loc.getCountry()); in localesToResourceQualifier()
2320 sb.append(loc.getCountry()); in localesToResourceQualifier()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java366 if (locale.getScript().isEmpty() || locale.getCountry().isEmpty()) { in toFullLocale()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java395 final List<String> zoneIds = lookupTimeZoneIdsByCountry(locale.getCountry());

12