/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/ |
H A D | LocationBasedCountryDetectorTest.java | 169 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 D | ComprehensiveCountryDetectorTest.java | 138 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 D | LocaleStore.java | 132 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 D | AppLocaleCollector.java | 82 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 D | LocalePicker.java | 155 || l.getLanguage().isEmpty() || l.getCountry().isEmpty()) { in getAllAssetLocales()
|
/aosp14/frameworks/base/core/java/android/speech/tts/ |
H A D | EventLogger.java | 68 if (!TextUtils.isEmpty(mRequest.getCountry())) { in getLocaleString() 70 sb.append(mRequest.getCountry()); in getLocaleString()
|
H A D | SynthesisRequest.java | 95 public String getCountry() { in getCountry() method in SynthesisRequest
|
H A D | TextToSpeechService.java | 255 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 D | TtsEngines.java | 455 String country = ttsLocale.getCountry(); in normalizeTTSLocale()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | CountryDetectorServiceTest.java | 68 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 D | TextToSpeechTests.java | 116 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 D | ComprehensiveCountryDetector.java | 168 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 D | Utils.java | 42 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | LocaleUtils.java | 65 final String supportedCountry = supported.getCountry(); in calculateMatchingSubScore() 66 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) { in calculateMatchingSubScore()
|
H A D | SubtypeUtils.java | 79 || !TextUtils.equals(subtypeLocale.getCountry(), locale.getCountry())) { in containsSubtypeOf()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | InputMethodSubtypeTest.java | 71 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 D | KeyboardLayoutManager.java | 317 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 D | LocaleUtils.java | 75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
|
/aosp14/frameworks/base/location/java/android/location/ |
H A D | GeocoderParams.java | 122 parcel.writeString8(mLocale.getCountry()); in writeToParcel()
|
H A D | Address.java | 535 parcel.writeString(mLocale.getCountry()); in writeToParcel()
|
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/app/ |
H A D | LocaleStoreTest.java | 154 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 D | PhoneNumberFormattingTextWatcher.java | 63 this(Locale.getDefault().getCountry()); in PhoneNumberFormattingTextWatcher()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | LocaleList.java | 346 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 D | Configuration.java | 2187 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 D | DateFormat.java | 729 String region = locale.getCountry(); in getCompatibleEnglishPattern()
|