/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbCountryCode.java | 121 public String countryCode; field in UwbCountryCode.TelephonyCountryCodeSlotInfo 128 + ", countryCode: " + countryCode in toString() 163 public void onActiveCountryCodeChanged(@NonNull String countryCode) { in onActiveCountryCodeChanged() argument 164 setWifiCountryCode(countryCode); in onActiveCountryCodeChanged() 176 String countryCode = addresses.get(0).getCountryCode(); in setCountryCodeFromGeocodingLocation() 177 mHandler.post(() -> setLocationCountryCode(countryCode)); in setCountryCodeFromGeocodingLocation() 210 String countryCode = intent.getStringExtra( in initialize() 214 Log.d(TAG, "Telephony Country code changed to: " + countryCode); in initialize() 216 slotIdx, countryCode, lastKnownCountryCode); in initialize() 251 String countryCode; in initialize() local [all …]
|
D | UwbServiceCore.java | 502 public void onCountryCodeChanged(int setCountryCodeStatus, @Nullable String countryCode) { in onCountryCodeChanged() argument 503 Log.i(TAG, "Received onCountryCodeChanged() with countryCode = " + countryCode); in onCountryCodeChanged() 512 countryCode, in onCountryCodeChanged() local 868 private int computeAdapterState(String countryCode, Optional<Integer> setCountryCodeStatus) { in computeAdapterState() argument 879 if (!UwbCountryCode.isValid(countryCode) in computeAdapterState() 1184 String countryCode = setCountryCodeResult.second; in initializeHw() local 1185 Log.i(TAG, "Current country code = " + countryCode); in initializeHw() 1188 countryCode, in initializeHw() local 1301 String countryCode, Optional<Integer> setCountryCodeStatus) { in computeAndNotifyAdapterStateChange() argument 1304 if (!UwbCountryCode.isValid(countryCode) in computeAndNotifyAdapterStateChange() [all …]
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkCountryCode.java | 140 String countryCode, @CountryCodeSource String countryCodeSource, Instant instant) { in CountryCodeInfo() argument 141 if (!isValidCountryCode(countryCode)) { in CountryCodeInfo() 142 throw new IllegalArgumentException("Country code is invalid: " + countryCode); in CountryCodeInfo() 145 mCountryCode = countryCode; in CountryCodeInfo() 159 public CountryCodeInfo(String countryCode, @CountryCodeSource String countryCodeSource) { in CountryCodeInfo() argument 160 this(countryCode, countryCodeSource, Instant.now()); in CountryCodeInfo() 190 public String countryCode; field in ThreadNetworkCountryCode.TelephonyCountryCodeSlotInfo 199 + countryCode in toString() 280 String countryCode = addresses.get(0).getCountryCode(); in geocodeListener() local 282 if (isValidCountryCode(countryCode)) { in geocodeListener() [all …]
|
D | ThreadNetworkShellCommand.java | 68 ThreadNetworkCountryCode countryCode) { in ThreadNetworkShellCommand() argument 71 mCountryCode = countryCode; in ThreadNetworkShellCommand() 229 String countryCode = getNextArgRequired(); in forceCountryCode() local 230 if (!ThreadNetworkCountryCode.isValidCountryCode(countryCode)) { in forceCountryCode() 234 + countryCode in forceCountryCode() 238 mCountryCode.setOverrideCountryCode(countryCode); in forceCountryCode()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCountryCode.java | 246 public static boolean isValid(String countryCode) { in isValid() argument 247 return countryCode != null && countryCode.length() == 2 in isValid() 248 && countryCode.chars().allMatch(Character::isLetterOrDigit); in isValid() 258 default void onCountryCodeChangePending(@NonNull String countryCode) {}; in onCountryCodeChangePending() argument 263 void onDriverCountryCodeChanged(String countryCode); in onDriverCountryCodeChanged() argument 358 public synchronized void setOverrideCountryCode(String countryCode) { in setOverrideCountryCode() argument 359 if (TextUtils.isEmpty(countryCode)) { in setOverrideCountryCode() 365 if (TextUtils.equals("00", countryCode)) { in setOverrideCountryCode() 366 countryCode = mWorldModeCountryCode; in setOverrideCountryCode() 368 mOverrideCountryCode = countryCode.toUpperCase(Locale.US); in setOverrideCountryCode() [all …]
|
D | ScanOnlyModeImpl.java | 53 public boolean setCountryCode(String countryCode) { in setCountryCode() argument 54 return mWifiNative.setChipCountryCode(countryCode); in setCountryCode()
|
D | SoftApModeConfiguration.java | 51 SoftApCapability capability, @Nullable String countryCode, in SoftApModeConfiguration() argument 60 mCountryCode = countryCode; in SoftApModeConfiguration()
|
D | AfcManager.java | 269 public void onCountryCodeChange(String countryCode) { in onCountryCodeChange() argument 270 if (!mWifiGlobals.isAfcSupportedOnDevice() || countryCode.equals(mLastKnownCountryCode)) { in onCountryCodeChange() 273 mLastKnownCountryCode = countryCode; in onCountryCodeChange() 274 List<String> afcServerUrlsForCountry = mWifiGlobals.getAfcServerUrlsForCountry(countryCode); in onCountryCodeChange()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/ |
D | RegulatoryInfo.java | 73 public final String countryCode; field in RegulatoryInfo 120 String countryCode = new String(countryCodeBytes, StandardCharsets.UTF_8); in fromBytes() local 122 if (!UwbCountryCode.isValid(countryCode)) { in fromBytes() 145 countryCode, in fromBytes() 168 info.countryCode.getBytes(StandardCharsets.UTF_8), in toBytes() 236 String countryCode, in RegulatoryInfo() argument 241 this.countryCode = countryCode; in RegulatoryInfo() 254 .append(countryCode) in toString()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/ |
D | WifiApIface.java | 92 public boolean setCountryCode(String countryCode) { in setCountryCode() argument 93 if (countryCode == null || countryCode.length() != 2) { in setCountryCode() 94 Log.e(TAG, "Invalid country code " + countryCode); in setCountryCode() 98 final byte[] code = NativeUtil.stringToByteArray(countryCode); in setCountryCode() 102 Log.e(TAG, "Invalid country code " + countryCode + ", error: " + e); in setCountryCode()
|
D | WifiApIfaceHidlImpl.java | 74 public boolean setCountryCode(byte[] countryCode) { in setCountryCode() argument 77 () -> setCountryCodeInternal(methodStr, countryCode)); in setCountryCode() 159 private boolean setCountryCodeInternal(String methodStr, byte[] countryCode) { in setCountryCodeInternal() argument 161 WifiStatus status = mWifiApIface.setCountryCode(countryCode); in setCountryCodeInternal()
|
D | WifiChip.java | 881 public boolean setCountryCode(String countryCode) { in setCountryCode() argument 882 if (countryCode == null || countryCode.length() != 2) { in setCountryCode() 883 Log.e(TAG, "Invalid country code " + countryCode); in setCountryCode() 887 final byte[] code = NativeUtil.stringToByteArray(countryCode); in setCountryCode() 891 Log.e(TAG, "Invalid country code " + countryCode + ", error: " + e); in setCountryCode()
|
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/ |
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 …]
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/ |
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()
|
/packages/modules/Uwb/indev_uwb_adaptation/java/com/android/server/uwb/indev/ |
D | UwbServiceCore.java | 218 public boolean setCountryCode(byte[] countryCode) { in setCountryCode() argument 219 Log.i(TAG, "setCountryCode: " + new String(countryCode)); in setCountryCode() 220 return nativeSetCountryCode(countryCode); in setCountryCode() 266 private native boolean nativeSetCountryCode(byte[] countryCode); in nativeSetCountryCode() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
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()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | PhoneNumberFormattingTextWatcherCompat.java | 21 public static PhoneNumberFormattingTextWatcher newInstance(String countryCode) { in newInstance() argument 23 return new PhoneNumberFormattingTextWatcher(countryCode); in newInstance()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerPhoneNumberUtils.java | 176 @NonNull String phoneNumberNormalized, @Nullable String countryCode) { in createFormatNational() argument 179 if (TextUtils.isEmpty(countryCode)) { in createFormatNational() 182 return PhoneNumberUtils.formatNumber(phoneNumberNormalized, countryCode); in createFormatNational()
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | CivicLocation.java | 73 public CivicLocation(@Nullable byte[] civicTLVs, @Nullable String countryCode) { in CivicLocation() argument 74 this.mCountryCode = countryCode; in CivicLocation() 75 if (countryCode == null || countryCode.length() != COUNTRY_CODE_LENGTH) { in CivicLocation()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | PhoneNumberFormatter.java | 40 String countryCode, TextView textView, boolean formatAfterWatcherSet) { in TextWatcherLoadAsyncTask() argument 41 mCountryCode = countryCode; in TextWatcherLoadAsyncTask()
|
/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
D | TopRow.java | 197 String countryCode = in getLabelForDialing() local 205 countryCode, in getLabelForDialing() 220 String countryCode = in getLabelForDialing() local 224 countryCode, in getLabelForDialing()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 73 CharSequence displayName, String phoneNumber, String countryCode) { in SimCard() argument 79 mCountryCode = countryCode != null ? countryCode.toUpperCase(Locale.US) : null; in SimCard()
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ |
D | CountryCodeProvider.java | 61 public boolean isSupportedCountryCode(String countryCode) { in isSupportedCountryCode() argument 62 return supportedCountryCodes.contains(countryCode); in isSupportedCountryCode()
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanHelper.java | 253 private static void updateLastKnownCountryCode(String countryCode) { in updateLastKnownCountryCode() argument 258 editor.putString(LAST_KNOWN_COUNTRY_CODE_KEY, countryCode); in updateLastKnownCountryCode() 260 Log.d(TAG, "Update the last known country code in sharedPrefs " + countryCode); in updateLastKnownCountryCode()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/jni/ |
D | NativeUwbManager.java | 381 public byte setCountryCode(byte[] countryCode) { in setCountryCode() argument 382 Log.i(TAG, "setCountryCode: " + new String(countryCode)); in setCountryCode() 386 byte status = nativeSetCountryCode(countryCode, chipId); in setCountryCode() 606 private native byte nativeSetCountryCode(byte[] countryCode, String chipId); in nativeSetCountryCode() argument
|