/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbCountryCodeTest.java | 76 private static final String TEST_COUNTRY_CODE = "US"; field in UwbCountryCodeTest 170 when(mTelephonyManager.getNetworkCountryIso(anyInt())).thenReturn(TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephony() 173 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephony() 174 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephony() 229 verify(mListener, never()).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testSkipWhenExceptionThrownInInitializeCountryCodeFromTelephony() 234 when(mTelephonyManager.getNetworkCountryIso(anyInt())).thenReturn(TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyVerifyListener() 237 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyVerifyListener() 238 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyVerifyListener() 243 when(mTelephonyManager.getNetworkCountryIso(anyInt())).thenReturn(TEST_COUNTRY_CODE); in testSetCountryCodeFromTelephony() 246 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromTelephony() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SoftApManagerTest.java | 128 private static final String TEST_COUNTRY_CODE = "TestCountry"; field in SoftApManagerTest 362 TEST_INTERFACE_NAME, TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT))) in setUp() 446 mTestSoftApCapability.setCountryCode(TEST_COUNTRY_CODE); in setUp() 491 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithoutConfig() 503 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithConfig() 515 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithUserApproval() 527 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithUserRejection() 551 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithUserApprovalSkippedForTethering() 569 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithHiddenSsidTrueInConfig() 586 mTestSoftApCapability, TEST_COUNTRY_CODE, TEST_TETHERING_REQUEST); in startSoftApWithPassphraseInConfig() [all …]
|
D | WifiCountryCodeTest.java | 79 private static final String TEST_COUNTRY_CODE = "JP"; field in WifiCountryCodeTest 166 mScanDetails = setupScanDetails(TEST_COUNTRY_CODE); in setUp() 525 mWifiCountryCode.setDefaultCountryCode(TEST_COUNTRY_CODE); in setDefaultCountryCode() 528 verify(mClientModeManager).setCountryCode(eq(TEST_COUNTRY_CODE)); in setDefaultCountryCode() 529 assertEquals(TEST_COUNTRY_CODE, mWifiCountryCode.getCurrentDriverCountryCode()); in setDefaultCountryCode() 530 verify(mSettingsConfigStore).put(eq(WIFI_DEFAULT_COUNTRY_CODE), eq(TEST_COUNTRY_CODE)); in setDefaultCountryCode() 531 assertEquals(TEST_COUNTRY_CODE, mSettingsConfigStore.get(WIFI_DEFAULT_COUNTRY_CODE)); in setDefaultCountryCode() 679 mWifiCountryCode.setOverrideCountryCode(TEST_COUNTRY_CODE); in testSetOverrideCountryCodeAndOnCountryCodeChangePending() 680 verify(mExternalChangeListener).onCountryCodeChangePending(TEST_COUNTRY_CODE); in testSetOverrideCountryCodeAndOnCountryCodeChangePending() 732 assertEquals(TEST_COUNTRY_CODE, mWifiCountryCode.getCountryCode()); in testUpdateountryCodeGenericEnabled()
|
D | WifiServiceImplTest.java | 319 private static final String TEST_COUNTRY_CODE = "US"; field in WifiServiceImplTest 9782 mWifiServiceImpl.setOverrideCountryCode(TEST_COUNTRY_CODE); in testSetOverrideCountryCodeThrowsSecurityExceptionOnMissingPermissions() 9793 mWifiServiceImpl.setOverrideCountryCode(TEST_COUNTRY_CODE); in testSetOverrideCountryCode() 9795 verify(mWifiCountryCode).setOverrideCountryCode(TEST_COUNTRY_CODE); in testSetOverrideCountryCode() 9836 mWifiServiceImpl.setDefaultCountryCode(TEST_COUNTRY_CODE); in testSetDefaultCountryCodeThrowsSecurityExceptionOnMissingPermissions() 9847 mWifiServiceImpl.setDefaultCountryCode(TEST_COUNTRY_CODE); in testSetDefaultCountryCode() 9849 verify(mWifiCountryCode).setDefaultCountryCode(TEST_COUNTRY_CODE); in testSetDefaultCountryCode() 10056 when(mWifiCountryCode.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp() 10066 .thenReturn(TEST_COUNTRY_CODE); in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp() 10076 when(mWifiCountryCode.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp() [all …]
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadPersistentSettingsTest.java | 58 private static final String TEST_COUNTRY_CODE = "CN"; field in ThreadPersistentSettingsTest 139 mThreadPersistentSettings.put(THREAD_COUNTRY_CODE.key, TEST_COUNTRY_CODE); in put_ThreadCountryCodeString_returnsString() 141 assertThat(mThreadPersistentSettings.get(THREAD_COUNTRY_CODE)).isEqualTo(TEST_COUNTRY_CODE); in put_ThreadCountryCodeString_returnsString()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 85 private static final String TEST_COUNTRY_CODE = "TestCountry"; field in ApConfigUtilTest 778 TEST_COUNTRY_CODE, configBuilder, configBuilder.build(), mCapability)); in updateApChannelConfigWithoutHal() 808 TEST_COUNTRY_CODE, configBuilder, configBuilder.build(), mCapability)); in updateApChannelConfigWithChannelSpecified() 827 TEST_COUNTRY_CODE, configBuilder, configBuilder.build(), mCapability)); in updateApChannelConfigWith5GBandNoChannelAllowed() 856 TEST_COUNTRY_CODE, configBuilder, configBuilder.build(), in updateApChannelConfigWithAcsDisabledOemConfigured() 880 TEST_COUNTRY_CODE, configBuilder, configBuilder.build(), in updateApChannelConfigWithAcsEnabled()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 174 private static final String TEST_COUNTRY_CODE = "US"; field in WifiManagerTest 3586 mWifiManager.setOverrideCountryCode(TEST_COUNTRY_CODE); in testSetOverrideCountryCode() 3587 verify(mWifiService).setOverrideCountryCode(eq(TEST_COUNTRY_CODE)); in testSetOverrideCountryCode() 3606 mWifiManager.setDefaultCountryCode(TEST_COUNTRY_CODE); in testSetDefaultCountryCode() 3607 verify(mWifiService).setDefaultCountryCode(eq(TEST_COUNTRY_CODE)); in testSetDefaultCountryCode() 3780 listenerCaptor.getValue().onDriverCountryCodeChanged(TEST_COUNTRY_CODE); in testDriverCountryCodeChangedCallbackProxyCallsOnActiveCountryCodeChanged() 3782 verify(mActiveCountryCodeChangedCallback).onActiveCountryCodeChanged(TEST_COUNTRY_CODE); in testDriverCountryCodeChangedCallbackProxyCallsOnActiveCountryCodeChanged()
|