/packages/apps/Contacts/src/com/android/contacts/location/ |
CountryDetector.java | 24 public class CountryDetector { 25 private static final String TAG = "CountryDetector"; 27 private static CountryDetector sInstance; 47 private CountryDetector(Context context) { 52 private CountryDetector(Context context, TelephonyManager telephonyManager, 60 * Factory method for {@link CountryDetector} that allows the caller to provide mock objects. 62 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager, 64 return new CountryDetector(context, telephonyManager, localeProvider); 73 public synchronized static CountryDetector getInstance(Context context) { 75 sInstance = new CountryDetector(context.getApplicationContext()) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
CountryMonitor.java | 21 import android.location.CountryDetector; 48 final CountryDetector countryDetector = 49 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR); 51 if (countryDetector != null) country = countryDetector.detectCountry(); 54 // Fallback to Locale if there are issues with CountryDetector 59 countryDetector.addCountryListener(new CountryListener() {
|
/packages/apps/Dialer/java/com/android/contacts/common/location/ |
CountryDetector.java | 55 public class CountryDetector { 59 private static final String TAG = "CountryDetector"; 65 private static CountryDetector sInstance; 74 private CountryDetector(Context context) { 82 private CountryDetector( 124 public static synchronized CountryDetector getInstance(Context context) { 126 sInstance = new CountryDetector(context.getApplicationContext()); 131 /** Factory method for {@link CountryDetector} that allows the caller to provide mock objects. */ 132 public CountryDetector getInstanceForTest( 138 return new CountryDetector(context, telephonyManager, locationManager, localeProvider) [all...] |
UpdateCountryService.java | 73 editor.putLong(CountryDetector.KEY_PREFERENCE_TIME_UPDATED, System.currentTimeMillis()); 74 editor.putString(CountryDetector.KEY_PREFERENCE_CURRENT_COUNTRY, country);
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
Utils.java | 22 import android.location.CountryDetector; 38 final CountryDetector detector = (CountryDetector) context.getSystemService(
|
/packages/apps/Contacts/src/com/android/contacts/ |
GeoUtil.java | 22 import com.android.contacts.location.CountryDetector; 38 * method, make sure that {@link CountryDetector#initialize(Context)} has already been called 44 // The {@link CountryDetector} should never return null so this is safe to return as-is. 45 return CountryDetector.getInstance(context).getCurrentCountryIso();
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
GeoUtil.java | 21 import com.android.contacts.common.location.CountryDetector; 33 * make sure that {@link CountryDetector#initialize(Context)} has already been called in {@link 39 // The {@link CountryDetector} should never return null so this is safe to return as-is. 40 return CountryDetector.getInstance(context).getCurrentCountryIso();
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
CountryDetector.java | 63 public class CountryDetector { 75 @VisibleForTesting static CountryDetector sInstance; 83 CountryDetector( 104 "CountryDetector.registerForLocationUpdates", 109 LogUtil.i("CountryDetector.registerForLocationUpdates", "registering for location updates"); 122 /** @return the single instance of the {@link CountryDetector} */ 123 public static synchronized CountryDetector getInstance(Context context) { 127 new CountryDetector( 211 // of CountryDetector to make this work for tests which is weird 213 processLocationUpdate(context, CountryDetector.getInstance(context).geocoder, location) [all...] |
GeoUtil.java | 31 // The {@link CountryDetector} should never return null so this is safe to return as-is. 32 return CountryDetector.getInstance(context).getCurrentCountryIso();
|
/frameworks/base/location/java/android/location/ |
CountryDetector.java | 49 public class CountryDetector { 80 private final static String TAG = "CountryDetector"; 90 public CountryDetector(ICountryDetector service) {
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
MyMockContext.java | 26 import android.location.CountryDetector; 44 CountryDetector mCountryDetector; 138 mSupportedServiceNamesByClass.put(CountryDetector.class, Context.COUNTRY_DETECTOR);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GsmSmsDispatcherTest.java | 27 import android.location.CountryDetector; 56 private CountryDetector mCountryDetector;
|
/frameworks/base/core/java/android/provider/ |
CallLog.java | 28 import android.location.CountryDetector; [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 25 import android.location.CountryDetector; 617 CountryDetector detector = (CountryDetector) context.getSystemService( 624 Rlog.e(TAG, "CountryDetector.detectCountry() returned null."); 629 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
CallLogManager.java | 23 import android.location.CountryDetector; 436 // Fallback to Locale if there are issues with CountryDetector 453 final CountryDetector countryDetector = 454 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR); 456 if (countryDetector != null) { 457 country = countryDetector.detectCountry(); 459 countryDetector.addCountryListener((newCountry) -> {
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
CallLogManagerTest.java | 27 import android.location.CountryDetector; 634 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService( 647 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService( 662 private ArgumentCaptor<CountryListener> verifyCountryIso(CountryDetector mockDetector, [all...] |
ComponentContextFixture.java | 47 import android.location.CountryDetector; 429 private final CountryDetector mCountryDetector = mock(CountryDetector.class);
|
/frameworks/base/core/java/android/app/ |
SystemServiceRegistry.java | 59 import android.location.CountryDetector; 276 registerService(Context.COUNTRY_DETECTOR, CountryDetector.class, 277 new StaticServiceFetcher<CountryDetector>() { 279 public CountryDetector createService() throws ServiceNotFoundException { 281 return new CountryDetector(ICountryDetector.Stub.asInterface(b)); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 42 import android.location.CountryDetector; 104 private CountryDetector mMockCountryDetector = new CountryDetector(null){
|
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberUtils.java | 29 import android.location.CountryDetector; [all...] |
/frameworks/base/ |
compiled-classes-phone | [all...] |
preloaded-classes | [all...] |