Searched refs:country (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/location/java/android/location/
H A DCountryListener.java20 * The listener for receiving the notification when the country is detected or
27 * @param country the changed or detected country.
29 void onCountryDetected(Country country); argument
H A DICountryListener.aidl25 void onCountryDetected(in Country country);
H A DCountry.java26 * This class wraps the country information.
32 * The country code came from the mobile network
37 * The country code came from the location service
42 * The country code was read from the SIM card
47 * The country code came from the system locale setting
52 * The ISO 3166-1 two letters country code.
57 * Where the country code came from.
70 * @param countryIso the ISO 3166-1 two letters country code.
101 public Country(Country country) { argument
102 mCountryIso = country
194 equalsIgnoreSource(Country country) argument
[all...]
H A DCountryDetector.java27 * This class provides access to the system country detector service. This
28 * service allows applications to obtain the country that the user is in.
30 * The country will be detected in order of reliability, like
34 * <li>SIM's country</li>
38 * Call the {@link #detectCountry()} to get the available country immediately.
40 * To be notified of the future country change, use the
57 * looper once the country changed and detected.
74 public void onCountryDetected(final Country country) { argument
77 mListener.onCountryDetected(country);
99 * Start detecting the country tha
[all...]
H A DGeocoderParams.java28 * language, country and variant information from the Geocoder's locale
72 String country = in.readString();
74 gp.mLocale = new Locale(language, country, variant);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DMockableTextToSpeechService.java38 protected int onIsLanguageAvailable(String lang, String country, String variant) { argument
39 return sDelegate.onIsLanguageAvailable(lang, country, variant);
48 protected int onLoadLanguage(String lang, String country, String variant) { argument
49 return sDelegate.onLoadLanguage(lang, country, variant);
63 int onIsLanguageAvailable(String lang, String country, String variant); argument
67 int onLoadLanguage(String lang, String country, String variant); argument
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
H A DComprehensiveCountryDetectorTest.java36 public void notifyLocationBasedListener(Country country) { argument
38 mNotifiedCountry = country;
39 mLocationBasedCountryDetector.notifyListener(country);
95 protected void runAfterDetectionAsync(final Country country, final Country detectedCountry, argument
97 runAfterDetection(country, detectedCountry, notifyChange, startLocationBasedDetection);
129 public void onCountryDetected(Country country) { argument
131 mCountry = country;
154 Country country = countryDetector.detectCountry();
155 assertTrue(sameCountry(country, resultCountry));
175 Country country
[all...]
H A DLocationBasedCountryDetectorTest.java46 public TestCountryDetector(String country, String provider) { argument
47 this(country, provider, 1000 * 60 * 5);
50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) { argument
52 mCountry = country;
158 public void onCountryDetected(Country country) { argument
160 if (country != null) {
161 mCountryCode = country.getCountryIso();
183 final String country = "us";
186 TestCountryDetector detector = new TestCountryDetector(country, provider);
220 final String country
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCountryDetectorServiceTest.java31 public void onCountryDetected(Country country) throws RemoteException { argument
32 mCountry = country;
53 public void notifyReceivers(Country country) { argument
54 super.notifyReceivers(country);
82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK);
87 serviceTester.notifyReceivers(country);
/frameworks/base/services/core/java/com/android/server/location/
H A DCountryDetectorBase.java25 * This class defines the methods need to be implemented by the country
28 * Calling {@link #detectCountry} to start detecting the country. The country
45 * Start detecting the country that the user is in.
47 * @return the country if it is available immediately, otherwise null should
53 * Register a listener to receive the notification when the country is detected or changed.
62 * Stop detecting the country. The detector should release all system services and be ready to
67 protected void notifyListener(Country country) { argument
69 mListener.onCountryDetected(country);
H A DComprehensiveCountryDetector.java37 * This class is used to detect the country where the user is. The sources of
38 * country are queried in order of reliability, like
42 * <li>SIM's country</li>
46 * Call the {@link #detectCountry()} to get the available country immediately.
48 * To be notified of the future country change, using the
51 * Using the {@link #stop()} to stop listening to the country change.
53 * The country information will be refreshed every
54 * {@link #LOCATION_REFRESH_INTERVAL} once the location based country is used.
69 * The refresh interval when the location based country was used
84 * List of the most recent country stat
187 addToLogs(Country country) argument
281 runAfterDetectionAsync(final Country country, final Country detectedCountry, final boolean notifyChange, final boolean startLocationBasedDetection) argument
312 runAfterDetection(final Country country, final Country detectedCountry, final boolean notifyChange, final boolean startLocationBasedDetection) argument
393 notifyIfCountryChanged(final Country country, final Country detectedCountry) argument
[all...]
H A DLocationBasedCountryDetector.java36 * This class detects which country the user currently is in through the enabled
41 * the user country through the GeoCoder. The IllegalStateException will be
58 * The thread to query the country from the GeoCoder.
72 * @return the ISO 3166-1 two letters country code from the location
75 String country = null;
81 country = addresses.get(0).getCountryCode();
84 Slog.w(TAG, "Exception occurs when getting country from location");
86 return country;
142 * Start detecting the country.
145 * country fro
[all...]
/frameworks/base/core/java/android/util/
H A DTimeUtils.java60 * and DST value at the specified moment in the specified country.
63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument
72 for (TimeZone tz : getTimeZones(country)) {
73 // If the current time zone is from the right country
84 // country that has the correct current offset and DST.
100 * Return list of unique time zones for the country. Do not modify
102 * @param country to find
106 public static ArrayList<TimeZone> getTimeZonesWithUniqueOffsets(String country) { argument
108 if ((country != null) && country
155 getTimeZones(String country) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DITextToSpeechService.aidl99 * Returns the language, country and variant currently being used by the TTS engine.
103 * country (ISO 3-letter code) and variant used by the engine.
104 * The country and variant may be {@code ""}. If country is empty, then variant must
110 * Returns a default TTS language, country and variant as set by the user.
115 * country (ISO 3-letter code) and variant used by the engine.
116 * The country and variant may be {@code ""}. If country is empty, then variant must
125 * @param country ISO-3 country cod
[all...]
H A DSynthesisRequest.java24 * <li>The synthesis locale, represented as a language, country and a variant.
25 * The language is an ISO 639-3 letter language code, and the country is an
93 * Gets the ISO 3-letter country code for the language to use.
137 void setLanguage(String language, String country, String variant) { argument
139 mCountry = country;
H A DTtsEngines.java79 /** Mapping of various country strings to the normalized Locale form */
95 for (String country : Locale.getISOCountries()) {
97 normalizeCountry.put(new Locale("", country).getISO3Country(), country);
377 * country codes ({@link Locale#getISO3Language()} and {@link Locale#getISO3Country()}),
381 String language = "", country = "", variant = "";
397 country = split[1].toUpperCase();
410 String normalizedCountry= sNormalizeCountry.get(country);
412 country = normalizedCountry;
415 if (DBG) Log.d(TAG, "parseLocalePref(" + language + "," + country
[all...]
H A DTextToSpeechService.java169 * @param country ISO-3 country code. May be empty or null.
178 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); argument
181 * Returns the language, country and variant currently being used by the TTS engine.
189 * country (ISO 3-letter code) and variant used by the engine.
190 * The country and variant may be {@code ""}. If country is empty, then variant must
209 * @param country ISO-3 country code. May be empty or null.
218 protected abstract int onLoadLanguage(String lang, String country, Strin argument
251 onGetFeaturesForLanguage(String lang, String country, String variant) argument
320 onGetDefaultVoiceNameFor(String lang, String country, String variant) argument
1070 LoadLanguageItem(Object callerIdentity, int callerUid, int callerPid, String language, String country, String variant) argument
[all...]
H A DTextToSpeech.java140 * Denotes the language is available for the language and country specified
147 * but not the country and variant.
382 * <li>country</li>
499 public static final String KEY_PARAM_COUNTRY = "country";
1294 "country code for locale: " + locale, e);
1422 * @return language, country (if any) and variant (if any) used by the client stored in a
1462 String language = null, country = null;
1471 country = loc.getISO3Country();
1473 Log.w(TAG, "Couldn't retrieve ISO 3166 country code for locale: " + loc, e);
1484 int result = service.isLanguageAvailable( language, country, varian
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DTimeUtilsTest.java387 String country = world[i];
395 guess = guess(c, country);
399 guess = guess(c, country);
411 String country = world[i];
419 guess = guess(c, country);
424 private static TimeZone guess(Calendar c, String country) { argument
428 country);
/frameworks/base/libs/androidfw/tests/
H A DConfigLocale_test.cpp51 EXPECT_EQ('U', config.country[0]);
52 EXPECT_EQ('S', config.country[1]);
114 /* static */ void fillIn(const char* lang, const char* country, argument
121 if (country != NULL) {
122 out->packRegion(country);
178 EXPECT_EQ('U', test.country[0]);
179 EXPECT_EQ('S', test.country[1]);
/frameworks/base/native/android/
H A Dconfiguration.cpp58 outCountry[0] = config->country[0];
59 outCountry[1] = config->country[1];
146 void AConfiguration_setCountry(AConfiguration* config, const char* country) { argument
147 config->country[0] = country[0];
148 config->country[1] = country[1];
/frameworks/base/services/core/java/com/android/server/
H A DCountryDetectorService.java39 * This class detects the country that the user is in through
83 /** Whether to dump the state of the country detector service to bugreports */
157 protected void notifyReceivers(Country country) { argument
161 receiver.getListener().onCountryDetected(country);
178 public void onCountryDetected(final Country country) {
181 notifyReceivers(country);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java100 * an ISO two-character country code if available.
121 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): no country for mcc");
125 // Ask CLDR for the language this country uses...
128 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): country " + entry.mIso + " uses " +
237 String persistSysCountry = SystemProperties.get("persist.sys.country", "");
251 * Return Locale for the language and country or null if no good match.
255 * @param country Two character country code desired
260 String country) {
265 if (country
259 getLocaleForLanguageCountry(Context context, String language, String country) argument
350 setSystemLocale(Context context, String language, String country) argument
[all...]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneFilterTypeAdapter.java211 // Search by country
214 for (String country : mTimeZoneData.mTimeZonesByCountry.keySet()) {
216 if (!TextUtils.isEmpty(country)) {
217 final String lowerCaseCountry = country.toLowerCase();
224 // We should also search other words in the country name, so that
234 countries.add(country);
241 for (String country : countries) {
242 filtered.add(new FilterTypeResult(FILTER_TYPE_COUNTRY, country, 0));
H A DTimeZoneData.java133 * Dropping non-GMT tzs without a country code. They are not really
134 * needed and they are dups but missing proper country codes. e.g.
203 // Grouping tz's by country for search by country
368 * zone.tab contains a list of time zones and country code. They are
369 * "sorted first by country, then an order within the country that (1)
380 // 0: country code
394 * Dropping non-GMT tzs without a country code. They are not
396 * country code
[all...]

Completed in 336 milliseconds

12