/aosp12/frameworks/base/telephony/common/com/android/internal/telephony/ |
H A D | SmsNumberUtils.java | 113 public int countryCode; field in SmsNumberUtils.NumberEntry 205 int countryCode = numberEntry.countryCode; in formatNumber() local 423 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan() 427 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan() 435 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan() 443 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan() 451 numberEntry.countryCode = countryCode; in checkInternationalNumberPlan() 486 return countryCode; in getCountryCode() 526 int countryCode = numberEntry.countryCode; in inExceptionListForNpCcAreaLocal() local 528 && (countryCode == 7 || countryCode == 20 in inExceptionListForNpCcAreaLocal() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiCountryCode.java | 197 public static boolean isValid(String countryCode) { in isValid() argument 198 return countryCode != null && countryCode.length() == 2 in isValid() 209 void onDriverCountryCodeChanged(String countryCode); in onDriverCountryCodeChanged() argument 280 if (TextUtils.isEmpty(countryCode)) { in setOverrideCountryCode() 285 mOverrideCountryCode = countryCode.toUpperCase(Locale.US); in setOverrideCountryCode() 311 private void setTelephonyCountryCode(String countryCode) { in setTelephonyCountryCode() argument 312 Log.d(TAG, "Set telephony country code to: " + countryCode); in setTelephonyCountryCode() 316 if (TextUtils.isEmpty(countryCode)) { in setTelephonyCountryCode() 335 setTelephonyCountryCode(countryCode); in setTelephonyCountryCodeAndUpdate() 383 if (TextUtils.isEmpty(countryCode)) { in setDefaultCountryCode() [all …]
|
H A D | ScanOnlyModeImpl.java | 53 public boolean setCountryCode(String countryCode) { in setCountryCode() argument 54 return mWifiNative.setChipCountryCode(countryCode); in setCountryCode()
|
H A D | SoftApManager.java | 306 String countryCode, in SoftApManager() argument 326 mCountryCode = countryCode; in SoftApManager() 580 public boolean updateCountryCode(@NonNull String countryCode) { in updateCountryCode() argument 946 String countryCode = (String) message.obj; in processMessage() local 947 if (!TextUtils.isEmpty(countryCode)) { in processMessage() 948 mCountryCode = countryCode; in processMessage() 1522 String countryCode = (String) message.obj; in processMessage() local 1523 if (!TextUtils.isEmpty(countryCode) in processMessage() 1524 && !TextUtils.equals(mCountryCode, countryCode) in processMessage() 1528 + mCountryCode + " to " + countryCode); in processMessage() local [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/smartdial/util/ |
H A D | SmartDialPrefix.java | 233 String countryCode = ""; in parsePhoneNumber() local 245 countryCode = number.substring(1, i); in parsePhoneNumber() 246 if (isValidCountryCode(countryCode)) { in parsePhoneNumber() 259 countryCode = "1"; in parsePhoneNumber() 270 if (countryCode.equals("") && normalizedNumber.length() == 10) { in parsePhoneNumber() 276 } else if (countryCode.equals("1") && normalizedNumber.length() == 11) { in parsePhoneNumber() 290 return new PhoneNumberTokens(countryCode, countryCodeOffset, nanpNumberOffset); in parsePhoneNumber() 294 private static boolean isValidCountryCode(String countryCode) { in isValidCountryCode() argument 298 return countryCodes.contains(countryCode); in isValidCountryCode() 588 final String countryCode; field in SmartDialPrefix.PhoneNumberTokens [all …]
|
/aosp12/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneData.java | 386 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 …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/ |
H A D | AssistedDialingSettingFragment.java | 48 CharSequence countryDisplayName, CharSequence countryCode) { in create() argument 50 countryDisplayName, countryCode); in create() 57 abstract CharSequence countryCode(); in countryCode() method in AssistedDialingSettingFragment.DisplayNameAndCountryCodeTuple 132 if (countryCodeProvider.isSupportedCountryCode(tuple.countryCode().toString())) { in updateCountryChoices() 134 newValues.add(tuple.countryCode()); in updateCountryChoices()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | ReverseGeocoder.java | 193 String countryCode = addr1CountryCode; in computeAddress() local 195 if (!countryCode.equals(currentCountry)) { in computeAddress() 196 closestCommonLocation += ", " + adminArea + " " + countryCode; in computeAddress() 245 String countryCode = addr1CountryCode; in computeAddress() local 246 if (!countryCode.equals(currentCountry)) { in computeAddress() 247 if (countryCode != null && countryCode.length() > 0) { in computeAddress() 248 closestCommonLocation += " " + countryCode; in computeAddress()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/compat/ |
H A D | PhoneNumberFormattingTextWatcherCompat.java | 21 public static PhoneNumberFormattingTextWatcher newInstance(String countryCode) { in newInstance() argument 23 return new PhoneNumberFormattingTextWatcher(countryCode); in newInstance()
|
/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
H A D | UniqueZonesVisualizer.java | 66 for (String countryCode : countryCodes) { in main() 67 zonesCalculator.createGraphvizFile(countryCode, startInclusive, in main() 68 endExclusive, compressTree, outputDir + "/" + countryCode + ".gv"); in main()
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberFormattingTextWatcher.java | 71 public PhoneNumberFormattingTextWatcher(String countryCode) { in PhoneNumberFormattingTextWatcher() argument 72 if (countryCode == null) throw new IllegalArgumentException(); in PhoneNumberFormattingTextWatcher() 73 mFormatter = PhoneNumberUtil.getInstance().getAsYouTypeFormatter(countryCode); in PhoneNumberFormattingTextWatcher()
|
H A D | PhoneNumberRange.java | 72 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()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | PhoneNumberFormatter.java | 40 String countryCode, TextView textView, boolean formatAfterWatcherSet) { in TextWatcherLoadAsyncTask() argument 41 mCountryCode = countryCode; in TextWatcherLoadAsyncTask()
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
H A D | CivicLocation.java | 72 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ |
H A D | CountryCodeProvider.java | 61 public boolean isSupportedCountryCode(String countryCode) { in isSupportedCountryCode() argument 62 return supportedCountryCodes.contains(countryCode); in isSupportedCountryCode()
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
H A D | TopRow.java | 197 String countryCode = in getLabelForDialing() local 205 countryCode, in getLabelForDialing() 220 String countryCode = in getLabelForDialing() local 224 countryCode, in getLabelForDialing()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | SimCard.java | 73 CharSequence displayName, String phoneNumber, String countryCode) { in SimCard() argument 79 mCountryCode = countryCode != null ? countryCode.toUpperCase(Locale.US) : null; in SimCard()
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
H A D | WifiTetherApBandPreferenceController.java | 129 final String countryCode = mWifiManager.getCountryCode(); in is5GhzBandSupported() local 130 if (!mWifiManager.is5GHzBandSupported() || countryCode == null) { in is5GhzBandSupported()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
H A D | WifiTetherApBandPreferenceController.java | 160 String countryCode = getCarWifiManager().getCountryCode(); in is5GhzBandSupported() local 161 return getCarWifiManager().is5GhzBandSupported() && countryCode != null; in is5GhzBandSupported()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | MccTable.java | 217 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
H A D | CallDetailsHeaderViewHolder.java | 129 private void updateAssistedDialingText(Integer countryCode) { in updateAssistedDialingText() argument 132 if (countryCode <= 0) { in updateAssistedDialingText() 141 R.string.assisted_dialing_country_code_entry, String.valueOf(countryCode))); in updateAssistedDialingText()
|
/aosp12/system/connectivity/wificond/aidl/android/net/wifi/nl80211/ |
H A D | IWificondEventCallback.aidl | 24 oneway void OnRegDomainChanged(@utf8InCpp String countryCode); in OnRegDomainChanged() argument
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
H A D | DialpadFragment.java | 549 public static void setCurrentCountryIsoForTesting(String countryCode) { in setCurrentCountryIsoForTesting() argument 550 currentCountryIsoForTesting = Optional.of(countryCode); in setCurrentCountryIsoForTesting() 1926 public DialerPhoneNumberFormattingTextWatcher doInBackground(@Nullable String countryCode) { in doInBackground() argument 1927 return new DialerPhoneNumberFormattingTextWatcher(countryCode); in doInBackground() 2054 private final String countryCode; field in DialpadFragment.DialerPhoneNumberFormattingTextWatcher 2056 DialerPhoneNumberFormattingTextWatcher(String countryCode) { in DialerPhoneNumberFormattingTextWatcher() argument 2057 super(countryCode); in DialerPhoneNumberFormattingTextWatcher() 2058 this.countryCode = countryCode; in DialerPhoneNumberFormattingTextWatcher() 2065 if (!Ascii.toUpperCase(countryCode).equals("AR")) { in afterTextChanged()
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 128 public static @Nullable List<String> getTimeZoneIdsForCountryCode(@NonNull String countryCode) { in getTimeZoneIdsForCountryCode() argument 129 if (countryCode == null) { in getTimeZoneIdsForCountryCode() 134 timeZoneFinder.lookupCountryTimeZones(countryCode.toLowerCase()); in getTimeZoneIdsForCountryCode()
|
/aosp12/frameworks/base/services/core/java/com/android/server/emergency/ |
H A D | EmergencyAffordanceService.java | 87 String countryCode = intent.getStringExtra(TelephonyManager.EXTRA_NETWORK_COUNTRY); 91 NETWORK_COUNTRY_CHANGED, slotId, 0, countryCode).sendToTarget();
|