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

1 2

  /frameworks/base/location/java/android/location/
Country.aidl 19 parcelable Country
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);
ICountryDetector.aidl 19 import android.location.Country;
23 * The API for detecting the country where the user is.
30 * Start detecting the country that the user is in.
31 * @return the country if it is available immediately, otherwise null will be returned.
33 Country detectCountry();
36 * Add a listener to receive the notification when the country is detected or changed.
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...]
CountryDetector.java 27 * 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) {
77 mListener.onCountryDetected(country);
    [all...]
  /frameworks/base/location/tests/locationtests/src/android/location/
CountryTester.java 23 Country countryA = new Country("US", Country.COUNTRY_SOURCE_NETWORK);
24 Country countryB = new Country("US", Country.COUNTRY_SOURCE_LOCALE);
25 Country countryC = new Country("CN", Country.COUNTRY_SOURCE_LOCALE);
26 Country countryD = new Country("us", Country.COUNTRY_SOURCE_NETWORK)
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
EnumBiMapTest.java 40 private enum Country { CANADA, CHILE, SWITZERLAND }
43 EnumBiMap<Currency, Country> bimap =
44 EnumBiMap.create(Currency.class, Country.class);
48 bimap.put(Currency.DOLLAR, Country.CANADA);
49 assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
50 assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
55 Map<Currency, Country> map = ImmutableMap.of(
56 Currency.DOLLAR, Country.CANADA,
57 Currency.PESO, Country.CHILE,
58 Currency.FRANC, Country.SWITZERLAND)
    [all...]
EnumHashBiMapTest.java 37 private enum Country { CANADA, CHILE, SWITZERLAND }
74 Map<Currency, Country> emptyBimap2 =
75 EnumBiMap.create(Currency.class, Country.class);
76 EnumHashBiMap<Currency, Country> bimap2
105 EnumBiMap<Currency, Country> bimap1 =
106 EnumBiMap.create(Currency.class, Country.class);
107 bimap1.put(Currency.DOLLAR, Country.SWITZERLAND);
110 assertEquals(Country.SWITZERLAND, bimap2.get(Currency.DOLLAR));
118 EnumBiMap<Currency, Country> emptyBimap =
119 EnumBiMap.create(Currency.class, Country.class)
    [all...]
  /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...]
  /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...]
LocationBasedCountryDetector.java 21 import android.location.Country;
36 * 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; local
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
    [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...]
  /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...]
  /frameworks/base/services/core/java/com/android/server/
CountryDetectorService.java 27 import android.location.Country;
39 * This class detects the country that the user is in through
83 /** Whether to dump the state of the country detector service to bugreports */
100 public Country detectCountry() {
157 protected void notifyReceivers(Country country) {
161 receiver.getListener().onCountryDetected(country);
178 public void onCountryDetected(final Country country) {
181 notifyReceivers(country);
    [all...]
  /external/chromium_org/third_party/openssl/openssl/android.testssl/
Uss.cnf 17 countryName = Country Name (2 letter code)
CAss.cnf 17 countryName = Country Name (2 letter code)
  /external/openssl/android.testssl/
Uss.cnf 17 countryName = Country Name (2 letter code)
CAss.cnf 17 countryName = Country Name (2 letter code)
  /packages/apps/Mms/src/com/android/mms/
MmsApp.java 25 import android.location.Country;
77 // Figure out the country *before* loading contacts and formatting numbers
81 public synchronized void onCountryDetected(Country country) {
82 mCountryIso = country.getCountryIso();
176 Country country = mCountryDetector.detectCountry(); local
177 if (country != null) {
178 mCountryIso = country.getCountryIso();
  /external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
cmsnamed.c 117 // Search for a specific entry in the structure. Language and Country are used.
129 if (mlu ->Entries[i].Country == CountryCode &&
137 // Add a block of characters to the intended MLU. Language and country are specified.
138 // Only one entry for Language/country pair is allowed.
174 mlu ->Entries[mlu ->UsedEntries].Country = CountryCode;
221 cmsBool CMSEXPORT cmsMLUsetWide(cmsMLU* mlu, const char Language[3], const char Country[3], const wchar_t* WideString)
224 cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) Country);
293 // The algorithm first searches for an exact match of country and language, if not found it uses
317 if (v -> Country == CountryCode) {
320 if (UsedCountryCode != NULL) *UsedCountryCode = v ->Country;
    [all...]
  /external/chromium_org/third_party/openssl/openssl/apps/
openssl.cnf 128 countryName = Country Name (2 letter code)
  /external/openssl/apps/
openssl.cnf 128 countryName = Country Name (2 letter code)
  /frameworks/base/core/java/android/provider/
CallLog.java 27 import android.location.Country;
206 * The ISO 3166-1 two letters country code of the country where the
288 * The string represents a city, state, or country associated with the number.
326 * The cached phone number, formatted with formatting rules based on the country the
362 * current country code.
597 * on the user's current country.
626 final Country country = detector.detectCountry(); local
627 if (country != null)
    [all...]

Completed in 2017 milliseconds

1 2