HomeSort by relevance Sort by last modified time
    Searched refs:CountryDetector (Results 1 - 17 of 17) sorted by null

  /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/ContactsCommon/src/com/android/contacts/common/location/
CountryDetector.java 43 public class CountryDetector {
44 private static final String TAG = "CountryDetector";
49 private static CountryDetector sInstance;
78 private CountryDetector(Context context) {
84 private CountryDetector(Context context, TelephonyManager telephonyManager,
116 * Factory method for {@link CountryDetector} that allows the caller to provide mock objects.
119 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager,
121 return new CountryDetector(context, telephonyManager, locationManager, localeProvider);
130 public synchronized static CountryDetector getInstance(Context context) {
132 sInstance = new CountryDetector(context.getApplicationContext())
    [all...]
UpdateCountryService.java 57 editor.putLong(CountryDetector.KEY_PREFERENCE_TIME_UPDATED,
59 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(
  /frameworks/base/location/java/android/location/
CountryDetector.java 50 public class CountryDetector {
81 private final static String TAG = "CountryDetector";
91 public CountryDetector(ICountryDetector service) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
GeoUtil.java 22 import com.android.contacts.common.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/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;
55 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;
616 CountryDetector detector = (CountryDetector) context.getSystemService(
623 Rlog.e(TAG, "CountryDetector.detectCountry() returned null.");
628 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;
419 // Fallback to Locale if there are issues with CountryDetector
436 final CountryDetector countryDetector =
437 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR);
439 if (countryDetector != null) {
440 country = countryDetector.detectCountry();
442 countryDetector.addCountryListener((newCountry) -> {
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
CallLogManagerTest.java 27 import android.location.CountryDetector;
596 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService(
609 CountryDetector mockDetector = (CountryDetector) mContext.getSystemService(
624 private ArgumentCaptor<CountryListener> verifyCountryIso(CountryDetector mockDetector,
    [all...]
ComponentContextFixture.java 47 import android.location.CountryDetector;
411 private final CountryDetector mCountryDetector = mock(CountryDetector.class);
  /frameworks/base/core/java/android/app/
SystemServiceRegistry.java 58 import android.location.CountryDetector;
242 registerService(Context.COUNTRY_DETECTOR, CountryDetector.class,
243 new StaticServiceFetcher<CountryDetector>() {
245 public CountryDetector createService() {
247 return new CountryDetector(ICountryDetector.Stub.asInterface(b));
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactsActor.java 43 import android.location.CountryDetector;
106 private CountryDetector mMockCountryDetector = new CountryDetector(null){
  /frameworks/base/telephony/java/android/telephony/
PhoneNumberUtils.java 28 import android.location.CountryDetector;
    [all...]
  /frameworks/base/
compiled-classes-phone     [all...]

Completed in 1381 milliseconds