Home
last modified time | relevance | path

Searched refs:country (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java134 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 …]
DCountryDetectorBase.java67 protected void notifyListener(Country country) { in notifyListener() argument
69 mListener.onCountryDetected(country); in notifyListener()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DComprehensiveCountryDetectorTest.java36 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 …]
DLocationBasedCountryDetectorTest.java46 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/net/wifi/service/java/com/android/server/wifi/
DWifiCountryCode.java184 String country = pickCountryCode(); in updateCountryCode() local
185 Log.d(TAG, "updateCountryCode to " + country); in updateCountryCode()
192 if (country != null) { in updateCountryCode()
193 setCountryCodeNative(country); in updateCountryCode()
211 private boolean setCountryCodeNative(String country) { in setCountryCodeNative() argument
213 if (mWifiNative.setCountryCode(mWifiNative.getClientInterfaceName(), country)) { in setCountryCodeNative()
214 Log.d(TAG, "Succeeded to set country code to: " + country); in setCountryCodeNative()
215 mDriverCountryCode = country; in setCountryCodeNative()
218 Log.d(TAG, "Failed to set country code to: " + country); in setCountryCodeNative()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DMockableTextToSpeechService.java40 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/
DCountry.java103 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()
DGeocoderParams.java75 String country = in.readString();
77 gp.mLocale = new Locale(language, country, variant);
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCountryDetectorServiceTest.java31 public void onCountryDetected(Country country) throws RemoteException { in onCountryDetected() argument
32 mCountry = country; in onCountryDetected()
53 public void notifyReceivers(Country country) { in notifyReceivers() argument
54 super.notifyReceivers(country); in notifyReceivers()
82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK); in testNotifyListeners() local
87 serviceTester.notifyReceivers(country); in testNotifyListeners()
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java95 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 …]
DITextToSpeechService.aidl134 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
DTextToSpeechService.java178 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()
1395 public int isLanguageAvailable(String lang, String country, String variant) {
[all …]
DTextToSpeech.java1483 String language = null, country = null;
1492 country = loc.getISO3Country();
1505 int result = service.isLanguageAvailable(language, country, variant);
1508 String voiceName = service.getDefaultVoiceNameFor(language, country, variant);
1511 country + "-" + variant);
1517 Log.w(TAG, "The service claimed " + language + "-" + country + "-"
1528 + language + "-" + country + "-" + variant
1591 String country = mParams.getString(Engine.KEY_PARAM_COUNTRY, "");
1593 return new Locale(lang, country, variant);
1665 String country = "";
[all …]
DSynthesisRequest.java137 void setLanguage(String language, String country, String variant) { in setLanguage() argument
139 mCountry = country; in setLanguage()
/frameworks/base/services/core/java/com/android/server/textservices/
DLocaleUtils.java75 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/
Dconfiguration.cpp63 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/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java144 final String country = entry.mIso; in defaultLanguageForMcc() local
147 if ("in".equals(country)) { in defaultLanguageForMcc()
152 Locale likelyLocale = ICU.addLikelySubtags(new Locale("und", country)); in defaultLanguageForMcc()
154 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): country " + country + " uses " + in defaultLanguageForMcc()
273 String country) { in getLocaleForLanguageCountry() argument
278 if (country == null) { in getLocaleForLanguageCountry()
279 country = ""; // The Locale constructor throws if passed null. in getLocaleForLanguageCountry()
282 final Locale target = new Locale(language, country); in getLocaleForLanguageCountry()
396 String country = MccTable.countryCodeForMcc(mcc); in getLocaleFromMcc() local
398 Slog.d(LOG_TAG, "getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc()
[all …]
/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp64 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/base/services/core/java/com/android/server/
DCountryDetectorService.java158 protected void notifyReceivers(Country country) { in notifyReceivers() argument
162 receiver.getListener().onCountryDetected(country); in notifyReceivers()
179 public void onCountryDetected(final Country country) { in initialize()
182 notifyReceivers(country); in initialize()
/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java250 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()
DLocaleHelper.java145 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry() local
148 return String.format("%s (%s)", country, in getDisplayCountry()
151 return country; in getDisplayCountry()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneFilterTypeAdapter.java214 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()
DTimeZoneData.java406 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/core/java/android/util/
DTimeUtils.java56 int offset, boolean dst, long when, String country) { in getTimeZone() argument
58 android.icu.util.TimeZone icuTimeZone = getIcuTimeZone(offset, dst, when, country); in getTimeZone()
70 int offset, boolean dst, long when, String country) { in getIcuTimeZone() argument
71 if (country == null) { in getIcuTimeZone()
77 .lookupTimeZoneByCountryAndOffset(country, offset, dst, when, bias); in getIcuTimeZone()
/frameworks/base/tools/aapt/
DResourceFilter.cpp80 localeDataComputeScript(scriptBuffer, config.language, config.country); in scriptsMatch()
87 scriptBuffer, entry.language, entry.country); in scriptsMatch()
125 config.country[0] == '\0' && in match()

123