/frameworks/opt/localepicker/src/com/android/localepicker/ |
D | LocaleStore.java | 74 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/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | LocaleUtils.java | 100 || 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/core/java/com/android/server/inputmethod/ |
D | LocaleUtils.java | 69 final String supportedCountry = supported.getCountry(); in calculateMatchingSubScore() 70 if (supportedCountry.isEmpty() || !supportedCountry.equals(maxDesired.getCountry())) { in calculateMatchingSubScore() 80 String desiredCountry = desired.getCountry(); in calculateMatchingSubScore() 82 && (desiredCountry.isEmpty() || desiredCountry.equals(maxDesired.getCountry()))) { in calculateMatchingSubScore()
|
D | SubtypeUtils.java | 79 || !TextUtils.equals(subtypeLocale.getCountry(), locale.getCountry())) { in containsSubtypeOf()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/ |
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()
|
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));
|
/frameworks/base/core/java/android/speech/tts/ |
D | EventLogger.java | 68 if (!TextUtils.isEmpty(mRequest.getCountry())) { in getLocaleString() 70 sb.append(mRequest.getCountry()); in getLocaleString()
|
D | SynthesisRequest.java | 95 public String getCountry() { in getCountry() method in SynthesisRequest
|
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
|
/frameworks/base/core/java/com/android/internal/app/ |
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()
|
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
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()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | Utils.java | 42 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
|
/frameworks/base/services/core/java/com/android/server/location/countrydetector/ |
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()
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
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()
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | InputMethodSubtypeTest.java | 71 assertEquals("US", localeObject.getCountry()); in testLocaleObj_locale() 83 assertEquals("US", localeObject.getCountry()); in testLocaleObj_languageTag()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayout.java | 240 if (locale != null && locale.getCountry().equalsIgnoreCase("us") in isAnsiLayout() 254 if (locale != null && locale.getCountry().equalsIgnoreCase("jp")) { in isJisLayout()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LocaleUtils.java | 75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker()
|
/frameworks/base/location/lib/java/android/location/ |
D | GeocoderParams.java | 124 parcel.writeString8(mLocale.getCountry()); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardLayoutManager.java | 264 return TextUtils.isEmpty(systemLocale.getCountry()) in isCompatibleLocale() 265 || TextUtils.isEmpty(keyboardLocale.getCountry()) in isCompatibleLocale() 266 || systemLocale.getCountry().equals(keyboardLocale.getCountry()); in isCompatibleLocale() 811 if (l.getCountry().equals(locale.getCountry())) { in getMatchingLayoutForProvidedLanguageTag() 813 } else if (TextUtils.isEmpty(l.getCountry())) { in getMatchingLayoutForProvidedLanguageTag()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberFormattingTextWatcher.java | 67 this(Locale.getDefault().getCountry()); in PhoneNumberFormattingTextWatcher()
|
/frameworks/base/tests/Internal/src/com/android/internal/app/ |
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()
|
/frameworks/base/core/java/android/os/ |
D | LocaleList.java | 366 final String supportedRegion = supported.getCountry(); in matchesLanguageAndScript() 367 return supportedRegion.isEmpty() || supportedRegion.equals(desired.getCountry()); in matchesLanguageAndScript()
|
/frameworks/base/location/java/android/location/provider/ |
D | ReverseGeocodeRequest.java | 147 parcel.writeString8(mLocale.getCountry()); in writeToParcel()
|
D | ForwardGeocodeRequest.java | 185 parcel.writeString8(mLocale.getCountry()); in writeToParcel()
|