Searched refs:CountryDetector (Results 1 – 13 of 13) sorted by relevance
/packages/apps/Contacts/src/com/android/contacts/location/ |
D | CountryDetector.java | 24 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/ |
D | CountryDetector.java | 64 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()
|
D | GeoUtil.java | 34 String countryIso = CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CountryMonitor.java | 23 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/ |
D | Utils.java | 24 import android.location.CountryDetector; 50 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso()
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | MyMockContext.java | 26 import android.location.CountryDetector; 44 CountryDetector mCountryDetector; 139 mSupportedServiceNamesByClass.put(CountryDetector.class, Context.COUNTRY_DETECTOR); in registerServices()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | GeoUtil.java | 22 import com.android.contacts.location.CountryDetector; 45 return CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallLogManagerTest.java | 43 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()
|
D | ComponentContextFixture.java | 49 import android.location.CountryDetector; 472 private final CountryDetector mCountryDetector = mock(CountryDetector.class);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallLogManager.java | 25 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/ |
D | TelecomUtils.java | 31 import android.location.CountryDetector; 142 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 44 import android.location.CountryDetector; 113 private CountryDetector mMockCountryDetector = new CountryDetector(null){
|
/packages/apps/Contacts/ |
D | proguard.flags | 39 -keep class com.android.contacts.location.CountryDetector { *; }
|