Home
last modified time | relevance | path

Searched refs:Country (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DComprehensiveCountryDetectorTest.java19 import android.location.Country;
31 private Country mNotifiedCountry;
36 public void notifyLocationBasedListener(Country country) { in notifyLocationBasedListener()
62 public Country detectCountry() { in createLocationBasedCountryDetector()
75 protected Country getNetworkBasedCountry() { in getNetworkBasedCountry()
80 protected Country getLastKnownLocationBasedCountry() { in getLastKnownLocationBasedCountry()
85 protected Country getSimBasedCountry() { in getSimBasedCountry()
90 protected Country getLocaleCountry() { in getLocaleCountry()
95 protected void runAfterDetectionAsync(final Country country, final Country detectedCountry, in runAfterDetectionAsync()
127 private Country mCountry;
[all …]
DLocationBasedCountryDetectorTest.java18 import android.location.Country;
158 public void onCountryDetected(Country country) { in onCountryDetected()
/frameworks/base/location/tests/locationtests/src/android/location/
DCountryTester.java23 Country countryA = new Country("US", Country.COUNTRY_SOURCE_NETWORK); in testCountryEquals()
24 Country countryB = new Country("US", Country.COUNTRY_SOURCE_LOCALE); in testCountryEquals()
25 Country countryC = new Country("CN", Country.COUNTRY_SOURCE_LOCALE); in testCountryEquals()
26 Country countryD = new Country("us", Country.COUNTRY_SOURCE_NETWORK); in testCountryEquals()
/frameworks/base/services/java/com/android/server/location/
DComprehensiveCountryDetector.java20 import android.location.Country;
77 private Country mCountry;
79 private Country mCountryFromLocation;
88 private final ConcurrentLinkedQueue<Country> mDebugLogs = new ConcurrentLinkedQueue<Country>();
95 private Country mLastCountryAddedToLogs;
135 public void onCountryDetected(Country country) {
150 public Country detectCountry() { in detectCountry()
169 private Country getCountry() { in getCountry()
170 Country result = null; in getCountry()
188 private void addToLogs(Country country) { in addToLogs()
[all …]
DCountryDetectorBase.java20 import android.location.Country;
37 protected Country mDetectedCountry;
50 public abstract Country detectCountry(); in detectCountry()
67 protected void notifyListener(Country country) { in notifyListener()
DLocationBasedCountryDetector.java21 import android.location.Country;
148 public synchronized Country detectCountry() { in detectCountry()
235 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); in queryCountryCode()
/frameworks/base/location/java/android/location/
DCountry.java30 public class Country implements Parcelable { class
81 public Country(final String countryIso, final int source) { in Country() method in Country
91 private Country(final String countryIso, final int source, long timestamp) { in Country() method in Country
101 public Country(Country country) { in Country() method in Country
136 public static final Parcelable.Creator<Country> CREATOR = new Parcelable.Creator<Country>() {
137 public Country createFromParcel(Parcel in) {
138 return new Country(in.readString(), in.readInt(), in.readLong());
141 public Country[] newArray(int size) {
142 return new Country[size];
166 if (object instanceof Country) { in equals()
[all …]
DICountryListener.aidl19 import android.location.Country;
25 void onCountryDetected(in Country country); in onCountryDetected()
DICountryDetector.aidl19 import android.location.Country;
33 Country detectCountry(); in detectCountry()
DCountryDetector.java74 public void onCountryDetected(final Country country) { in onCountryDetected()
104 public Country detectCountry() { in detectCountry()
DCountry.aidl19 parcelable Country;
DCountryListener.java29 void onCountryDetected(Country country); in onCountryDetected()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCountryDetectorServiceTest.java20 import android.location.Country;
28 private Country mCountry;
31 public void onCountryDetected(Country country) throws RemoteException { in onCountryDetected()
35 public Country getCountry() { in getCountry()
53 public void notifyReceivers(Country country) { in notifyReceivers()
82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK); in testNotifyListeners()
/frameworks/base/services/java/com/android/server/
DCountryDetectorService.java27 import android.location.Country;
100 public Country detectCountry() { in detectCountry()
157 protected void notifyReceivers(Country country) { in notifyReceivers()
178 public void onCountryDetected(final Country country) { in initialize()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java23 import android.location.Country;
569 Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/base/docs/html/google/play/
Dfilters.jd389 <td valign="top">Country Targeting</td> <td valign="top"> <p>When you upload your app to