/frameworks/base/services/core/java/com/android/server/location/countrydetector/ |
D | ComprehensiveCountryDetector.java | 134 public void onCountryDetected(Country country) { 136 mCountryFromLocation = country; 187 private void addToLogs(Country country) { in addToLogs() argument 188 if (country == null) { in addToLogs() 195 if (mLastCountryAddedToLogs != null && mLastCountryAddedToLogs.equals(country)) { in addToLogs() 198 mLastCountryAddedToLogs = country; in addToLogs() 205 Slog.d(TAG, country.toString()); in addToLogs() 207 mDebugLogs.add(country); in addToLogs() 271 Country country = getCountry(); in detectCountry() local 272 runAfterDetectionAsync(mCountry != null ? new Country(mCountry) : mCountry, country, in detectCountry() [all …]
|
D | CountryDetectorBase.java | 69 protected void notifyListener(Country country) { in notifyListener() argument 71 mListener.onCountryDetected(country); in notifyListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/ |
D | ComprehensiveCountryDetectorTest.java | 36 public void notifyLocationBasedListener(Country country) { in notifyLocationBasedListener() argument 38 mNotifiedCountry = country; in notifyLocationBasedListener() 39 mLocationBasedCountryDetector.notifyListener(country); in notifyLocationBasedListener() 95 protected void runAfterDetectionAsync(final Country country, final Country detectedCountry, in runAfterDetectionAsync() argument 97 runAfterDetection(country, detectedCountry, notifyChange, startLocationBasedDetection); in runAfterDetectionAsync() 129 public void onCountryDetected(Country country) { 131 mCountry = country; 154 Country country = countryDetector.detectCountry(); 155 assertTrue(sameCountry(country, resultCountry)); 175 Country country = countryDetector.detectCountry(); [all …]
|
D | LocationBasedCountryDetectorTest.java | 46 public TestCountryDetector(String country, String provider) { in TestCountryDetector() argument 47 this(country, provider, 1000 * 60 * 5); in TestCountryDetector() 50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) { in TestCountryDetector() argument 52 mCountry = country; in TestCountryDetector() 158 public void onCountryDetected(Country country) { in onCountryDetected() argument 160 if (country != null) { in onCountryDetected() 161 mCountryCode = country.getCountryIso(); in onCountryDetected() 183 final String country = "us"; in testFindingCountryCommon() local 186 TestCountryDetector detector = new TestCountryDetector(country, provider); in testFindingCountryCommon() 220 final String country = "us"; in testFindingCountryCancelled() local [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | LocaleUtils.java | 50 String country = MccTable.countryCodeForMcc(mcc); in getLocaleFromMcc() local 52 Rlog.d(LOG_TAG, "getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc() 53 final Locale locale = getLocaleForLanguageCountry(context, language, country); in getLocaleFromMcc() 59 Rlog.d(LOG_TAG, "[retry ] getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc() 60 return getLocaleForLanguageCountry(context, language, country); in getLocaleFromMcc() 76 String country) { in getLocaleForLanguageCountry() argument 81 if (country == null) { in getLocaleForLanguageCountry() 82 country = ""; // The Locale constructor throws if passed null. in getLocaleForLanguageCountry() 85 final Locale target = new Locale(language, country); in getLocaleForLanguageCountry() 164 final String country = entry.mIso; in defaultLanguageForMcc() local [all …]
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | MockableTextToSpeechService.java | 40 protected int onIsLanguageAvailable(String lang, String country, String variant) { in onIsLanguageAvailable() argument 41 return sDelegate.onIsLanguageAvailable(lang, country, variant); in onIsLanguageAvailable() 50 protected int onLoadLanguage(String lang, String country, String variant) { in onLoadLanguage() argument 51 return sDelegate.onLoadLanguage(lang, country, variant); in onLoadLanguage() 65 int onIsLanguageAvailable(String lang, String country, String variant); in onIsLanguageAvailable() argument 69 int onLoadLanguage(String lang, String country, String variant); in onLoadLanguage() argument
|
/frameworks/base/location/java/android/location/ |
D | Country.java | 103 public Country(Country country) { in Country() argument 104 mCountryIso = country.mCountryIso; in Country() 105 mSource = country.mSource; in Country() 106 mTimestamp = country.mTimestamp; in Country() 198 public boolean equalsIgnoreSource(Country country) { in equalsIgnoreSource() argument 199 return country != null && mCountryIso.equals(country.getCountryIso()); in equalsIgnoreSource()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CountryDetectorServiceTest.java | 64 public void onCountryDetected(Country country) { in onCountryDetected() argument 65 mCountry = country; in onCountryDetected() 85 public void notifyReceivers(Country country) { in notifyReceivers() argument 86 super.notifyReceivers(country); in notifyReceivers() 177 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK); in notifyReceivers_twoListenersRegistered_bothNotified() local 184 mCountryDetectorService.notifyReceivers(country); in notifyReceivers_twoListenersRegistered_bothNotified() 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/java/android/speech/tts/ |
D | TtsEngines.java | 95 for (String country : Locale.getISOCountries()) { 97 normalizeCountry.put(new Locale("", country).getISO3Country(), country); in normalizeCountry.put() argument 386 String language = "", country = "", variant = ""; in parseLocaleString() local 402 country = split[1].toUpperCase(); in parseLocaleString() 415 String normalizedCountry= sNormalizeCountry.get(country); in parseLocaleString() 417 country = normalizedCountry; in parseLocaleString() 420 if (DBG) Log.d(TAG, "parseLocalePref(" + language + "," + country + in parseLocaleString() 423 Locale result = new Locale(language, country, variant); in parseLocaleString() 455 String country = ttsLocale.getCountry(); in normalizeTTSLocale() local 456 if (!TextUtils.isEmpty(country)) { in normalizeTTSLocale() [all …]
|
D | ITextToSpeechService.aidl | 134 int isLanguageAvailable(in String lang, in String country, in String variant); in isLanguageAvailable() argument 149 String[] getFeaturesForLanguage(in String lang, in String country, in String variant); in getFeaturesForLanguage() argument 166 int loadLanguage(in IBinder caller, in String lang, in String country, in String variant); in loadLanguage() argument 209 String getDefaultVoiceNameFor(in String lang, in String country, in String variant); in getDefaultVoiceNameFor() argument
|
D | TextToSpeechService.java | 178 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); in onIsLanguageAvailable() argument 218 protected abstract int onLoadLanguage(String lang, String country, String variant); in onLoadLanguage() argument 248 protected Set<String> onGetFeaturesForLanguage(String lang, String country, String variant) { in onGetFeaturesForLanguage() argument 319 public String onGetDefaultVoiceNameFor(String lang, String country, String variant) { in onGetDefaultVoiceNameFor() argument 320 int localeStatus = onIsLanguageAvailable(lang, country, variant); in onGetDefaultVoiceNameFor() 327 iso3Locale = new Locale(lang, country); in onGetDefaultVoiceNameFor() 330 iso3Locale = new Locale(lang, country, variant); in onGetDefaultVoiceNameFor() 1207 String language, String country, String variant) { in LoadLanguageItem() argument 1210 mCountry = country; in LoadLanguageItem() 1396 public int isLanguageAvailable(String lang, String country, String variant) { [all …]
|
D | TextToSpeech.java | 1540 String language = null, country = null; 1549 country = loc.getISO3Country(); 1562 int result = service.isLanguageAvailable(language, country, variant); 1565 String voiceName = service.getDefaultVoiceNameFor(language, country, variant); 1568 + country + "-" + variant); 1574 Log.w(TAG, "The service claimed " + language + "-" + country + "-" 1585 + language + "-" + country + "-" + variant 1645 String country = mParams.getString(Engine.KEY_PARAM_COUNTRY, ""); 1647 return new Locale(lang, country, variant); 1710 String country = ""; [all …]
|
D | SynthesisRequest.java | 137 void setLanguage(String language, String country, String variant) { in setLanguage() argument 139 mCountry = country; in setLanguage()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | Utils.java | 36 Country country = detector.detectCountry(); in getCurrentCountryIso() local 37 if (country != null) { in getCurrentCountryIso() 38 countryIso = country.getCountryIso(); in getCurrentCountryIso()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LocaleUtils.java | 75 final String country = systemLocale.getCountry(); in getSuitableLocalesForSpellChecker() local 76 final boolean hasCountry = !TextUtils.isEmpty(country); in getSuitableLocalesForSpellChecker() 80 systemLocaleLanguageCountryVariant = new Locale(language, country, variant); in getSuitableLocalesForSpellChecker() 85 systemLocaleLanguageCountry = new Locale(language, country); in getSuitableLocalesForSpellChecker()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 63 outCountry[0] = config->country[0]; in AConfiguration_getCountry() 64 outCountry[1] = config->country[1]; in AConfiguration_getCountry() 155 void AConfiguration_setCountry(AConfiguration* config, const char* country) { in AConfiguration_setCountry() argument 156 config->country[0] = country[0]; in AConfiguration_setCountry() 157 config->country[1] = country[1]; in AConfiguration_setCountry()
|
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 64 android::localeDataComputeScript(script_buffer, config.language, config.country); in ScriptsMatch() 70 android::localeDataComputeScript(script_buffer, entry.language, entry.country); in ScriptsMatch() 104 if (config.language[0] != '\0' && config.country[0] == '\0' && in Match()
|
/frameworks/opt/localepicker/src/com/android/localepicker/ |
D | LocaleStore.java | 249 final String country = locale.getCountry(); in addSuggestedLocalesForRegion() local 250 if (country.isEmpty()) { in addSuggestedLocalesForRegion() 255 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion() 306 final String country = li.getLocale().getCountry(); in fillCache() local 308 if (!country.isEmpty()) { in fillCache() 313 final String langScriptCtry = li.getLangScriptKey() + "-" + country; in fillCache()
|
D | LocaleHelper.java | 142 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry() local 145 return String.format("%s (%s)", country, in getDisplayCountry() 148 return country; in getDisplayCountry()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocaleStore.java | 250 final String country = locale.getCountry(); in addSuggestedLocalesForRegion() local 251 if (country.isEmpty()) { in addSuggestedLocalesForRegion() 256 if (country.equals(li.getLocale().getCountry())) { in addSuggestedLocalesForRegion() 307 final String country = li.getLocale().getCountry(); in fillCache() local 309 if (!country.isEmpty()) { in fillCache() 314 final String langScriptCtry = li.getLangScriptKey() + "-" + country; in fillCache()
|
D | LocaleHelper.java | 116 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry() local 119 return String.format("%s (%s)", country, in getDisplayCountry() 122 return country; in getDisplayCountry()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneFilterTypeAdapter.java | 214 for (String country : mTimeZoneData.mTimeZonesByCountry.keySet()) { in performFiltering() 216 if (!TextUtils.isEmpty(country)) { in performFiltering() 217 final String lowerCaseCountry = country.toLowerCase(); in performFiltering() 234 countries.add(country); in performFiltering() 241 for (String country : countries) { in performFiltering() 242 filtered.add(new FilterTypeResult(FILTER_TYPE_COUNTRY, country, 0)); in performFiltering()
|
D | TimeZoneData.java | 406 String country = mCountryCodeToNameMap.get(countryCode); in loadTzsInZoneTab() local 407 if (country == null) { in loadTzsInZoneTab() 408 country = getCountryNames(lang, countryCode); in loadTzsInZoneTab() 409 mCountryCodeToNameMap.put(countryCode, country); in loadTzsInZoneTab() 418 mDefaultTimeZoneCountry = country; in loadTzsInZoneTab() 421 mDefaultTimeZoneInfo = new TimeZoneInfo(defaultTz, country); in loadTzsInZoneTab() 446 TimeZoneInfo timeZoneInfo = new TimeZoneInfo(tz, country); in loadTzsInZoneTab()
|
/frameworks/base/services/core/java/com/android/server/ |
D | CountryDetectorService.java | 172 protected void notifyReceivers(Country country) { in notifyReceivers() argument 176 receiver.getListener().onCountryDetected(country); in notifyReceivers() 205 mLocationBasedDetectorListener = country -> mHandler.post(() -> notifyReceivers(country)); in initialize()
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 80 localeDataComputeScript(scriptBuffer, config.language, config.country); in scriptsMatch() 87 scriptBuffer, entry.language, entry.country); in scriptsMatch() 125 config.country[0] == '\0' && in match()
|