Home
last modified time | relevance | path

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

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiLocationInfoForegroundTest.java118 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
156 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
163 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiLocationInfoForegroundTest
164 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiLocationInfoBackgroundTest.java129 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
169 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
177 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiLocationInfoBackgroundTest
178 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiInfoTest.java126 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
139 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
147 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiInfoTest
151 () -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
175 setWifiEnabled(false); in testWifiInfoProperties()
DScanResultTest.java178 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
192 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
204 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in ScanResultTest
208 () -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiManagerTest.java489 setWifiEnabled(true); in tearDownClass()
510 setWifiEnabled(true); in setUp()
519 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiManagerTest
528 () -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
651 setWifiEnabled(false); in testWifiManagerScanWhenWifiOffLocationTurnedOn()
723 setWifiEnabled(true); in testWifiManagerProperties()
728 setWifiEnabled(false); in testWifiManagerProperties()
750 setWifiEnabled(true); in testWifiScanTimestamp()
1222 sWifiManager.setWifiEnabled(false)); in testStartLocalOnlyHotspotSuccess()
1268 assertFalse(sWifiManager.setWifiEnabled(!wifiEnabled)); in testDeprecatedApis()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java123 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
144 () -> wifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java127 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
142 () -> sWifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java159 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
177 () -> wifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DWifiBackupRestoreTest.java165 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
183 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
188 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in WifiBackupRestoreTest
189 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiNetworkSpecifierTest.java226 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
265 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in tearDownClass()
DConnectedNetworkScorerTest.java150 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(false)); in setUpClass()
152 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
186 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in tearDownClass()
DWifiNetworkSuggestionTest.java164 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
201 () -> sWifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
DConcurrencyTest.java295 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(false)); in setUpClass()
445 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in enableWifi()
1778 sWifiManager.setWifiEnabled(false); in testP2pWhenInfraStaDisabled()
/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/telephony/current/preconditions/preparerApp/src/android/telephony/cts/preconditions/preparerApp/
DTelephonyPreparerAppTest.java60 runWithShellPermissionIdentity(() -> assertTrue(wifiManager.setWifiEnabled(false))); in testEnsureWifiDisabled()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java230 setWifiEnabled(true); in tearDownClass()
244 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
258 private static void setWifiEnabled(boolean enable) throws Exception { in setWifiEnabled() method in MockWifiTest
267 () -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
/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/rtt/cts/
DTestBase.java166 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setupClass()
184 () -> sWifiManager.setWifiEnabled(sWasWifiEnabled)); in tearDownClass()
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiNl80211ManagerTest.java208 wifiManager.setWifiEnabled(true); in testCountryCodeChangeListener()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWifiConfigCreator.java304 mWifiManager.setWifiEnabled(true); in checkAndEnableWifi()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java640 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in setUp()
753 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(false)); in testAvailabilityStatusChange()
768 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in testAvailabilityStatusChange()
2025 mWifiManager.setWifiEnabled(false); in testAwareWhenInfraStaDisabled()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java1686 runWithShellPermissionIdentity(() -> wifiManager.setWifiEnabled(true)); in getWifiMacAddress()
1691 runWithShellPermissionIdentity(() -> wifiManager.setWifiEnabled(false)); in getWifiMacAddress()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dwifi-current.txt542 method @Deprecated public boolean setWifiEnabled(boolean);