Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
H A 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()
H A DComprehensiveCountryDetectorTest.java138 public Country getCountry() {
180 assertTrue(sameCountry(listener.getCountry(), locationBasedCountry));
245 assertTrue(sameCountry(listener.getCountry(), null));
261 assertTrue(sameCountry(listener.getCountry(), null));
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DLocaleStore.java132 if (locale.getCountry().isEmpty()) { in getParent()
342 if (simCountries.contains(li.getLocale().getCountry())) { in updateSimCountries()
446 final String country = locale.getCountry(); in addSuggestedLocalesForRegion()
452 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion()
492 if (simCountries.contains(li.getLocale().getCountry())) { in fillCache()
515 final String country = li.getLocale().getCountry(); in fillCache()
559 } else if (parent.getLocale().getCountry().isEmpty()) { in getLocaleTier()
693 if (!TextUtils.isEmpty(locale.getCountry())) { in matchLocaleFromSupportedLocaleList()
696 && TextUtils.equals(locale.getCountry(), in matchLocaleFromSupportedLocaleList()
697 localeInfo.getLocale().getCountry())) { in matchLocaleFromSupportedLocaleList()
H A 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()
334 && appLocale.getCountry().equals(suggested.getCountry())) { in filterSameLanguageAndCountry()
H A DLocalePicker.java155 || l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getAllAssetLocales()
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DEventLogger.java68 if (!TextUtils.isEmpty(mRequest.getCountry())) { in getLocaleString()
70 sb.append(mRequest.getCountry()); in getLocaleString()
H A DSynthesisRequest.java95 public String getCountry() { in getCountry() method in SynthesisRequest
H A 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
H A DTtsEngines.java455 String country = ttsLocale.getCountry(); in normalizeTTSLocale()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCountryDetectorServiceTest.java68 Country getCountry() { in getCountry() method in CountryDetectorServiceTest.CountryListenerTester
189 expect.that(countryListenerA.getCountry().equalsIgnoreSource(country)).isTrue(); in notifyReceivers_twoListenersRegistered_bothNotified()
190 expect.that(countryListenerB.getCountry().equalsIgnoreSource(country)).isTrue(); in notifyReceivers_twoListenersRegistered_bothNotified()
/aosp14/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/location/countrydetector/
H A 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()
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DUtils.java42 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DLocaleUtils.java65 final String supportedCountry = supported.getCountry(); in calculateMatchingSubScore()
66 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) { in calculateMatchingSubScore()
H A DSubtypeUtils.java79 || !TextUtils.equals(subtypeLocale.getCountry(), locale.getCountry())) { in containsSubtypeOf()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeTest.java71 assertEquals("US", localeObject.getCountry()); in testLocaleObj_locale()
83 assertEquals("US", localeObject.getCountry()); in testLocaleObj_languageTag()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DKeyboardLayoutManager.java317 if (locale != null && locale.getCountry().equals(systemLocale.getCountry()) in getDefaultKeyboardLayout()
328 if (locale != null && locale.getCountry().equals(systemLocale.getCountry())) { in getDefaultKeyboardLayout()
344 return TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale()
345 || TextUtils.isEmpty(keyboardLocale.getCountry()) in isCompatibleLocale()
346 || systemLocale.getCountry().equals(keyboardLocale.getCountry()); in isCompatibleLocale()
1096 if (l.getCountry().equals(locale.getCountry())) { in getMatchingLayoutForProvidedLanguageTag()
/aosp14/frameworks/base/services/core/java/com/android/server/textservices/
H A DLocaleUtils.java75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
/aosp14/frameworks/base/location/java/android/location/
H A DGeocoderParams.java122 parcel.writeString8(mLocale.getCountry()); in writeToParcel()
H A DAddress.java535 parcel.writeString(mLocale.getCountry()); in writeToParcel()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/app/
H A DLocaleStoreTest.java154 assertTrue(result.get("de-1996").getLocale().getCountry().isEmpty()); in convertExplicitLocales_nonRegularFormat_resultEmptyContry()
184 assertTrue(localeInfo.getLocale().getCountry().isEmpty()); in getLevelLocales_languageTier_returnAllSupportLanguages()
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberFormattingTextWatcher.java63 this(Locale.getDefault().getCountry()); in PhoneNumberFormattingTextWatcher()
/aosp14/frameworks/base/core/java/android/os/
H A DLocaleList.java346 final String supportedRegion = supported.getCountry(); in matchesLanguageAndScript()
347 return supportedRegion.isEmpty() || supportedRegion.equals(desired.getCountry()); in matchesLanguageAndScript()
/aosp14/frameworks/base/core/java/android/content/res/
H A DConfiguration.java2187 n = thisLocale.getCountry().compareTo(thatLocale.getCountry()); in compareTo()
2437 final int c = loc.getCountry().length(); in localesToResourceQualifier()
2448 sb.append("-r").append(loc.getCountry()); in localesToResourceQualifier()
2459 sb.append(loc.getCountry()); in localesToResourceQualifier()
/aosp14/frameworks/base/core/java/android/text/format/
H A DDateFormat.java729 String region = locale.getCountry(); in getCompatibleEnglishPattern()

12