Home
last modified time | relevance | path

Searched refs:CountryDetector (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/location/
DCountryDetector.java24 public class CountryDetector { class
27 private static CountryDetector sInstance;
47 private CountryDetector(Context context) { in CountryDetector() method in CountryDetector
52 private CountryDetector(Context context, TelephonyManager telephonyManager, in CountryDetector() method in CountryDetector
62 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager, in getInstanceForTest()
64 return new CountryDetector(context, telephonyManager, localeProvider); in getInstanceForTest()
73 public synchronized static CountryDetector getInstance(Context context) { in getInstance()
75 sInstance = new CountryDetector(context.getApplicationContext()); in getInstance()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java64 public class CountryDetector { class
76 @VisibleForTesting public static CountryDetector instance;
84 public CountryDetector( in CountryDetector() method in CountryDetector
125 public static synchronized CountryDetector getInstance(Context context) { in getInstance()
129 new CountryDetector( in getInstance()
215 processLocationUpdate(context, CountryDetector.getInstance(context).geocoder, location); in onReceive()
232 .putLong(CountryDetector.KEY_PREFERENCE_TIME_UPDATED, System.currentTimeMillis()) in processLocationUpdate()
233 .putString(CountryDetector.KEY_PREFERENCE_CURRENT_COUNTRY, country) in processLocationUpdate()
DGeoUtil.java34 String countryIso = CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCountryMonitor.java23 import android.location.CountryDetector;
60 final CountryDetector countryDetector = in getCountryIso()
61 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR); in getCountryIso()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DUtils.java24 import android.location.CountryDetector;
50 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java26 import android.location.CountryDetector;
44 CountryDetector mCountryDetector;
139 mSupportedServiceNamesByClass.put(CountryDetector.class, Context.COUNTRY_DETECTOR); in registerServices()
/packages/apps/Contacts/src/com/android/contacts/
DGeoUtil.java22 import com.android.contacts.location.CountryDetector;
45 return CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallLogManagerTest.java43 import android.location.CountryDetector;
764 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService( in testCountryIso_setCache()
778 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService( in testCountryIso_newCountryDetected()
923 private ArgumentCaptor<CountryListener> verifyCountryIso(CountryDetector mockDetector, in verifyCountryIso()
DComponentContextFixture.java49 import android.location.CountryDetector;
472 private final CountryDetector mCountryDetector = mock(CountryDetector.class);
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java25 import android.location.CountryDetector;
649 final CountryDetector countryDetector = in getCountryIso()
650 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR); in getCountryIso()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java31 import android.location.CountryDetector;
142 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java44 import android.location.CountryDetector;
113 private CountryDetector mMockCountryDetector = new CountryDetector(null){
/packages/apps/Contacts/
Dproguard.flags39 -keep class com.android.contacts.location.CountryDetector { *; }