/frameworks/base/location/java/android/location/ |
D | Country.java | 81 public Country(final String countryIso, final int source) { in Country() argument 82 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK in Country() 86 mCountryIso = countryIso.toUpperCase(Locale.US); in Country() 91 private Country(final String countryIso, final int source, long timestamp) { in Country() argument 92 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK in Country() 96 mCountryIso = countryIso.toUpperCase(Locale.US); in Country()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | LocaleTracker.java | 371 String countryIso = ""; in updateLocale() local 375 countryIso = MccTable.countryCodeForMcc(Integer.parseInt(mcc)); in updateLocale() 384 if (TextUtils.isEmpty(countryIso)) { in updateLocale() 388 countryIso = MccTable.countryCodeForMcc(Integer.parseInt(mcc)); in updateLocale() 396 String msg = "updateLocale: mcc = " + mcc + ", country = " + countryIso; in updateLocale() 399 if (!Objects.equals(countryIso, mCurrentCountryIso)) { in updateLocale() 400 msg = "updateLocale: Change the current country to " + countryIso; in updateLocale() 403 mCurrentCountryIso = countryIso; in updateLocale() 412 .setCountryCode(countryIso); in updateLocale()
|
D | SmsUsageMonitor.java | 392 public int checkDestination(String destAddress, String countryIso) { in checkDestination() argument 395 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) { in checkDestination() 405 if (countryIso != null) { in checkDestination() 406 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) || in checkDestination() 410 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso); in checkDestination() 413 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso); in checkDestination() 415 mCurrentCountry = countryIso; in checkDestination() 423 … Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule"); in checkDestination()
|
D | SubscriptionController.java | 300 String countryIso = getSubscriptionCountryIso(id); in getSubInfoRecord() local 317 + " mcc:" + mcc + " mnc:" + mnc + " countIso:" + countryIso + " isEmbedded:" in getSubInfoRecord() 328 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso, in getSubInfoRecord()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | ComprehensiveCountryDetector.java | 222 String countryIso = null; in getNetworkBasedCountry() local 224 countryIso = mTelephonyManager.getNetworkCountryIso(); in getNetworkBasedCountry() 225 if (!TextUtils.isEmpty(countryIso)) { in getNetworkBasedCountry() 226 return new Country(countryIso, Country.COUNTRY_SOURCE_NETWORK); in getNetworkBasedCountry() 243 String countryIso = null; in getSimBasedCountry() local 244 countryIso = mTelephonyManager.getSimCountryIso(); in getSimBasedCountry() 245 if (!TextUtils.isEmpty(countryIso)) { in getSimBasedCountry() 246 return new Country(countryIso, Country.COUNTRY_SOURCE_SIM); in getSimBasedCountry()
|
D | LocationBasedCountryDetector.java | 246 String countryIso = null; in queryCountryCode() 248 countryIso = getCountryFromLocation(location); in queryCountryCode() 250 if (countryIso != null) { in queryCountryCode() 251 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); in queryCountryCode()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionInfo.java | 142 Bitmap icon, int mcc, int mnc, String countryIso) { in SubscriptionInfo() argument 144 roaming, icon, mcc, mnc, countryIso, false /* isEmbedded */, in SubscriptionInfo() 153 Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument 156 roaming, icon, mcc, mnc, countryIso, isEmbedded, accessRules, null /* cardId */); in SubscriptionInfo() 164 Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument 178 this.mCountryIso = countryIso; in SubscriptionInfo() 430 String countryIso = source.readString(); 437 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso,
|
D | PhoneNumberUtils.java | 2190 String countryIso; in isLocalEmergencyNumberInternal() local 2194 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal() 2197 countryIso = locale.getCountry(); in isLocalEmergencyNumberInternal() 2199 + countryIso); in isLocalEmergencyNumberInternal() 2201 return isEmergencyNumberInternal(subId, number, countryIso, useExactMatch); in isLocalEmergencyNumberInternal()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CallerInfo.java | 590 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local 594 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription() 595 pn = util.parse(number, countryIso); in getGeoDescription() 616 String countryIso = null; in getCurrentCountryIso() local 622 countryIso = country.getCountryIso(); in getCurrentCountryIso() 627 if (countryIso == null) { in getCurrentCountryIso() 628 countryIso = locale.getCountry(); in getCurrentCountryIso() 630 + countryIso); in getCurrentCountryIso() 632 return countryIso; in getCurrentCountryIso()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsUsageMonitorShortCodeTest.java | 39 final String countryIso; field in SmsUsageMonitorShortCodeTest.ShortCodeTest 43 ShortCodeTest(String countryIso, String destAddress, int category) { in ShortCodeTest() argument 44 this.countryIso = countryIso; in ShortCodeTest() 472 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor() 473 test.category, monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 930 final String countryIso = getCurrentCountryIso(context); in updateNormalizedNumber() local 931 if (TextUtils.isEmpty(countryIso)) { in updateNormalizedNumber() 945 String countryIso = null; in getCurrentCountryIso() local 951 countryIso = country.getCountryIso(); in getCurrentCountryIso() 954 return countryIso; in getCurrentCountryIso()
|