HomeSort by relevance Sort by last modified time
    Searched refs:country (Results 1 - 25 of 471) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/location/java/android/location/
CountryListener.java 20 * 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);
ICountryListener.aidl 19 import android.location.Country;
25 void onCountryDetected(in Country country);
Country.java 26 * This class wraps the country information.
30 public class Country implements Parcelable {
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.
81 public Country(final String countryIso, final int source)
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue56/
CodeBean.java 19 private String country; field in class:CodeBean
29 return country;
32 public void setCountry(String country) {
33 this.country = country;
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/
PhoneNumberTestService.java 39 [-e c OPTIONAL COUNTRY CODE] \
60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); local
64 Log.i(TAG, "Input country code: " + country);
65 Log.i(TAG, "Current country code: " + defaultCountry);
67 // Dump for the given country, the current country, US, GB and JP.
69 if (country != null) countries.add(country);
80 private void dump(String number, String country) {
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
CountryMonitor.java 20 import android.location.Country;
28 * This class monitors the change of country.
30 * {@link #getCountryIso()} is used to get the ISO 3166-1 two letters country
31 * code of current country.
42 * Get the current country code
44 * @return the ISO 3166-1 two letters country code of current country.
50 Country country = null; local
51 if (countryDetector != null) country = countryDetector.detectCountry()
    [all...]
  /packages/services/Mms/src/com/android/mms/service/
PhoneUtils.java 44 final String country = getSimOrDefaultLocaleCountry(telephonyManager, subId); local
46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country);
57 String phoneText, String country) {
59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country);
64 + " for country " + country);
73 // Get the country/region either from the SIM ID or from locale
76 String country = getSimCountry(telephonyManager, subId); local
77 if (TextUtils.isEmpty(country)) {
78 country = Locale.getDefault().getCountry()
86 final String country = telephonyManager.getSimCountryIso(subId); local
    [all...]
  /external/testng/src/test/java/test/dependent/
GroupByInstancesSampleTest.java 14 private static void log(String method, String country) {
15 // System.out.println("LOG:" + method + "#" + country + " " + Thread.currentThread().getId());
16 m_log.add(method + "#" + country);
28 public GroupByInstancesSampleTest(String country) {
29 m_country = country;
  /external/icu/icu4c/source/tools/tzcode/
tzselect.ksh 77 country=
151 country = cc_list[i]
152 if (cc_name[country]) {
153 country = cc_name[country]
155 print country
161 # If there's more than one country, ask the user which one.
164 echo >&2 'Please select a country.'
165 select country in $countries
167 case $country i
    [all...]
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
MockableTextToSpeechService.java 40 protected int onIsLanguageAvailable(String lang, String country, String variant) {
41 return sDelegate.onIsLanguageAvailable(lang, country, variant);
50 protected int onLoadLanguage(String lang, String country, String variant) {
51 return sDelegate.onLoadLanguage(lang, country, variant);
65 int onIsLanguageAvailable(String lang, String country, String variant);
69 int onLoadLanguage(String lang, String country, String variant);
  /frameworks/base/services/tests/servicestests/src/com/android/server/location/
ComprehensiveCountryDetectorTest.java 19 import android.location.Country;
31 private Country mNotifiedCountry;
36 public void notifyLocationBasedListener(Country country) {
38 mNotifiedCountry = country;
39 mLocationBasedCountryDetector.notifyListener(country);
62 public Country detectCountry() {
75 protected Country getNetworkBasedCountry() {
80 protected Country getLastKnownLocationBasedCountry() {
85 protected Country getSimBasedCountry()
    [all...]
LocationBasedCountryDetectorTest.java 18 import android.location.Country;
46 public TestCountryDetector(String country, String provider) {
47 this(country, provider, 1000 * 60 * 5);
50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) {
52 mCountry = country;
158 public void onCountryDetected(Country country) {
160 if (country != null) {
161 mCountryCode = country.getCountryIso();
183 final String country = "us" local
220 final String country = "us"; local
245 final String country = "us"; local
263 final String country = "us"; local
286 final String country = "us"; local
323 final String country = "us"; local
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/
CountryDetectorServiceTest.java 20 import android.location.Country;
28 private Country mCountry;
31 public void onCountryDetected(Country country) throws RemoteException {
32 mCountry = country;
35 public Country getCountry() {
53 public void notifyReceivers(Country country) {
54 super.notifyReceivers(country);
82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK) local
    [all...]
  /cts/tests/tests/speech/src/android/speech/tts/cts/
StubTextToSpeechService.java 62 protected int onIsLanguageAvailable(String lang, String country, String variant) {
63 if (supportedCountries.contains(new Locale(lang, country))) {
74 protected int onLoadLanguage(String lang, String country, String variant) {
75 return onIsLanguageAvailable(lang, country, variant);
113 public String onGetDefaultVoiceNameFor(String lang, String country, String variant) {
114 Locale locale = new Locale(lang, country);
119 if (GBFallbacks.contains(new Locale(lang, country))) {
125 return super.onGetDefaultVoiceNameFor(lang, country, variant);
  /external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
ResTable_configTest.java 17 resTable_config.country[0] = 'u';
18 resTable_config.country[1] = 'k';
  /frameworks/base/core/proto/android/content/
locale.proto 29 optional string country = 2;
  /frameworks/base/services/core/java/com/android/server/location/
CountryDetectorBase.java 20 import android.location.Country;
25 * This class defines the methods need to be implemented by the country
28 * Calling {@link #detectCountry} to start detecting the country. The country
37 protected Country mDetectedCountry;
45 * Start detecting the country that the user is in.
47 * @return the country if it is available immediately, otherwise null should
50 public abstract Country detectCountry();
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 t
    [all...]
ComprehensiveCountryDetector.java 20 import android.location.Country;
37 * 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 use
271 Country country = getCountry(); local
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiCountryCode.java 26 * Provide functions for making changes to WiFi country code.
27 * This Country Code is from MCC or phone default setting. This class sends 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.");
65 Log.d(TAG, "Country code will be reverted to " + mDefaultCountryCode
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.
89 // Country code will be set upon when wpa_supplicant starts next time
176 String country = pickCountryCode(); local
    [all...]
  /system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/
CountryZoneTreeTest.java 26 import static com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country;
50 Country country = parseCountry(countryText); local
52 CountryZoneTree.create(country, RULES_START_INSTANT, RULES_END_INSTANT);
60 // This is a country that has two zones which were distinct initially but then became the
73 Country country = parseCountry(countryText); local
74 CountryZoneTree zoneTree = CountryZoneTree.create(country, RULES_START_INSTANT,
86 // This is a country that has two zones which were distinct initially but then became the
100 Country country = parseCountry(countryText) local
147 Country country = parseCountry(countryText); local
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
GoogleSearch.java 78 String country = locale.getCountry(); local
80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) {
82 hl.append(country);
85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl);
90 private static boolean useLangCountryHl(String language, String country) {
91 // lang-country is currently only supported for a small number of locales
93 return "GB".equals(country);
95 return "CN".equals(country) || "TW".equals(country)
    [all...]
  /external/apache-xml/src/main/java/org/apache/xml/utils/res/
XResourceBundle.java 103 String country = locale.getCountry(); local
108 suffix += "_" + country;
110 if (country.equals("JP"))
111 suffix += "_" + country + "_" + variant;
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
LocaleUtility.java 29 String country = ""; local
40 country = name.substring(i1);
42 country = name.substring(i1, i2);
47 return new Locale(language, country, variant);
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/
LocaleUtility.java 27 String country = ""; local
38 country = name.substring(i1);
40 country = name.substring(i1, i2);
45 return new Locale(language, country, variant);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
LocaleUtility.java 27 String country = ""; local
38 country = name.substring(i1);
40 country = name.substring(i1, i2);
45 return new Locale(language, country, variant);

Completed in 531 milliseconds

1 2 3 4 5 6 7 8 91011>>