/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkCountryCodeTest.java | 190 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 …]
|
D | ThreadNetworkShellCommandTest.java | 107 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/ |
D | WifiCountryCodeTest.java | 318 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/ |
D | ThreadNetworkCountryCode.java | 163 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();
|
D | ThreadNetworkShellCommand.java | 135 return getCountryCode(); in onCommand() 245 private int getCountryCode() { in getCountryCode() method in ThreadNetworkShellCommand 247 getOutputWriter().println("Thread country code = " + mCountryCode.getCountryCode()); in getCountryCode()
|
D | ThreadNetworkService.java | 64 mContext, mPersistentSettings, () -> mCountryCode.getCountryCode()); in onBootPhase()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 134 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/ |
D | CarWifiManager.java | 193 public String getCountryCode() { in getCountryCode() method in CarWifiManager 194 return mWifiManager.getCountryCode(); in getCountryCode()
|
D | WifiTetherApBandPreferenceController.java | 201 String countryCode = getCarWifiManager().getCountryCode(); in is5GhzBandSupported()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceCoreTest.java | 375 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 …]
|
D | UwbCountryCodeTest.java | 266 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/ |
D | WifiTetherMaximizeCompatibilityPreferenceControllerTest.java | 103 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/ |
D | SoftApModeConfiguration.java | 76 public String getCountryCode() { in getCountryCode() method in SoftApModeConfiguration
|
D | WifiCountryCode.java | 469 String countryCode = networkDetail.getCountryCode(); in findCountryCodeFromScanResults() 564 public synchronized String getCountryCode() { in getCountryCode() method in WifiCountryCode
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ |
D | NumberTransformer.java | 93 .setTransformedNumberCountryCallingCode(phoneNumber.getCountryCode()) in doAssistedDialingTransformation()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | OtDaemonController.java | 78 public String getCountryCode() { in getCountryCode() method in OtDaemonController
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowCarWifiManager.java | 120 protected String getCountryCode() { in getCountryCode() method in ShadowCarWifiManager
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherMaximizeCompatibilityPreferenceController.java | 94 if (!mWifiManager.is5GHzBandSupported() || mWifiManager.getCountryCode() == null) { in is5GhzBandSupported()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | MoreContactUtils.java | 109 if (util.parse(dataPart1, null).getCountryCode() == 1) { in shouldCollapsePhoneNumbers()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbCountryCode.java | 176 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/ |
D | PhoneNumberUtilsCompat.java | 161 builder.setCountryCode(Integer.toString(phoneNumber.getCountryCode())); in createTtsSpanLollipop()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | MoreContactUtils.java | 107 if (util.parse(dataPart1, null).getCountryCode() == 1) { in shouldCollapsePhoneNumbers()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 113 public String getCountryCode() { in getCountryCode() method in SimCard
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApCapability.java | 204 public String getCountryCode() { in getCountryCode() method in SoftApCapability
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 265 return addresses.get(0).getCountryCode(); in doInBackground()
|