HomeSort by relevance Sort by last modified time
    Searched refs:Country (Results 1 - 25 of 39) 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
55 * looper once the country changed and detected.
72 public void onCountryDetected(final Country country) {
75 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 55 private enum Country { CANADA, CHILE, JAPAN, SWITZERLAND, UK }
57 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> {
60 public BiMap<Country, Currency> create(Object... entries) {
61 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class);
63 Entry<Country, Currency> entry = (Entry<Country, Currency>) object;
70 public SampleElements<Entry<Country, Currency>> samples() {
71 return new SampleElements<Entry<Country, Currency>>(
72 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR)
    [all...]
EnumHashBiMapTest.java 48 private enum Country { CANADA, CHILE, JAPAN, SWITZERLAND, UK }
50 public static final class EnumHashBiMapGenerator implements TestBiMapGenerator<Country, String> {
53 public BiMap<Country, String> create(Object... entries) {
54 BiMap<Country, String> result = EnumHashBiMap.create(Country.class);
56 Entry<Country, String> entry = (Entry<Country, String>) o;
63 public SampleElements<Entry<Country, String>> samples() {
64 return new SampleElements<Entry<Country, String>>(
65 Maps.immutableEntry(Country.CANADA, "DOLLAR")
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
EnumBiMapTest.java 46 private enum Country { CANADA, CHILE, JAPAN, SWITZERLAND, UK }
48 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> {
51 public BiMap<Country, Currency> create(Object... entries) {
52 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class);
54 Entry<Country, Currency> entry = (Entry<Country, Currency>) object;
61 public SampleElements<Entry<Country, Currency>> samples() {
62 return new SampleElements<Entry<Country, Currency>>(
63 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR)
    [all...]
EnumHashBiMapTest.java 39 private enum Country { CANADA, CHILE, JAPAN, SWITZERLAND, UK }
41 public static final class EnumHashBiMapGenerator implements TestBiMapGenerator<Country, String> {
44 public BiMap<Country, String> create(Object... entries) {
45 BiMap<Country, String> result = EnumHashBiMap.create(Country.class);
47 Entry<Country, String> entry = (Entry<Country, String>) o;
54 public SampleElements<Entry<Country, String>> samples() {
55 return new SampleElements<Entry<Country, String>>(
56 Maps.immutableEntry(Country.CANADA, "DOLLAR")
    [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;
37 * This class detects which country the user currently is in through the enabled
42 * the user country through the GeoCoder. The IllegalStateException will be
59 * The thread to query the country from the GeoCoder.
73 * @return the ISO 3166-1 two letters country code from the location
76 String country = null; local
82 country = addresses.get(0).getCountryCode();
85 Slog.w(TAG, "Exception occurs when getting country from location");
87 return country;
158 * 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...]
  /packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
Utils.java 21 import android.location.Country;
35 * @return The current country code.
41 final Country country = detector.detectCountry(); local
42 if (country != null) {
43 return country.getCountryIso();
51 * Converts a phone number to an E164 number, assuming the current country. If {@code
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
GsmSmsDispatcherTest.java 26 import android.location.Country;
111 .thenReturn(new Country("US", Country.COUNTRY_SOURCE_SIM));
128 .thenReturn(new Country("US", Country.COUNTRY_SOURCE_SIM));
  /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/autotest/client/common_lib/cros/
dbus_send_unittests.py 43 string "Country"
152 'Country': '',
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
CallLogManagerTest.java 26 import android.location.Country;
633 Country testCountry = new Country(TEST_ISO, Country.COUNTRY_SOURCE_LOCALE);
645 Country testCountry = new Country(TEST_ISO, Country.COUNTRY_SOURCE_LOCALE);
646 Country testCountry2 = new Country(TEST_ISO_2, Country.COUNTRY_SOURCE_LOCALE)
    [all...]
  /external/pdfium/third_party/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...]
  /frameworks/opt/net/wifi/tests/wifitests/assets/
r1.PerProviderSubscription.conf 40 7:Country=2:US
r2.PerProviderSubscription.conf 23 7:Country=2:US

Completed in 1954 milliseconds

1 2