Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCountryCode.java197 public static boolean isValid(String countryCode) { in isValid() argument
198 return countryCode != null && countryCode.length() == 2 in isValid()
199 && countryCode.chars().allMatch(Character::isLetterOrDigit); in isValid()
209 void onDriverCountryCodeChanged(String countryCode); in onDriverCountryCodeChanged() argument
279 public synchronized void setOverrideCountryCode(String countryCode) { in setOverrideCountryCode() 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()
[all …]
DSoftApManager.java306 String countryCode, in SoftApManager() argument
326 mCountryCode = countryCode; in SoftApManager()
580 public boolean updateCountryCode(@NonNull String countryCode) { in updateCountryCode() argument
584 mStateMachine.sendMessage(SoftApStateMachine.CMD_UPDATE_COUNTRY_CODE, countryCode); in updateCountryCode()
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()
[all …]
DScanOnlyModeImpl.java53 public boolean setCountryCode(String countryCode) { in setCountryCode() argument
54 return mWifiNative.setChipCountryCode(countryCode); in setCountryCode()
DWifiNative.java2258 public boolean setStaCountryCode(@NonNull String ifaceName, String countryCode) {
2259 if (mSupplicantStaIfaceHal.setCountryCode(ifaceName, countryCode)) {
2261 mCountryCodeChangeListener.onSetCountryCodeSucceeded(countryCode);
3402 public boolean setApCountryCode(@NonNull String ifaceName, String countryCode) {
3403 if (mWifiVendorHal.setApCountryCode(ifaceName, countryCode)) {
3405 mCountryCodeChangeListener.onSetCountryCodeSucceeded(countryCode);
3417 public boolean setChipCountryCode(String countryCode) {
3418 if (mWifiVendorHal.setChipCountryCode(countryCode)) {
3420 mCountryCodeChangeListener.onSetCountryCodeSucceeded(countryCode);
DWifiServiceImpl.java446 String countryCode = intent.getStringExtra( in checkAndStartWifi()
448 Log.d(TAG, "Country code changed to :" + countryCode); in checkAndStartWifi()
449 mCountryCode.setTelephonyCountryCodeAndUpdate(countryCode); in checkAndStartWifi()
1270 public void onDriverCountryCodeChanged(String countryCode) { in onDriverCountryCodeChanged() argument
1273 Log.i(TAG, "onDriverCountryCodeChanged " + countryCode); in onDriverCountryCodeChanged()
3398 public void setOverrideCountryCode(@NonNull String countryCode) {
3404 if (!WifiCountryCode.isValid(countryCode)) {
3406 + " code. But got countryCode " + countryCode
3411 .c(Binder.getCallingUid()).c(countryCode).flush();
3414 mWifiThreadRunner.post(() -> mCountryCode.setOverrideCountryCode(countryCode));
[all …]
DBaseWifiService.java270 public void setOverrideCountryCode(@NonNull String countryCode) { in setOverrideCountryCode() argument
280 public void setDefaultCountryCode(@NonNull String countryCode) { in setDefaultCountryCode() argument
DWifiVendorHal.java1968 public boolean setChipCountryCode(String countryCode) { in setChipCountryCode() argument
1969 if (countryCode == null) return boolResult(false); in setChipCountryCode()
1970 if (countryCode.length() != 2) return boolResult(false); in setChipCountryCode()
1973 code = NativeUtil.stringToByteArray(countryCode); in setChipCountryCode()
2024 public boolean setApCountryCode(@NonNull String ifaceName, String countryCode) { in setApCountryCode() argument
2025 if (countryCode == null) return boolResult(false); in setApCountryCode()
2026 if (countryCode.length() != 2) return boolResult(false); in setApCountryCode()
2029 code = NativeUtil.stringToByteArray(countryCode); in setApCountryCode()
DClientModeDefaults.java192 default boolean setCountryCode(String countryCode) { in setCountryCode() argument
DClientMode.java225 boolean setCountryCode(String countryCode); in setCountryCode() argument
/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/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/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/Wifi/framework/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()
/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/compat/
DPhoneNumberFormattingTextWatcherCompat.java21 public static PhoneNumberFormattingTextWatcher newInstance(String countryCode) { in newInstance() argument
23 return new PhoneNumberFormattingTextWatcher(countryCode); in newInstance()
/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/dialpadview/
DDialpadFragment.java549 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()
/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/dialer/assisteddialing/
DCountryCodeProvider.java61 public boolean isSupportedCountryCode(String countryCode) { in isSupportedCountryCode() argument
62 return supportedCountryCodes.contains(countryCode); in isSupportedCountryCode()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsHeaderViewHolder.java129 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()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherApBandPreferenceController.java129 final String countryCode = mWifiManager.getCountryCode(); in is5GhzBandSupported() local
130 if (!mWifiManager.is5GHzBandSupported() || countryCode == null) { in is5GhzBandSupported()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceController.java160 String countryCode = getCarWifiManager().getCountryCode(); in is5GhzBandSupported() local
161 return getCarWifiManager().is5GhzBandSupported() && countryCode != null; in is5GhzBandSupported()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java96 public void answer(WifiSettingsConfigStore.Key<String> key, Object countryCode) { in setUp()
98 .thenReturn((String) countryCode); in setUp()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DResponderLocationTest.java496 String countryCode = responderLocation.getCivicLocationCountryCode(); in testLcrTestCivicLocationAddress() local
500 assertEquals("US", countryCode); in testLcrTestCivicLocationAddress()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java701 String countryCode = tm.getNetworkCountryIso(i); in isCurrentCountrySupported() local
702 if (em.isSupportedCountry(countryCode)) { in isCurrentCountrySupported()
703 Log.i(TAG, "isCurrentCountrySupported: eSIM is supported in " + countryCode); in isCurrentCountrySupported()

12