/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/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; 38 * This class is used to detect the country where the user is. The sources of 39 * country are queried in order of reliability, like 43 * <li>SIM's country</li> 47 * Call the {@link #detectCountry()} to get the available country immediately. 49 * To be notified of the future country change, using the 52 * Using the {@link #stop()} to stop listening to the country change. 54 * The country information will be refreshed every 55 * {@link #LOCATION_REFRESH_INTERVAL} once the location based country is used. 70 * The refresh interval when the location based country was use 272 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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 20 import android.location.Country; 36 * @return The ISO 3166-1 two letters country code of the country the user 43 final Country country = detector.detectCountry(); local 44 if (country != null) { 45 return country.getCountryIso();
|
/frameworks/base/services/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/chromium/chrome/browser/autofill/ |
address.h | 45 // Returns the localized country name corresponding to |country_code_|. 46 string16 Country() const; 51 // Sets the |country_code_| based on |country|, which should be a localized 52 // country name. 53 void SetCountry(const string16& country);
|
address.cc | 123 return Country(); 157 string16 Address::Country() const { 183 void Address::SetCountry(const string16& country) { 185 country_code_ = AutofillCountry::GetCountryCode(country, app_locale);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 39 import android.location.Country; 87 private Country mMockCountry = new Country("us", 0); 96 public Country detectCountry() {
|