Home
last modified time | relevance | path

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

1234

/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()
DLocationBasedCountryDetector.java75 String country = null; in getCountryFromLocation() local
81 country = addresses.get(0).getCountryCode(); in getCountryFromLocation()
86 return country; in getCountryFromLocation()
/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/base/core/java/android/util/
DTimeUtils.java63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { in getTimeZone() argument
72 for (TimeZone tz : getTimeZones(country)) { in getTimeZone()
106 public static ArrayList<TimeZone> getTimeZonesWithUniqueOffsets(String country) { in getTimeZonesWithUniqueOffsets() argument
108 if ((country != null) && country.equals(sLastUniqueCountry)) { in getTimeZonesWithUniqueOffsets()
111 country + "): return cached version"); in getTimeZonesWithUniqueOffsets()
117 Collection<TimeZone> zones = getTimeZones(country); in getTimeZonesWithUniqueOffsets()
141 sLastUniqueCountry = country; in getTimeZonesWithUniqueOffsets()
155 public static ArrayList<TimeZone> getTimeZones(String country) { in getTimeZones() argument
157 if ((country != null) && country.equals(sLastCountry)) { in getTimeZones()
158 if (DBG) Log.d(TAG, "getTimeZones(" + country + "): return cached version"); in getTimeZones()
[all …]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DMockableTextToSpeechService.java38 protected int onIsLanguageAvailable(String lang, String country, String variant) { in onIsLanguageAvailable() argument
39 return sDelegate.onIsLanguageAvailable(lang, country, variant); in onIsLanguageAvailable()
48 protected int onLoadLanguage(String lang, String country, String variant) { in onLoadLanguage() argument
49 return sDelegate.onLoadLanguage(lang, country, variant); in onLoadLanguage()
63 int onIsLanguageAvailable(String lang, String country, String variant); in onIsLanguageAvailable() argument
67 int onLoadLanguage(String lang, String country, String variant); in onLoadLanguage() argument
/frameworks/base/location/java/android/location/
DCountry.java101 public Country(Country country) { in Country() argument
102 mCountryIso = country.mCountryIso; in Country()
103 mSource = country.mSource; in Country()
104 mTimestamp = country.mTimestamp; in Country()
194 public boolean equalsIgnoreSource(Country country) { in equalsIgnoreSource() argument
195 return country != null && mCountryIso.equals(country.getCountryIso()); in equalsIgnoreSource()
DGeocoderParams.java72 String country = in.readString();
74 gp.mLocale = new Locale(language, country, variant);
DCountryDetector.java74 public void onCountryDetected(final Country country) { in onCountryDetected() argument
77 mListener.onCountryDetected(country); in onCountryDetected()
/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/tests/coretests/src/android/util/
DTimeUtilsTest.java387 String country = world[i]; in testWorld() local
395 guess = guess(c, country); in testWorld()
399 guess = guess(c, country); in testWorld()
411 String country = world[i]; in testWorldWeird() local
419 guess = guess(c, country); in testWorldWeird()
424 private static TimeZone guess(Calendar c, String country) { in guess() argument
428 country); in guess()
/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
381 String language = "", country = "", variant = ""; in parseLocaleString() local
397 country = split[1].toUpperCase(); in parseLocaleString()
410 String normalizedCountry= sNormalizeCountry.get(country); in parseLocaleString()
412 country = normalizedCountry; in parseLocaleString()
415 if (DBG) Log.d(TAG, "parseLocalePref(" + language + "," + country + in parseLocaleString()
418 Locale result = new Locale(language, country, variant); in parseLocaleString()
449 String country = ttsLocale.getCountry(); in normalizeTTSLocale() local
450 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
251 protected Set<String> onGetFeaturesForLanguage(String lang, String country, String variant) { in onGetFeaturesForLanguage() argument
320 public String onGetDefaultVoiceNameFor(String lang, String country, String variant) { in onGetDefaultVoiceNameFor() argument
321 int localeStatus = onIsLanguageAvailable(lang, country, variant); in onGetDefaultVoiceNameFor()
328 iso3Locale = new Locale(lang, country); in onGetDefaultVoiceNameFor()
331 iso3Locale = new Locale(lang, country, variant); in onGetDefaultVoiceNameFor()
1071 String language, String country, String variant) { in LoadLanguageItem() argument
1074 mCountry = country; in LoadLanguageItem()
1221 public int isLanguageAvailable(String lang, String country, String variant) {
[all …]
DTextToSpeech.java1462 String language = null, country = null;
1471 country = loc.getISO3Country();
1484 int result = service.isLanguageAvailable( language, country, variant);
1489 country = "";
1493 String voiceName = service.getDefaultVoiceNameFor(language, country, variant);
1496 country + "/" + variant);
1507 mParams.putString(Engine.KEY_PARAM_COUNTRY, country);
1549 String country = mParams.getString(Engine.KEY_PARAM_COUNTRY, "");
1551 return new Locale(lang, country, variant);
1623 String country = "";
[all …]
DSynthesisRequest.java137 void setLanguage(String language, String country, String variant) { in setLanguage() argument
139 mCountry = country; in setLanguage()
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp51 EXPECT_EQ('U', config.country[0]); in TEST()
52 EXPECT_EQ('S', config.country[1]); in TEST()
114 /* static */ void fillIn(const char* lang, const char* country, in fillIn() argument
121 if (country != NULL) { in fillIn()
122 out->packRegion(country); in fillIn()
178 EXPECT_EQ('U', test.country[0]); in TEST()
179 EXPECT_EQ('S', test.country[1]); in TEST()
/frameworks/base/native/android/
Dconfiguration.cpp58 outCountry[0] = config->country[0]; in AConfiguration_getCountry()
59 outCountry[1] = config->country[1]; in AConfiguration_getCountry()
146 void AConfiguration_setCountry(AConfiguration* config, const char* country) { in AConfiguration_setCountry() argument
147 config->country[0] = country[0]; in AConfiguration_setCountry()
148 config->country[1] = country[1]; in AConfiguration_setCountry()
/frameworks/base/services/core/java/com/android/server/
DCountryDetectorService.java157 protected void notifyReceivers(Country country) { in notifyReceivers() argument
161 receiver.getListener().onCountryDetected(country); in notifyReceivers()
178 public void onCountryDetected(final Country country) { in initialize()
181 notifyReceivers(country); in initialize()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java260 String country) { in getLocaleForLanguageCountry() argument
265 if (country == null) { in getLocaleForLanguageCountry()
266 country = ""; // The Locale constructor throws if passed null. in getLocaleForLanguageCountry()
280 final Locale target = new Locale(language, country); in getLocaleForLanguageCountry()
350 public static void setSystemLocale(Context context, String language, String country) { in setSystemLocale() argument
351 Locale locale = getLocaleForLanguageCountry(context, language, country); in setSystemLocale()
395 String country = MccTable.countryCodeForMcc(mcc); in getLocaleFromMcc() local
397 Slog.d(LOG_TAG, "getLocaleFromMcc to " + language + "_" + country + " mcc=" + mcc); in getLocaleFromMcc()
398 return getLocaleForLanguageCountry(context, language, country); in getLocaleFromMcc()
409 String country = MccTable.countryCodeForMcc(mcc); in setWifiCountryCodeFromMcc() local
[all …]
DSmsUsageMonitor.java278 private ShortCodePatternMatcher getPatternMatcherFromFile(String country) { in getPatternMatcherFromFile() argument
285 return getPatternMatcherFromXmlParser(parser, country); in getPatternMatcherFromFile()
301 private ShortCodePatternMatcher getPatternMatcherFromResource(String country) { in getPatternMatcherFromResource() argument
306 return getPatternMatcherFromXmlParser(parser, country); in getPatternMatcherFromResource()
313 String country) { in getPatternMatcherFromXmlParser() argument
328 if (country.equals(currentCountry)) { in getPatternMatcherFromXmlParser()
344 if (DBG) Rlog.d(TAG, "Country (" + country + ") not found"); in getPatternMatcherFromXmlParser()
/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()
DTimeZoneInfo.java57 public TimeZoneInfo(TimeZone tz, String country) { in TimeZoneInfo() argument
60 mCountry = country; in TimeZoneInfo()
231 final String country = this.mCountry; in toString() local
252 sb.append(country); in toString()

1234