Home
last modified time | relevance | path

Searched refs:countryCode (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsNumberUtils.java113 public int countryCode; field in SmsNumberUtils.NumberEntry
205 int countryCode = numberEntry.countryCode; in formatNumber() local
208 && networkPortionNumber.length() >= 11 && countryCode != NANP_CC) { in formatNumber()
414 int countryCode = -1; in checkInternationalNumberPlan() local
422 if ((countryCode = getCountryCode(context, numberCountryAreaLocal)) > 0) { in checkInternationalNumberPlan()
423 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan()
426 } else if ((countryCode = getCountryCode(context, numberNoNBPCD)) > 0) { in checkInternationalNumberPlan()
427 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan()
434 if ((countryCode = getCountryCode(context, numberCountryAreaLocal)) > 0) { in checkInternationalNumberPlan()
435 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiCountryCode.java75 String countryCode = intent.getStringExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY); in WifiCountryCode()
77 setCountryCodeAndUpdate(countryCode); in WifiCountryCode()
125 synchronized void enableForceCountryCode(String countryCode) { in enableForceCountryCode() argument
126 if (TextUtils.isEmpty(countryCode)) { in enableForceCountryCode()
131 mTelephonyCountryCode = countryCode.toUpperCase(Locale.US); in enableForceCountryCode()
158 private boolean setCountryCode(String countryCode) { in setCountryCode() argument
163 Log.d(TAG, "Set telephony country code to: " + countryCode); in setCountryCode()
167 if (TextUtils.isEmpty(countryCode)) { in setCountryCode()
174 mTelephonyCountryCode = countryCode.toUpperCase(Locale.US); in setCountryCode()
186 private boolean setCountryCodeAndUpdate(String countryCode) { in setCountryCodeAndUpdate() argument
[all …]
DWifiShellCommand.java328 String countryCode = getNextArgRequired(); in onCommand() local
329 if (!(countryCode.length() == 2 in onCommand()
330 && countryCode.chars().allMatch(Character::isLetter))) { in onCommand()
335 mWifiCountryCode.enableForceCountryCode(countryCode); in onCommand()
DSoftApManager.java167 String countryCode, in SoftApManager() argument
179 mCountryCode = countryCode; in SoftApManager()
DWifiNative.java2004 public boolean setCountryCode(@NonNull String ifaceName, String countryCode) {
2005 return mSupplicantStaIfaceHal.setCountryCode(ifaceName, countryCode);
2968 public boolean setCountryCodeHal(@NonNull String ifaceName, String countryCode) {
2969 return mWifiVendorHal.setCountryCodeHal(ifaceName, countryCode);
DWifiVendorHal.java1493 public boolean setCountryCodeHal(@NonNull String ifaceName, String countryCode) { in setCountryCodeHal() argument
1494 if (countryCode == null) return boolResult(false); in setCountryCodeHal()
1495 if (countryCode.length() != 2) return boolResult(false); in setCountryCodeHal()
1498 code = NativeUtil.stringToByteArray(countryCode); in setCountryCodeHal()
DClientModeImpl.java746 BackupManagerProxy backupManagerProxy, WifiCountryCode countryCode, in ClientModeImpl() argument
810 mCountryCode = countryCode; in ClientModeImpl()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneData.java386 final String countryCode = fields[0]; in loadTzsInZoneTab() local
399 if (countryCode == null && !timeZoneId.startsWith("Etc/GMT")) { in loadTzsInZoneTab()
406 String country = mCountryCodeToNameMap.get(countryCode); in loadTzsInZoneTab()
408 country = getCountryNames(lang, countryCode); in loadTzsInZoneTab()
409 mCountryCodeToNameMap.put(countryCode, country); in loadTzsInZoneTab()
482 private String getCountryNames(String lang, String countryCode) { in getCountryNames() argument
485 if (PALESTINE_COUNTRY_CODE.equalsIgnoreCase(countryCode)) { in getCountryNames()
488 countryDisplayName = new Locale(lang, countryCode).getDisplayCountry(defaultLocale); in getCountryNames()
491 if (!countryCode.equals(countryDisplayName)) { in getCountryNames()
506 if (mBackupCountryCodes[i].equals(countryCode)) { in getCountryNames()
[all …]
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java70 public PhoneNumberFormattingTextWatcher(String countryCode) { in PhoneNumberFormattingTextWatcher() argument
71 if (countryCode == null) throw new IllegalArgumentException(); in PhoneNumberFormattingTextWatcher()
72 mFormatter = PhoneNumberUtil.getInstance().getAsYouTypeFormatter(countryCode); in PhoneNumberFormattingTextWatcher()
DPhoneNumberRange.java72 public PhoneNumberRange(@NonNull String countryCode, @NonNull String prefix, in PhoneNumberRange() argument
75 if (!Pattern.matches("[0-9]*", countryCode)) { in PhoneNumberRange()
81 mCountryCode = countryCode; in PhoneNumberRange()
DPhoneNumberUtils.java3035 public CountryCallingCodeAndNewIndex(int countryCode, int newIndex) { in CountryCallingCodeAndNewIndex() argument
3036 this.countryCallingCode = countryCode; in CountryCallingCodeAndNewIndex()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DCivicLocation.java72 public CivicLocation(@Nullable byte[] civicTLVs, @Nullable String countryCode) { in CivicLocation() argument
73 this.mCountryCode = countryCode; in CivicLocation()
74 if (countryCode == null || countryCode.length() != COUNTRY_CODE_LENGTH) { in CivicLocation()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java217 String countryCode = null; in geoCountryCodeForMccMnc() local
219 countryCode = countryCodeForMccMncNoFallback(mccMnc); in geoCountryCodeForMccMnc()
221 if (TextUtils.isEmpty(countryCode)) { in geoCountryCodeForMccMnc()
223 countryCode = MccTable.countryCodeForMcc(mccMnc.mcc); in geoCountryCodeForMccMnc()
225 return countryCode; in geoCountryCodeForMccMnc()
/frameworks/base/core/java/android/util/
DTimeUtils.java99 public static @Nullable List<String> getTimeZoneIdsForCountryCode(@NonNull String countryCode) { in getTimeZoneIdsForCountryCode() argument
100 if (countryCode == null) { in getTimeZoneIdsForCountryCode()
105 timeZoneFinder.lookupCountryTimeZones(countryCode.toLowerCase()); in getTimeZoneIdsForCountryCode()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java94 private void sendCountryCodeChangedBroadcast(String countryCode) { in sendCountryCodeChangedBroadcast() argument
96 intent.putExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY, countryCode); in sendCountryCodeChangedBroadcast()
DSoftApManagerTest.java188 private SoftApManager createSoftApManager(SoftApModeConfiguration config, String countryCode) { in createSoftApManager() argument
196 countryCode, in createSoftApManager()
1914 SoftApModeConfiguration softApConfig, String countryCode) throws Exception { in startSoftApAndVerifyEnabled() argument
1938 mSoftApManager = createSoftApManager(softApConfig, countryCode); in startSoftApAndVerifyEnabled()
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java87 String countryCode = intent.getStringExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY);
91 NETWORK_COUNTRY_CHANGED, slotId, 0, countryCode).sendToTarget();
/frameworks/base/location/java/android/location/
DAddress.java267 public void setCountryCode(String countryCode) { in setCountryCode() argument
268 mCountryCode = countryCode; in setCountryCode()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DResponderLocationTest.java496 String countryCode = responderLocation.getCivicLocationCountryCode(); in testLcrTestCivicLocationAddress() local
500 assertEquals("US", countryCode); in testLcrTestCivicLocationAddress()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java352 String countryCode, in updateApChannelConfig() argument
364 && countryCode == null) { in updateApChannelConfig()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1306 public TelephoneBuilder setCountryCode(String countryCode) { in setCountryCode() argument
1307 return setStringArgument(TtsSpan.ARG_COUNTRY_CODE, countryCode); in setCountryCode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccProfile.java696 String countryCode = operator.substring(0, 3); in setExternalState() local
697 if (countryCode != null) { in setExternalState()
699 MccTable.countryCodeForMcc(countryCode)); in setExternalState()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...