Home
last modified time | relevance | path

Searched refs:countryIso (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/location/java/android/location/
DCountry.java81 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/
DComprehensiveCountryDetector.java222 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()
DLocationBasedCountryDetector.java246 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/com/android/internal/telephony/
DCallerInfo.java590 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local
594 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription()
595 pn = util.parse(number, countryIso); in getGeoDescription()
615 String countryIso = null; in getCurrentCountryIso() local
621 countryIso = country.getCountryIso(); in getCurrentCountryIso()
626 if (countryIso == null) { in getCurrentCountryIso()
627 countryIso = locale.getCountry(); in getCurrentCountryIso()
629 + countryIso); in getCurrentCountryIso()
631 return countryIso; in getCurrentCountryIso()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java392 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()
DSubscriptionController.java291 String countryIso = getSubscriptionCountryIso(id); in getSubInfoRecord() local
301 + " mcc:" + mcc + " mnc:" + mnc + " countIso:" + countryIso in getSubInfoRecord()
311 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso, in getSubInfoRecord()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java125 Bitmap icon, int mcc, int mnc, String countryIso, int simProvisioningStatus) { in SubscriptionInfo() argument
138 this.mCountryIso = countryIso; in SubscriptionInfo()
321 String countryIso = source.readString();
326 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso,
DPhoneNumberUtils.java2058 String countryIso; in isLocalEmergencyNumberInternal() local
2062 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
2065 countryIso = locale.getCountry(); in isLocalEmergencyNumberInternal()
2067 + countryIso); in isLocalEmergencyNumberInternal()
2069 return isEmergencyNumberInternal(subId, number, countryIso, useExactMatch); in isLocalEmergencyNumberInternal()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsUsageMonitorShortCodeTest.java35 final String countryIso; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
39 ShortCodeTest(String countryIso, String destAddress, int category) { in ShortCodeTest() argument
40 this.countryIso = countryIso; in ShortCodeTest()
468 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor()
469 test.category, monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
/frameworks/base/core/java/android/provider/
DCallLog.java870 final String countryIso = getCurrentCountryIso(context); in updateNormalizedNumber() local
871 if (TextUtils.isEmpty(countryIso)) { in updateNormalizedNumber()
885 String countryIso = null; in getCurrentCountryIso() local
891 countryIso = country.getCountryIso(); in getCurrentCountryIso()
894 return countryIso; in getCurrentCountryIso()