/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/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 | 230 String countryIso = null; in queryCountryCode() 232 countryIso = getCountryFromLocation(location); in queryCountryCode() 234 if (countryIso != null) { in queryCountryCode() 235 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); in queryCountryCode()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CallerInfo.java | 564 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local 568 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription() 569 pn = util.parse(number, countryIso); in getGeoDescription() 589 String countryIso = null; in getCurrentCountryIso() local 595 countryIso = country.getCountryIso(); in getCurrentCountryIso() 600 if (countryIso == null) { in getCurrentCountryIso() 601 countryIso = locale.getCountry(); in getCurrentCountryIso() 603 + countryIso); in getCurrentCountryIso() 605 return countryIso; in getCurrentCountryIso()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 391 public int checkDestination(String destAddress, String countryIso) { in checkDestination() argument 394 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) { in checkDestination() 404 if (countryIso != null) { in checkDestination() 405 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) || in checkDestination() 409 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso); in checkDestination() 412 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso); in checkDestination() 414 mCurrentCountry = countryIso; in checkDestination() 422 … Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule"); in checkDestination()
|
D | SubscriptionController.java | 274 String countryIso = getSubscriptionCountryIso(id); in getSubInfoRecord() local 280 + " mcc:" + mcc + " mnc:" + mnc + " countIso:" + countryIso); in getSubInfoRecord() 289 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso); in getSubInfoRecord()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionInfo.java | 115 Bitmap icon, int mcc, int mnc, String countryIso) { in SubscriptionInfo() argument 128 this.mCountryIso = countryIso; in SubscriptionInfo() 299 String countryIso = source.readString(); 303 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);
|
D | PhoneNumberUtils.java | 2018 String countryIso; in isLocalEmergencyNumberInternal() local 2022 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal() 2025 countryIso = locale.getCountry(); in isLocalEmergencyNumberInternal() 2027 + countryIso); in isLocalEmergencyNumberInternal() 2029 return isEmergencyNumberInternal(subId, number, countryIso, useExactMatch); in isLocalEmergencyNumberInternal()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 606 final String countryIso = getCurrentCountryIso(context); in updateNormalizedNumber() local 607 if (TextUtils.isEmpty(countryIso)) { in updateNormalizedNumber() 621 String countryIso = null; in getCurrentCountryIso() local 627 countryIso = country.getCountryIso(); in getCurrentCountryIso() 630 return countryIso; in getCurrentCountryIso()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsUsageMonitorShortCodeTest.java | 34 final String countryIso; field in SmsUsageMonitorShortCodeTest.ShortCodeTest 38 ShortCodeTest(String countryIso, String destAddress, int category) { in ShortCodeTest() argument 39 this.countryIso = countryIso; in ShortCodeTest() 462 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor() 463 test.category, monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
|