/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/dialer/location/ |
GeoUtil.java | 27 // The {@link CountryDetector} should never return null so this is safe to return as-is. 29 String countryIso = CountryDetector.getInstance(context).getCurrentCountryIso();
|
CountryDetector.java | 63 public class CountryDetector { 75 @VisibleForTesting public static CountryDetector instance; 83 public 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...] |
/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();
|
/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/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; 487 // Fallback to Locale if there are issues with CountryDetector 504 final CountryDetector countryDetector = 505 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR); 507 if (countryDetector != null) { 508 country = countryDetector.detectCountry(); 510 countryDetector.addCountryListener((newCountry) -> {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GsmSmsDispatcherTest.java | 41 import android.location.CountryDetector; 83 private CountryDetector mCountryDetector;
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
CallLogManagerTest.java | 27 import android.location.CountryDetector; 701 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService( [all...] |
ComponentContextFixture.java | 47 import android.location.CountryDetector; 429 private final CountryDetector mCountryDetector = mock(CountryDetector.class);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 42 import android.location.CountryDetector; 108 private CountryDetector mMockCountryDetector = new CountryDetector(null){
|
/frameworks/base/core/java/android/app/ |
SystemServiceRegistry.java | 65 import android.location.CountryDetector; 292 registerService(Context.COUNTRY_DETECTOR, CountryDetector.class, 293 new StaticServiceFetcher<CountryDetector>() { 295 public CountryDetector createService() throws ServiceNotFoundException { 297 return new CountryDetector(ICountryDetector.Stub.asInterface(b)); [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberUtils.java | 30 import android.location.CountryDetector; [all...] |
/frameworks/base/config/ |
boot-image-profile.txt | [all...] |
preloaded-classes | [all...] |