Home
last modified time | relevance | path

Searched refs:isWifiEnabled (Results 1 – 25 of 34) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiNetworkConfigurationWithoutFineLocationPermissionTest.java51 if (!mWifiManager.isWifiEnabled()) { in setUp()
55 Log.d(TAG, "Done: " + mWifiManager.isWifiEnabled()); in setUp()
60 assertWithMessage("wifi is enabled").that(mWifiManager.isWifiEnabled()).isTrue(); in testAddAndRetrieveCallerConfiguredNetworks()
87 if (mWifiManager.isWifiEnabled()) { in awaitWifiEnabled()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DNetworkingHelper.java109 mInitialWiFiState = mHasWifi && isWifiEnabled(); in NetworkingHelper()
217 if (!mWifiManager.isWifiEnabled()) { in isWiFiConnected()
231 boolean isWifiEnabled() { in isWifiEnabled() method in NetworkingHelper
232 return mWifiManager.isWifiEnabled(); in isWifiEnabled()
354 this::isWifiEnabled); in setWifiState()
380 if (mWifiManager.isWifiEnabled() != mInitialWiFiState) { in tearDown()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java61 if (!mWifiManager.isWifiEnabled()) { in setUp()
136 if (mWifiManager.isWifiEnabled() == enabled) { in awaitWifiEnabledState()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiLocationInfoForegroundTest.java118 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
119 PollingCheck.check("Wifi not enabled", DURATION_MS, () -> sWifiManager.isWifiEnabled()); in setUpClass()
156 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
DMultiStaConcurrencyWifiNetworkSpecifierTest.java121 () -> wifiManager.isWifiEnabled()); in setUpClass()
122 if (!wifiManager.isWifiEnabled()) { in setUpClass()
125 PollingCheck.check("Wifi not enabled", DURATION, () -> wifiManager.isWifiEnabled()); in setUpClass()
DWifiLocationInfoBackgroundTest.java129 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
130 PollingCheck.check("Wifi not enabled", DURATION_MS, () -> sWifiManager.isWifiEnabled()); in setUpClass()
169 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java125 () -> sWifiManager.isWifiEnabled()); in setUpClass()
126 if (!sWifiManager.isWifiEnabled()) { in setUpClass()
130 () -> sWifiManager.isWifiEnabled()); in setUpClass()
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java158 () -> wifiManager.isWifiEnabled()); in setUpClass()
161 PollingCheck.check("Wifi not enabled", DURATION_MILLIS, () -> wifiManager.isWifiEnabled()); in setUpClass()
271 () -> mWifiManager.isWifiEnabled()); in setMultiInternetMode()
DWifiManagerTest.java488 if (!sWifiManager.isWifiEnabled()) { in tearDownClass()
509 if (!sWifiManager.isWifiEnabled()) { in setUp()
514 () -> sWifiManager.isWifiEnabled()); in setUp()
521 if (sWifiManager.isWifiEnabled() != enable) { in setWifiEnabled()
700 assertFalse(sWifiManager.isWifiEnabled()); in testRestartWifiSubsystem()
706 assertTrue(sWifiManager.isWifiEnabled()); in testRestartWifiSubsystem()
724 assertTrue(sWifiManager.isWifiEnabled()); in testWifiManagerProperties()
729 assertFalse(sWifiManager.isWifiEnabled()); in testWifiManagerProperties()
749 if (!sWifiManager.isWifiEnabled()) { in testWifiScanTimestamp()
1217 boolean wifiEnabled = sWifiManager.isWifiEnabled(); in testStartLocalOnlyHotspotSuccess()
[all …]
DWifiInfoTest.java126 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
127 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
139 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
DScanResultTest.java178 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
180 () -> sWifiManager.isWifiEnabled()); in setUpClass()
192 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
DWifiNetworkSpecifierTest.java225 if (!sWifiManager.isWifiEnabled()) { in setUpClass()
228 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
264 if (!sWifiManager.isWifiEnabled()) { in tearDownClass()
DWifiBackupRestoreTest.java165 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUpClass()
168 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
183 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in tearDownClass()
DConcurrencyTest.java279 sWasWifiEnabled = sWifiManager.isWifiEnabled(); in setUpClass()
296 PollingCheck.check("Wifi not disabled", DURATION, () -> !sWifiManager.isWifiEnabled()); in setUpClass()
444 if (!sWifiManager.isWifiEnabled()) { in enableWifi()
446 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in enableWifi()
495 assertThat(sWifiManager.isWifiEnabled()).isTrue(); in setupWifiP2p()
DWifiNetworkSuggestionTest.java162 () -> sWifiManager.isWifiEnabled()); in setUpClass()
163 if (!sWifiManager.isWifiEnabled()) { in setUpClass()
166 PollingCheck.check("Wifi not enabled", DURATION_MILLIS, () -> sWifiManager.isWifiEnabled()); in setUpClass()
DConnectedNetworkScorerTest.java151 PollingCheck.check("Wifi not disabled", TIMEOUT, () -> !sWifiManager.isWifiEnabled()); in setUpClass()
153 PollingCheck.check("Wifi not enabled", TIMEOUT, () -> sWifiManager.isWifiEnabled()); in setUpClass()
185 if (!sWifiManager.isWifiEnabled()) { in tearDownClass()
/cts/tests/tests/settings/src/android/settings/cts/
DWifiSliceTest.java102 assertThat(toggleAction.isChecked()).isEqualTo(isWifiEnabled()); in wifiSliceToggle_changeWifiState()
105 assertThat(toggleAction.isChecked()).isEqualTo(isWifiEnabled()); in wifiSliceToggle_changeWifiState()
191 private boolean isWifiEnabled() { in isWifiEnabled() method in WifiSliceTest
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wifi/
DWifi.kt36 return wifiManager.isWifiEnabled in <lambda>()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java165 boolean isWifiEnabled = isWifiConnected(); in testStartUsingNetworkFeature_enableHipri()
167 if (!isWifiEnabled) { in testStartUsingNetworkFeature_enableHipri()
200 if (!isWifiEnabled && isWifiConnected()) { in testStartUsingNetworkFeature_enableHipri()
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java164 () -> sWifiManager.isWifiEnabled()); in setupClass()
165 if (!sWifiManager.isWifiEnabled()) { in setupClass()
168 PollingCheck.check("Wifi not enabled", DURATION_MILLIS, () -> sWifiManager.isWifiEnabled()); in setupClass()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java229 if (!sWifiManager.isWifiEnabled()) { in tearDownClass()
244 if (!sWifiManager.isWifiEnabled()) setWifiEnabled(true); in setUp()
246 () -> sWifiManager.isWifiEnabled()); in setUp()
260 if (sWifiManager.isWifiEnabled() != enable) { in setWifiEnabled()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DWifiManagerWrapper.java68 doAnswer(answer).when(spy).isWifiEnabled(); in getWrapper()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestListActivity.java124 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java213 if (!mWifiManager.isWifiEnabled()) { in recordCurrentWifiState()
271 if (isWifiEnabled() == enableWifi) { in requestUserEnableWifiAsync()
318 private boolean isWifiEnabled() { in isWifiEnabled() method in MultiNetworkConnectivityTestActivity
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java619 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature()
624 assertEquals(!enabled, mWifiManager.isWifiEnabled()); in testWifiFeature()

12