Home
last modified time | relevance | path

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

123

/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbCountryCode.java121 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 …]
DUwbServiceCore.java502 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/
DThreadNetworkCountryCode.java140 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 …]
DThreadNetworkShellCommand.java68 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/
DWifiCountryCode.java246 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 …]
DScanOnlyModeImpl.java53 public boolean setCountryCode(String countryCode) { in setCountryCode() argument
54 return mWifiNative.setChipCountryCode(countryCode); in setCountryCode()
DSoftApModeConfiguration.java51 SoftApCapability capability, @Nullable String countryCode, in SoftApModeConfiguration() argument
60 mCountryCode = countryCode; in SoftApModeConfiguration()
DAfcManager.java269 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/
DRegulatoryInfo.java73 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/
DWifiApIface.java92 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()
DWifiApIfaceHidlImpl.java74 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()
DWifiChip.java881 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/
DSmartDialPrefix.java233 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/
DAssistedDialingSettingFragment.java48 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/
DUwbServiceCore.java218 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/
DReverseGeocoder.java193 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/
DPhoneNumberFormattingTextWatcherCompat.java21 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/
DContactsIndexerPhoneNumberUtils.java176 @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/
DCivicLocation.java73 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/
DPhoneNumberFormatter.java40 String countryCode, TextView textView, boolean formatAfterWatcherSet) { in TextWatcherLoadAsyncTask() argument
41 mCountryCode = countryCode; in TextWatcherLoadAsyncTask()
/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java197 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/
DSimCard.java73 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/
DCountryCodeProvider.java61 public boolean isSupportedCountryCode(String countryCode) { in isSupportedCountryCode() argument
62 return supportedCountryCodes.contains(countryCode); in isSupportedCountryCode()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanHelper.java253 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/
DNativeUwbManager.java381 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

123