Home
last modified time | relevance | path

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

12

/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.java495 String countryIso = getCarrierCountry(); in updateLocale() local
506 countryIso = MccTable.countryCodeForMcc(mccMnc.mcc); in updateLocale()
520 if (TextUtils.isEmpty(countryIso)) { in updateLocale()
523 countryIso = MccTable.countryCodeForMcc(mcc); in updateLocale()
536 countryIso = mCountryOverride; in updateLocale()
538 timeZoneCountryIso = countryIso; in updateLocale()
543 countryIso = ""; in updateLocale()
546 log("updateLocale: countryIso = " + countryIso in updateLocale()
548 if (!Objects.equals(countryIso, mCurrentCountryIso)) { in updateLocale()
549 String msg = "updateLocale: Change the current country to \"" + countryIso + "\"" in updateLocale()
[all …]
DSmsUsageMonitor.java383 public int checkDestination(String destAddress, String countryIso) { in checkDestination() argument
386 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) { in checkDestination()
396 if (countryIso != null) { in checkDestination()
397 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) || in checkDestination()
401 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso); in checkDestination()
404 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso); in checkDestination()
406 mCurrentCountry = countryIso; in checkDestination()
414 … Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule"); in checkDestination()
DSmsController.java679 String callingFeatureId, String destAddress, String countryIso) { in checkSmsShortCodeDestination() argument
689 return getPhone(subId).mSmsUsageMonitor.checkDestination(destAddress, countryIso); in checkSmsShortCodeDestination()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DEmergencyNumberTracker.java147 String countryIso = intent.getStringExtra(
150 + countryIso);
158 if (TextUtils.isEmpty(countryIso) && !isAirplaneModeEnabled()) {
163 updateEmergencyCountryIsoAllPhones(countryIso == null ? "" : countryIso);
291 public void updateEmergencyCountryIsoAllPhones(String countryIso) { in updateEmergencyCountryIsoAllPhones() argument
294 updateEmergencyNumberDatabaseCountryChange(countryIso); in updateEmergencyCountryIsoAllPhones()
310 countryIso); in updateEmergencyCountryIsoAllPhones()
359 public void updateEmergencyNumberDatabaseCountryChange(String countryIso) { in updateEmergencyNumberDatabaseCountryChange() argument
360 this.obtainMessage(EVENT_UPDATE_DB_COUNTRY_ISO_CHANGED, countryIso).sendToTarget(); in updateEmergencyNumberDatabaseCountryChange()
393 private EmergencyNumber convertEmergencyNumberFromEccInfo(EccInfo eccInfo, String countryIso) { in convertEmergencyNumberFromEccInfo() argument
[all …]
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java155 final String countryIso = (String) msg.obj; in handleMessage() local
157 handleNetworkCountryChanged(countryIso, slotId); in handleMessage()
228 private void handleNetworkCountryChanged(String countryIso, int slotId) { in handleNetworkCountryChanged() argument
230 Slog.d(TAG, "handleNetworkCountryChanged: countryIso=" + countryIso in handleNetworkCountryChanged()
234 if (TextUtils.isEmpty(countryIso) && mAirplaneModeEnabled) { in handleNetworkCountryChanged()
249 String countryIso = mTelephonyManager.getNetworkCountryIso(i); in updateNetworkCountry() local
250 if (DBG) Slog.d(TAG, "UpdateNetworkCountry: slotId=" + i + " countryIso=" + countryIso); in updateNetworkCountry()
251 if (isoRequiresEmergencyAffordance(countryIso)) { in updateNetworkCountry()
/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/base/telecomm/java/android/telecom/
DCallerInfo.java686 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local
690 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription()
691 pn = util.parse(number, countryIso); in getGeoDescription()
712 String countryIso = null; in getCurrentCountryIso() local
718 countryIso = country.getCountryIso(); in getCurrentCountryIso()
723 if (countryIso == null) { in getCurrentCountryIso()
724 countryIso = locale.getCountry(); in getCurrentCountryIso()
726 + countryIso); in getCurrentCountryIso()
728 return countryIso; in getCurrentCountryIso()
/frameworks/base/core/java/android/timezone/
DTimeZoneFinder.java73 public CountryTimeZones lookupCountryTimeZones(@NonNull String countryIso) { in lookupCountryTimeZones() argument
75 .lookupCountryTimeZones(countryIso); in lookupCountryTimeZones()
DCountryTimeZones.java160 public boolean matchesCountryCode(@NonNull String countryIso) { in matchesCountryCode() argument
161 return mDelegate.matchesCountryCode(countryIso); in matchesCountryCode()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java224 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
227 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
238 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
242 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
252 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
270 this.mCountryIso = countryIso; in SubscriptionInfo()
695 String countryIso = source.readString();
716 countryIso, isEmbedded, nativeAccessRules, cardString, cardId, isOpportunistic,
/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/opt/net/ims/src/java/com/android/ims/internal/
DConferenceParticipant.java313 public static Uri getParticipantAddress(Uri address, String countryIso) { in getParticipantAddress() argument
350 if (!TextUtils.isEmpty(countryIso)) { in getParticipantAddress()
351 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getParticipantAddress()
/frameworks/base/core/java/android/provider/
DCallLog.java1037 final String countryIso = getCurrentCountryIso(context); in updateNormalizedNumber() local
1038 if (TextUtils.isEmpty(countryIso)) { in updateNormalizedNumber()
1041 final String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in updateNormalizedNumber()
1099 String countryIso = null; in getCurrentCountryIso() local
1105 countryIso = country.getCountryIso(); in getCurrentCountryIso()
1108 return countryIso; in getCurrentCountryIso()
/frameworks/base/core/java/android/util/
DTimeUtils.java70 int offsetMillis, boolean isDst, long whenMillis, String countryIso) { in getIcuTimeZone() argument
71 if (countryIso == null) { in getIcuTimeZone()
77 TimeZoneFinder.getInstance().lookupCountryTimeZones(countryIso); in getIcuTimeZone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java332 public boolean isSupportedCountry(@NonNull String countryIso) { in isSupportedCountry() argument
339 return !isEsimUnsupportedCountry(countryIso); in isSupportedCountry()
342 return isEsimSupportedCountry(countryIso); in isSupportedCountry()
346 private boolean isEsimSupportedCountry(String countryIso) { in isEsimSupportedCountry() argument
347 if (mSupportedCountries == null || TextUtils.isEmpty(countryIso)) { in isEsimSupportedCountry()
350 return mSupportedCountries.contains(countryIso); in isEsimSupportedCountry()
353 private boolean isEsimUnsupportedCountry(String countryIso) { in isEsimUnsupportedCountry() argument
354 if (mUnsupportedCountries == null || TextUtils.isEmpty(countryIso)) { in isEsimUnsupportedCountry()
357 return mUnsupportedCountries.contains(countryIso); in isEsimUnsupportedCountry()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1487 String countryIso) { in writeRilCallList() argument
1493 RilCall[] calls = convertConnectionsToRilCalls(connections, countryIso); in writeRilCallList()
1514 String countryIso) { in convertConnectionsToRilCalls() argument
1519 convertConnectionToRilCall(mConnections.get(i), calls[i], countryIso); in convertConnectionsToRilCalls() local
1527 emergencyNumberInfo.countryIso = num.getCountryIso(); in convertEmergencyNumberToEmergencyNumberInfo()
1537 String countryIso) { in convertConnectionToRilCall() argument
1584 < getSamplePercentageForEmergencyCall(countryIso)) { in convertConnectionToRilCall()
1644 String countryIso) { in writeRilHangup() argument
1652 convertConnectionToRilCall(conn, calls[0], countryIso); in writeRilHangup()
2153 EmergencyNumber emergencyNumber, String countryIso, in writeOnImsCallTerminated() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DEmergencyNumberTrackerTest.java116 private void cacheEmergencyNumberListFromDatabaseByCountry(String countryIso) { in cacheEmergencyNumberListFromDatabaseByCountry() argument
117 mEmergencyNumberTrackerMock.updateEmergencyNumberDatabaseCountryChange(countryIso); in cacheEmergencyNumberListFromDatabaseByCountry()
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/
DIEuiccController.aidl53 boolean isSupportedCountry(String countryIso); in isSupportedCountry() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/
DEmergencyAffordanceServiceTest.java404 private void sendBroadcastNetworkCountryChanged(Supplier<String> countryIso) { in sendBroadcastNetworkCountryChanged() argument
406 intent.putExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY, countryIso.get()); in sendBroadcastNetworkCountryChanged()
/frameworks/base/telephony/java/android/telephony/emergency/
DEmergencyNumber.java252 public EmergencyNumber(@NonNull String number, @NonNull String countryIso, @NonNull String mnc, in EmergencyNumber() argument
258 this.mCountryIso = countryIso; in EmergencyNumber()
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccManager.java1374 public boolean isSupportedCountry(@NonNull String countryIso) { in isSupportedCountry() argument
1379 return getIEuiccController().isSupportedCountry(countryIso.toUpperCase()); in isSupportedCountry()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISmsImplBase.java194 String callingFeatureId, String destAddress, String countryIso) { in checkSmsShortCodeDestination() argument
DISms.aidl532 String destAddress, String countryIso); in checkSmsShortCodeDestination() argument

12