Home
last modified time | relevance | path

Searched refs:setWifiEnabled (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/telephony/current/preconditions/cleanerApp/src/android/telephony/cts/preconditions/cleanerApp/
DTelephonyCleanerAppTest.java41 runWithShellPermissionIdentity(() -> assertTrue(wifiManager.setWifiEnabled(true))); in testEnsureWifiEnabled()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java98 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
114 setWifiEnabled(true); in tearDown()
119 private void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiInfoTest
153 setWifiEnabled(false); in testWifiInfoProperties()
DWifiLocationInfoTest.java118 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
140 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDown()
147 private void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiLocationInfoTest
DScanResultTest.java137 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
154 setWifiEnabled(true); in tearDown()
163 private void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in ScanResultTest
DWifiManagerTest.java340 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
368 setWifiEnabled(true); in tearDown()
382 private void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiManagerTest
514 setWifiEnabled(false); in testWifiManagerScanWhenWifiOffLocationTurnedOn()
596 setWifiEnabled(true); in testWifiManagerProperties()
601 setWifiEnabled(false); in testWifiManagerProperties()
626 setWifiEnabled(true); in testWifiScanTimestamp()
1089 setWifiEnabled(true); in testDeprecatedApis()
1110 assertFalse(mWifiManager.setWifiEnabled(!wifiEnabled)); in testDeprecatedApis()
1968 setWifiEnabled(false); in testScreenOffDoesNotTurnOffWifiScanningWhenWifiDisabled()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java119 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
137 () -> wifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java120 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
138 () -> wifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DWifiBackupRestoreTest.java121 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
134 if (!mWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDown()
140 private void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiBackupRestoreTest
DWifiNetworkSpecifierTest.java221 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
263 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in tearDownClass()
DConnectedNetworkScorerTest.java127 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in setUp()
161 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in tearDown()
DWifiNetworkSuggestionTest.java147 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
184 () -> sWifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
/cts/tests/tests/telephony/current/preconditions/preparerApp/src/android/telephony/cts/preconditions/preparerApp/
DTelephonyPreparerAppTest.java60 runWithShellPermissionIdentity(() -> assertTrue(wifiManager.setWifiEnabled(false))); in testEnsureWifiDisabled()
/cts/tests/tests/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java262 mWifiManager.setWifiEnabled(true); in testSetWifiEnabled()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DWifiManagerWrapper.java69 doAnswer(answer).when(spy).setWifiEnabled(anyBoolean()); in getWrapper()
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiNl80211ManagerTest.java149 wifiManager.setWifiEnabled(true); in testCountryCodeChangeListener()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java1221 runWithShellPermissionIdentity(() -> wifiManager.setWifiEnabled(true)); in getWifiMacAddress()
1226 runWithShellPermissionIdentity(() -> wifiManager.setWifiEnabled(false)); in getWifiMacAddress()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dwifi-current.txt417 method @Deprecated public boolean setWifiEnabled(boolean);