Home
last modified time | relevance | path

Searched refs:getCountryCode (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkCountryCodeTest.java190 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(DEFAULT_COUNTRY_CODE); in initialize_defaultCountryCodeIsUsed()
199 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_US); in initialize_oemCountryCodeAvailable_oemCountryCodeIsUsed()
226 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_US); in locationCountryCode_locationChanged_locationCountryCodeIsUsed()
241 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE_US); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
250 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_CN); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
262 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_US); in wifiCountryCode_wifiCountryCodeIsActive_wifiCountryCodeIsUsed()
276 assertThat(mThreadNetworkCountryCode.getCountryCode()) in wifiCountryCode_wifiDefaultCountryCodeIsActive_wifiCountryCodeIsNotUsed()
290 assertThat(mThreadNetworkCountryCode.getCountryCode()) in wifiCountryCode_wifiCountryCodeIsInactive_defaultCountryCodeIsUsed()
317 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_CN); in telephonyCountryCode_bothTelephonyAndLocationAvailable_telephonyCodeIsUsed()
346 assertThat(mThreadNetworkCountryCode.getCountryCode()).isEqualTo(TEST_COUNTRY_CODE_US); in telephonyCountryCode_locationIsAvailable_lastKnownTelephonyCodeIsUsed()
[all …]
DThreadNetworkShellCommandTest.java107 when(mCountryCode.getCountryCode()).thenReturn("US"); in getCountryCode_testingPermissionIsChecked()
123 when(mCountryCode.getCountryCode()).thenReturn("US"); in getCountryCode_currentCountryCodePrinted()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java318 assertEquals(mTelephonyCountryCode, mWifiCountryCode.getCountryCode()); in telephonyCountryCodeChangeAfterSupplicantStop()
433 assertEquals(mDefaultCountryCode, mWifiCountryCode.getCountryCode()); in resetCountryCodeWhenOutOfService()
435 assertEquals(mTelephonyCountryCode, mWifiCountryCode.getCountryCode()); in resetCountryCodeWhenOutOfService()
438 assertEquals(mDefaultCountryCode, mWifiCountryCode.getCountryCode()); in resetCountryCodeWhenOutOfService()
455 assertEquals(mDefaultCountryCode, mWifiCountryCode.getCountryCode()); in doNotResetCountryCodeWhenOutOfService()
457 assertEquals(mTelephonyCountryCode, mWifiCountryCode.getCountryCode()); in doNotResetCountryCodeWhenOutOfService()
460 assertEquals(mTelephonyCountryCode, mWifiCountryCode.getCountryCode()); in doNotResetCountryCodeWhenOutOfService()
672 assertEquals(softApModeConfigCaptor.getValue().getCountryCode(), mTelephonyCountryCode); in testCountryCodeChangedWhenSoftApManagerActiveAndForceSoftApRestart()
715 when(mNetworkDetail1.getCountryCode()).thenReturn(countryCode); in setupScanDetails()
716 when(mNetworkDetail2.getCountryCode()).thenReturn(countryCode); in setupScanDetails()
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkCountryCode.java163 public String getCountryCode() { in getCountryCode() method in ThreadNetworkCountryCode.CountryCodeInfo
280 String countryCode = addresses.get(0).getCountryCode(); in geocodeListener()
519 THREAD_COUNTRY_CODE.key, countryCodeInfo.getCountryCode()); in newOperationReceiver()
548 Log.i(TAG, "Ignoring already set country code " + countryCodeInfo.getCountryCode());
554 countryCodeInfo.getCountryCode().toUpperCase(Locale.ROOT),
559 public synchronized String getCountryCode() {
560 return mCurrentCountryCodeInfo.getCountryCode();
DThreadNetworkShellCommand.java135 return getCountryCode(); in onCommand()
245 private int getCountryCode() { in getCountryCode() method in ThreadNetworkShellCommand
247 getOutputWriter().println("Thread country code = " + mCountryCode.getCountryCode()); in getCountryCode()
DThreadNetworkService.java64 mContext, mPersistentSettings, () -> mCountryCode.getCountryCode()); in onBootPhase()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java134 if (currentAddress != null && currentAddress.getCountryCode() != null) { in computeAddress()
136 currentCountry = checkNull(currentAddress.getCountryCode()); in computeAddress()
146 String addr1CountryCode = checkNull(addr1.getCountryCode()); in computeAddress()
147 String addr2CountryCode = checkNull(addr2.getCountryCode()); in computeAddress()
342 writeUTF(dos, address.getCountryCode()); in lookupAddress()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DCarWifiManager.java193 public String getCountryCode() { in getCountryCode() method in CarWifiManager
194 return mWifiManager.getCountryCode(); in getCountryCode()
DWifiTetherApBandPreferenceController.java201 String countryCode = getCarWifiManager().getCountryCode(); in is5GhzBandSupported()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbServiceCoreTest.java375 when(mUwbCountryCode.getCountryCode()).thenReturn(countryCode); in enableUwb()
398 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in enableUwbWithCountryCodeChangedCallback()
435 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in testCachedSpecificationResetOnCountryCodeChange()
525 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in testEnableWithCountryCode_success()
549 when(mUwbCountryCode.getCountryCode()).thenReturn(null); in testEnableWithCountryCode_statusRegulationUwbOff()
614 when(mUwbCountryCode.getCountryCode()).thenReturn("JP"); in testCountryCodeChange_fromValidCountry_statusRegulationUwbOff()
640 when(mUwbCountryCode.getCountryCode()).thenReturn(null); in testEnableWithCountryCode_statusFailed()
732 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in testEnableWhenInitializeDelayed()
981 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in testToggleMultipleEnableDisable()
1036 when(mUwbCountryCode.getCountryCode()).thenReturn(VALID_COUNTRY_CODE); in testToggleMultipleEnableDisableQuickly()
[all …]
DUwbCountryCodeTest.java266 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testSetCountryCodeFromLocation()
398 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testChangeInLocationCountryCode()
424 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testChangeInTelephonyCountryCodeWhenWifiAndLocationCountryCodeAvailable()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherMaximizeCompatibilityPreferenceControllerTest.java103 doReturn(null).when(mWifiManager).getCountryCode(); in updateDisplay_getNullCountryCode_setPreferenceDisabled()
133 doReturn("US").when(mWifiManager).getCountryCode(); in updateDisplay_supported5GHzBandAndCountryCodeIsNotNull_setPreferenceEnabled()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApModeConfiguration.java76 public String getCountryCode() { in getCountryCode() method in SoftApModeConfiguration
DWifiCountryCode.java469 String countryCode = networkDetail.getCountryCode(); in findCountryCodeFromScanResults()
564 public synchronized String getCountryCode() { in getCountryCode() method in WifiCountryCode
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DNumberTransformer.java93 .setTransformedNumberCountryCallingCode(phoneNumber.getCountryCode()) in doAssistedDialingTransformation()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DOtDaemonController.java78 public String getCountryCode() { in getCountryCode() method in OtDaemonController
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarWifiManager.java120 protected String getCountryCode() { in getCountryCode() method in ShadowCarWifiManager
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherMaximizeCompatibilityPreferenceController.java94 if (!mWifiManager.is5GHzBandSupported() || mWifiManager.getCountryCode() == null) { in is5GhzBandSupported()
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java109 if (util.parse(dataPart1, null).getCountryCode() == 1) { in shouldCollapsePhoneNumbers()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbCountryCode.java176 String countryCode = addresses.get(0).getCountryCode(); in setCountryCodeFromGeocodingLocation()
432 public String getCountryCode() { in getCountryCode() method in UwbCountryCode
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java161 builder.setCountryCode(Integer.toString(phoneNumber.getCountryCode())); in createTtsSpanLollipop()
/packages/apps/Contacts/src/com/android/contacts/
DMoreContactUtils.java107 if (util.parse(dataPart1, null).getCountryCode() == 1) { in shouldCollapsePhoneNumbers()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimCard.java113 public String getCountryCode() { in getCountryCode() method in SimCard
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApCapability.java204 public String getCountryCode() { in getCountryCode() method in SoftApCapability
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java265 return addresses.get(0).getCountryCode(); in doInBackground()

12