Home
last modified time | relevance | path

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

/frameworks/base/location/java/android/location/
DCountry.java83 public Country(final String countryIso, final int source) { in Country() argument
84 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK in Country()
88 mCountryIso = countryIso.toUpperCase(Locale.US); in Country()
93 private Country(final String countryIso, final int source, long timestamp) { in Country() argument
94 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK in Country()
98 mCountryIso = countryIso.toUpperCase(Locale.US); in Country()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DLocaleTracker.java378 String countryIso = ""; in updateLocale() local
382 countryIso = MccTable.countryCodeForMcc(mcc); in updateLocale()
391 if (TextUtils.isEmpty(countryIso)) { in updateLocale()
393 countryIso = MccTable.countryCodeForMcc(mcc); in updateLocale()
396 log("updateLocale: mcc = " + mcc + ", country = " + countryIso); in updateLocale()
398 if (!Objects.equals(countryIso, mCurrentCountryIso)) { in updateLocale()
399 String msg = "updateLocale: Change the current country to \"" + countryIso in updateLocale()
403 mCurrentCountryIso = countryIso; in updateLocale()
414 wifiManager.setCountryCode(countryIso); in updateLocale()
423 intent.putExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY, countryIso); in updateLocale()
[all …]
DSmsUsageMonitor.java384 public int checkDestination(String destAddress, String countryIso) { in checkDestination() argument
387 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) { in checkDestination()
397 if (countryIso != null) { in checkDestination()
398 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) || in checkDestination()
402 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso); in checkDestination()
405 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso); in checkDestination()
407 mCurrentCountry = countryIso; in checkDestination()
415 … Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule"); in checkDestination()
DSmsController.java525 int subId, String callingPackage, String destAddress, String countryIso) { in checkSmsShortCodeDestination() argument
532 return getPhone(subId).mSmsUsageMonitor.checkDestination(destAddress, countryIso); in checkSmsShortCodeDestination()
DGsmCdmaCallTracker.java1808 String countryIso = ""; in getNetworkCountryIso() local
1814 countryIso = lt.getCurrentCountry(); in getNetworkCountryIso()
1818 return countryIso; in getNetworkCountryIso()
DSubscriptionController.java351 String countryIso = cursor.getString(cursor.getColumnIndexOrThrow( in getSubInfoRecord() local
384 + " countIso:" + countryIso + " isEmbedded:" in getSubInfoRecord()
398 countryIso, isEmbedded, accessRules, cardId, publicCardId, isOpportunistic, in getSubInfoRecord()
/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 = getCountryFromLocation(location); in queryCountryCode()
247 if (countryIso != null) { in queryCountryCode()
248 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); in queryCountryCode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DEmergencyNumberTracker.java122 String countryIso = intent.getStringExtra(
125 + countryIso);
131 if (TextUtils.isEmpty(countryIso)) {
134 updateEmergencyNumberDatabaseCountryChange(countryIso);
273 public void updateEmergencyNumberDatabaseCountryChange(String countryIso) { in updateEmergencyNumberDatabaseCountryChange() argument
274 this.obtainMessage(EVENT_UPDATE_DB_COUNTRY_ISO_CHANGED, countryIso).sendToTarget(); in updateEmergencyNumberDatabaseCountryChange()
277 private EmergencyNumber convertEmergencyNumberFromEccInfo(EccInfo eccInfo, String countryIso) { in convertEmergencyNumberFromEccInfo() argument
308 return new EmergencyNumber(phoneNumber, countryIso, "", emergencyServiceCategoryBitmask, in convertEmergencyNumberFromEccInfo()
313 private void cacheEmergencyDatabaseByCountry(String countryIso) { in cacheEmergencyDatabaseByCountry() argument
322 logd(countryIso + " emergency database is loaded. "); in cacheEmergencyDatabaseByCountry()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java615 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local
619 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription()
620 pn = util.parse(number, countryIso); in getGeoDescription()
641 String countryIso = null; in getCurrentCountryIso() local
647 countryIso = country.getCountryIso(); in getCurrentCountryIso()
652 if (countryIso == null) { in getCurrentCountryIso()
653 countryIso = locale.getCountry(); in getCurrentCountryIso()
655 + countryIso); in getCurrentCountryIso()
657 return countryIso; in getCurrentCountryIso()
DISmsImplBase.java208 int subid, String callingApk, String destAddress, String countryIso) { in checkSmsShortCodeDestination() argument
DISms.aidl597 … checkSmsShortCodeDestination(int subId, String callingApk, String destAddress, String countryIso); in checkSmsShortCodeDestination() argument
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java208 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
211 roaming, icon, mcc, mnc, countryIso, isEmbedded, accessRules, cardString, -1, in SubscriptionInfo()
222 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
226 roaming, icon, mcc, mnc, countryIso, isEmbedded, accessRules, cardString, -1, in SubscriptionInfo()
236 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
252 this.mCountryIso = countryIso; in SubscriptionInfo()
651 String countryIso = source.readString();
669 countryIso, isEmbedded, accessRules, cardString, cardId, isOpportunistic,
DPhoneNumberUtils.java2180 String countryIso; in isLocalEmergencyNumberInternal() local
2184 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
2187 countryIso = locale.getCountry(); in isLocalEmergencyNumberInternal()
2189 + countryIso); in isLocalEmergencyNumberInternal()
2191 return isEmergencyNumberInternal(subId, number, countryIso, useExactMatch); in isLocalEmergencyNumberInternal()
DSmsManager.java3010 String destAddress, String countryIso) { in checkSmsShortCodeDestination() argument
3015 ActivityThread.currentPackageName(), destAddress, countryIso); in checkSmsShortCodeDestination()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsUsageMonitorShortCodeTest.java37 final String countryIso; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
41 ShortCodeTest(String countryIso, String destAddress, int category) { in ShortCodeTest() argument
42 this.countryIso = countryIso; in ShortCodeTest()
470 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor()
471 test.category, monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
/frameworks/base/telecomm/java/android/telecom/
DConferenceParticipant.java304 public static Uri getParticipantAddress(Uri address, String countryIso) { in getParticipantAddress() argument
341 if (!TextUtils.isEmpty(countryIso)) { in getParticipantAddress()
342 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getParticipantAddress()
/frameworks/base/core/java/android/provider/
DCallLog.java1019 final String countryIso = getCurrentCountryIso(context); in updateNormalizedNumber() local
1020 if (TextUtils.isEmpty(countryIso)) { in updateNormalizedNumber()
1023 final String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in updateNormalizedNumber()
1081 String countryIso = null; in getCurrentCountryIso() local
1087 countryIso = country.getCountryIso(); in getCurrentCountryIso()
1090 return countryIso; in getCurrentCountryIso()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1432 String countryIso) { in writeRilCallList() argument
1438 RilCall[] calls = convertConnectionsToRilCalls(connections, countryIso); in writeRilCallList()
1459 String countryIso) { in convertConnectionsToRilCalls() argument
1464 convertConnectionToRilCall(mConnections.get(i), calls[i], countryIso); in convertConnectionsToRilCalls() local
1472 emergencyNumberInfo.countryIso = num.getCountryIso(); in convertEmergencyNumberToEmergencyNumberInfo()
1482 String countryIso) { in convertConnectionToRilCall() argument
1529 < getSamplePercentageForEmergencyCall(countryIso)) { in convertConnectionToRilCall()
1585 String countryIso) { in writeRilHangup() argument
1593 convertConnectionToRilCall(conn, calls[0], countryIso); in writeRilHangup()
2087 EmergencyNumber emergencyNumber, String countryIso) { in writeOnImsCallTerminated() argument
[all …]
/frameworks/base/telephony/java/android/telephony/emergency/
DEmergencyNumber.java248 public EmergencyNumber(@NonNull String number, @NonNull String countryIso, @NonNull String mnc, in EmergencyNumber() argument
254 this.mCountryIso = countryIso; in EmergencyNumber()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java1391 String countryIso = getCountryIso(); in getFormattedPhoneNumber() local
1392 if (countryIso == null) { in getFormattedPhoneNumber()
1395 String phoneNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getFormattedPhoneNumber()
4221 String countryIso = ""; in getNetworkCountryIso() local
4227 countryIso = lt.getCurrentCountry(); in getNetworkCountryIso()
4231 return countryIso; in getNetworkCountryIso()