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

/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 DCountryDetector.java29 * This class provides access to the system country detector service. This
30 * service allows applications to obtain the country that the user is in.
32 * The country will be detected in order of reliability, like
36 * <li>SIM's country</li>
40 * Call the {@link #detectCountry()} to get the available country immediately.
42 * To be notified of the future country change, use the
54 * looper once the country changed and detected.
71 public void onCountryDetected(final Country country) { argument
74 mListener.onCountryDetected(country);
96 * Start detecting the country tha
[all...]
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...]
/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...]
/frameworks/base/libs/androidfw/tests/
H A DConfigLocale_test.cpp52 EXPECT_EQ('U', config.country[0]);
53 EXPECT_EQ('S', config.country[1]);
115 /* static */ void fillIn(const char* lang, const char* country, argument
122 if (country != NULL) {
123 out->packRegion(country);
195 EXPECT_EQ('U', test.country[0]);
196 EXPECT_EQ('S', test.country[1]);
259 EXPECT_EQ('E', test.country[0]);
260 EXPECT_EQ('G', test.country[1]);
/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/tests/TtsTests/src/com/android/speech/tts/
H A DMockableTextToSpeechService.java40 protected int onIsLanguageAvailable(String lang, String country, String variant) { argument
41 return sDelegate.onIsLanguageAvailable(lang, country, variant);
50 protected int onLoadLanguage(String lang, String country, String variant) { argument
51 return sDelegate.onLoadLanguage(lang, country, variant);
65 int onIsLanguageAvailable(String lang, String country, String variant); argument
69 int onLoadLanguage(String lang, String country, String variant); argument
/frameworks/base/core/java/android/speech/tts/
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 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
248 onGetFeaturesForLanguage(String lang, String country, String variant) argument
319 onGetDefaultVoiceNameFor(String lang, String country, String variant) argument
1207 LoadLanguageItem(Object callerIdentity, int callerUid, int callerPid, String language, String country, String variant) argument
[all...]
/frameworks/base/core/java/android/util/
H A DTimeUtils.java38 * and DST value at the specified moment in the specified country.
42 int offset, boolean dst, long when, String country) {
44 android.icu.util.TimeZone icuTimeZone = getIcuTimeZone(offset, dst, when, country);
52 * and DST value at the specified moment in the specified country.
56 int offset, boolean dst, long when, String country) {
57 if (country == null) {
63 .lookupTimeZoneByCountryAndOffset(country, offset, dst, when, bias);
41 getTimeZone( int offset, boolean dst, long when, String country) argument
55 getIcuTimeZone( int offset, boolean dst, long when, String country) argument
/frameworks/base/services/core/java/com/android/server/
H A DCountryDetectorService.java40 * This class detects the country that the user is in through
84 /** Whether to dump the state of the country detector service to bugreports */
158 protected void notifyReceivers(Country country) { argument
162 receiver.getListener().onCountryDetected(country);
179 public void onCountryDetected(final Country country) {
182 notifyReceivers(country);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiCountryCode.java26 * Provide functions for making changes to WiFi country code.
37 /** config option that indicate whether or not to reset country code to default when
38 * cellular radio indicates country code loss
58 + "but there is no default country code.");
83 * In this case we should invalidate all other country code except the
88 // Airplane mode is enabled, we need to reset the country code to phone default.
94 * Change the state to indicates if wpa_supplicant is ready to handle country code changing
96 * We call native code to request country code changes only when wpa_supplicant is
102 // We are ready to set country code now.
103 // We need to post pending country cod
201 setCountryCodeNative(String country) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java102 * an ISO two-character country code if available.
123 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): no country for mcc");
127 final String country = entry.mIso;
130 if ("in".equals(country)) {
134 // Ask CLDR for the language this country uses...
135 Locale likelyLocale = ICU.addLikelySubtags(new Locale("und", country));
137 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): country " + country + " uses " +
236 // If we have English (without a country) explicitly prioritize en_US. http://b/28998094
264 * Return Locale for the language and country o
272 getLocaleForLanguageCountry(Context context, String language, String country) argument
[all...]
H A DSmsUsageMonitor.java147 /** XML tag for short code patterns for a specific country. */
150 /** XML attribute for the country code. */
151 private static final String ATTR_COUNTRY = "country";
184 * SMS short code regex pattern matcher for a specific country.
275 * Return a pattern matcher object for the specified country.
276 * @param country the country to search for
277 * @return a {@link ShortCodePatternMatcher} for the specified country, or null if not found
279 private ShortCodePatternMatcher getPatternMatcherFromFile(String country) { argument
286 return getPatternMatcherFromXmlParser(parser, country);
302 getPatternMatcherFromResource(String country) argument
313 getPatternMatcherFromXmlParser(XmlPullParser parser, String country) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
H A DZoneGetter.java56 * with the country of the user's chosen locale. For "local" zones we prefer the "long name"
61 * modern-day expectations for people living in the country covered. Large countries like
388 public List<String> lookupTimeZoneIdsByCountry(String country) { argument
389 return TimeZoneFinder.getInstance().lookupTimeZoneIdsByCountry(country);
/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/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneInfo.java56 public TimeZoneInfo(TimeZone tz, String country) { argument
59 mCountry = country;
197 final String country = this.mCountry;
218 sb.append(country);
257 // By country
/frameworks/base/native/android/
H A Dconfiguration.cpp63 outCountry[0] = config->country[0];
64 outCountry[1] = config->country[1];
155 void AConfiguration_setCountry(AConfiguration* config, const char* country) { argument
156 config->country[0] = country[0];
157 config->country[1] = country[1];
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp406 * (2) persist.sys.language/country/localevar (country and localevar are
411 * Note that we need to inspect persist.sys.language/country/localevar to
424 const std::string country = GetProperty("persist.sys.country", ""); local
428 if (!country.empty()) {
429 out = out + "-" + country;
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java554 * - a '0' on one and a (+,00)<country code> on the other
1194 /** The current locale is unknown, look for a country code or don't format */
1201 /** List of country codes for countries that use the NANP */
1235 * for the country the number is from.
1280 String country = locale.getCountry();
1282 return getFormatTypeFromCountryCode(country);
1485 * @param defaultCountryIso the ISO 3166-1 two letters country code.
1496 * @param defaultCountryIso the ISO 3166-1 two letters country code.
1506 * The given phone number must have an area code and could have a country code.
1509 * if the specified number doesn't have a country cod
2664 getFormatTypeFromCountryCode(String country) argument
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntry.java506 String region, String postalCode, String country, int type, String label,
515 mCountry = country;
681 + "country: %s", mType, mLabel, mIsPrimary, mPobox, mExtendedAddress, mStreet,
505 PostalData(String pobox, String extendedAddress, String street, String localty, String region, String postalCode, String country, int type, String label, boolean isPrimary, int vcardType) argument
/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h921 // Mobile country code (from SIM). 0 means "any".
967 char country[2]; member in struct:android::ResTable_config::__anon959::__anon960
1270 // locale component of this Config. If the locale is only country
1289 localeDataComputeScript(localeScript, language, country);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiManager.java1724 * Set the country code.
1725 * @param countryCode country code in ISO 3166 format.
1729 public void setCountryCode(@NonNull String country) { argument
1731 mService.setCountryCode(country);
1738 * get the country code.
1739 * @return the country code in ISO 3166 format.
1745 String country = mService.getCountryCode();
1746 return country;

Completed in 2665 milliseconds