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

/frameworks/base/location/java/android/location/
H A DCountry.java70 * @param countryIso the ISO 3166-1 two letters country code.
71 * @param source where the countryIso came from, could be one of below
81 public Country(final String countryIso, final int source) { argument
82 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK
86 mCountryIso = countryIso.toUpperCase(Locale.US);
91 private Country(final String countryIso, final int source, long timestamp) { argument
92 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK
96 mCountryIso = countryIso.toUpperCase(Locale.US);
158 * the timestamp value and just checks for equivalence of countryIso and source values.
188 * and timestamp fields, return true if the countryIso field
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationBasedCountryDetector.java230 String countryIso = null;
232 countryIso = getCountryFromLocation(location);
234 if (countryIso != null) {
235 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION);
H A DComprehensiveCountryDetector.java222 String countryIso = null;
224 countryIso = mTelephonyManager.getNetworkCountryIso();
225 if (!TextUtils.isEmpty(countryIso)) {
226 return new Country(countryIso, Country.COUNTRY_SOURCE_NETWORK);
243 String countryIso = null;
244 countryIso = mTelephonyManager.getSimCountryIso();
245 if (!TextUtils.isEmpty(countryIso)) {
246 return new Country(countryIso, Country.COUNTRY_SOURCE_SIM);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java564 String countryIso = getCurrentCountryIso(context, locale);
568 + "' for countryIso '" + countryIso + "'...");
569 pn = util.parse(number, countryIso);
589 String countryIso = null;
595 countryIso = country.getCountryIso();
600 if (countryIso == null) {
601 countryIso = locale.getCountry();
602 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
603 + countryIso);
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionInfo.java115 Bitmap icon, int mcc, int mnc, String countryIso) {
128 this.mCountryIso = countryIso;
299 String countryIso = source.readString();
303 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);
113 SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, CharSequence carrierName, int nameSource, int iconTint, String number, int roaming, Bitmap icon, int mcc, int mnc, String countryIso) argument
H A DPhoneNumberUtils.java2018 String countryIso;
2022 countryIso = detector.detectCountry().getCountryIso();
2025 countryIso = locale.getCountry();
2026 Rlog.w(LOG_TAG, "No CountryDetector; falling back to countryIso based on locale: "
2027 + countryIso);
2029 return isEmergencyNumberInternal(subId, number, countryIso, useExactMatch);
/frameworks/base/core/java/android/provider/
H A DCallLog.java606 final String countryIso = getCurrentCountryIso(context);
607 if (TextUtils.isEmpty(countryIso)) {
621 String countryIso = null;
627 countryIso = country.getCountryIso();
630 return countryIso;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsUsageMonitorShortCodeTest.java34 final String countryIso; field in class:SmsUsageMonitorShortCodeTest.ShortCodeTest
38 ShortCodeTest(String countryIso, String destAddress, int category) { argument
39 this.countryIso = countryIso;
462 assertEquals("country: " + test.countryIso + " number: " + test.address,
463 test.category, monitor.checkDestination(test.address, test.countryIso));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsUsageMonitor.java391 public int checkDestination(String destAddress, String countryIso) { argument
394 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) {
404 if (countryIso != null) {
405 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) ||
409 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso);
412 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso);
414 mCurrentCountry = countryIso;
422 Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule");
H A DSubscriptionController.java274 String countryIso = getSubscriptionCountryIso(id);
280 + " mcc:" + mcc + " mnc:" + mnc + " countIso:" + countryIso);
289 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);

Completed in 479 milliseconds