Home
last modified time | relevance | path

Searched refs:WIFI_STATE_ENABLED (Results 1 – 25 of 51) sorted by relevance

123

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java184 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
212 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
231 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
293 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
314 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
338 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOff_offHook_onHook_wifiOn()
360 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_offHook_wifiOnOff_onHook()
388 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_error_wifiOn_offOnHook()
448 mSarMgr.setScanOnlyWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_staOff_sapOff_scanOnlyOn()
467 mSarMgr.setScanOnlyWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_staOn_sapOff_scanOnlyOn()
[all …]
DConcreteClientModeManagerTest.java24 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED;
331 checkWifiConnectModeStateChangedBroadcast(intents.get(1), WIFI_STATE_ENABLED, in startClientInConnectModeAndVerifyEnabled()
333 verify(mActiveModeWarden).setWifiStateForApiCalls(WIFI_STATE_ENABLED); in startClientInConnectModeAndVerifyEnabled()
451 checkWifiConnectModeStateChangedBroadcast(intents.get(1), WIFI_STATE_ENABLED, in switchFromScanOnlyModeToConnectMode()
453 verify(mActiveModeWarden).setWifiStateForApiCalls(WIFI_STATE_ENABLED); in switchFromScanOnlyModeToConnectMode()
488 checkWifiConnectModeStateChangedBroadcast(intents.get(1), WIFI_STATE_ENABLED, in testDisableWifiStateChangedBroadcasts()
535 verifyConnectModeNotificationsForCleanShutdown(WIFI_STATE_ENABLED); in switchFromConnectModeToScanOnlyMode()
652 verifyConnectModeNotificationsForCleanShutdown(WIFI_STATE_ENABLED); in clientModeStopCleansUpState()
703 verifyConnectModeNotificationsForCleanShutdown(WIFI_STATE_ENABLED); in clientModeStartedStopsOnInterfaceDestroyed()
826 verifyConnectModeNotificationsForCleanShutdown(WIFI_STATE_ENABLED); in clientModeStopWithWifiOffDeferringTimeNoWifiCalling()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DWifiTileTest.java73 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiNotConnected_returnsTile()
88 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiConnected_returnsTile()
105 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsTile()
123 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow()
141 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_hasFriendlyName_returnsTile()
159 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_noFriendlyName_returnsTile()
208 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsTile_zoneWrite()
224 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsTile_zoneRead()
241 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsTile_zoneHidden()
DWifiRowTest.java84 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiNotConnected_returnsRow()
100 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiConnected_returnsRow()
118 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsRow()
137 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow()
156 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_hasFriendlyName_returnsRow()
175 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_noFriendlyName_returnsRow()
227 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsRow_zoneWrite()
246 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsRow_zoneRead()
266 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_createsRow_zoneHidden()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java144 case WifiManager.WIFI_STATE_ENABLED: { in onStart()
174 case WifiManager.WIFI_STATE_ENABLED: { in onStart()
201 case WifiManager.WIFI_STATE_ENABLED: in onStart()
329 case WifiManager.WIFI_STATE_ENABLED: in onReceive()
DWifiEnabler.java164 case WifiManager.WIFI_STATE_ENABLED: in handleWifiStateChanged()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/wifi/repository/
DWifiRepositoryTest.kt37 putExtra(WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_ENABLED) in <lambda>()
46 assertThat(wifiState).isEqualTo(WifiManager.WIFI_STATE_ENABLED) in <lambda>()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiRequestToggleActivityTest.java79 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_ENABLED); in testOnStartWifiDisabled_toggleDisableWifi_showsDialog()
89 ShadowCarWifiManager.setWifiState(WifiManager.WIFI_STATE_ENABLED); in testOnStartWifiEnabled_toggleEnableWifi_finish()
DWifiStatusPreferenceControllerTest.java55 WifiManager.WIFI_STATE_ENABLED,
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java135 case WifiManager.WIFI_STATE_ENABLED: in onStart()
252 case WifiManager.WIFI_STATE_ENABLED: in onReceive()
DWifiStateSwitchPreferenceController.java115 mIsWifiEnabled = (state == WifiManager.WIFI_STATE_ENABLED in onWifiStateChanged()
DWifiEntryListPreferenceController.java130 if (state == WifiManager.WIFI_STATE_ENABLED) { in onWifiStateChanged()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConcreteClientModeManager.java19 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED;
247 WifiManager.WIFI_STATE_ENABLED); in stop()
424 updateConnectModeState(mRole, WifiManager.WIFI_STATE_ENABLED, in continueToStopWifi()
1094 WifiManager.WIFI_STATE_ENABLED); in processMessageImpl()
1245 WIFI_STATE_ENABLED, WIFI_STATE_ENABLING); in enterImpl()
1282 WifiManager.WIFI_STATE_ENABLED); in processMessageImpl()
1307 WifiManager.WIFI_STATE_ENABLED); in processMessageImpl()
DSarManager.java312 } else if (state == WifiManager.WIFI_STATE_ENABLED) { in setClientWifiState()
364 } else if (state == WifiManager.WIFI_STATE_ENABLED) { in setScanOnlyWifiState()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiQCUtils.java45 if (wifiState == WifiManager.WIFI_STATE_ENABLED) { in getSubtitle()
DWifiTile.java56 boolean wifiEnabled = wifiState == WifiManager.WIFI_STATE_ENABLED in getQCItem()
DWifiRow.java61 boolean wifiEnabled = wifiState == WifiManager.WIFI_STATE_ENABLED in getQCItem()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java149 WifiManager.WIFI_STATE_ENABLED); in verifyWifiStateCallbacks()
154 WifiManager.WIFI_STATE_ENABLED); in verifyWifiStateCallbacks()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiScanWorker.java151 if (mWifiPickerTracker.getWifiState() != WifiManager.WIFI_STATE_ENABLED in updateResults()
/packages/apps/Settings/src/com/android/settings/network/
DInternetPreferenceRepository.kt117 if (airplaneModeOn && wifiState != WifiManager.WIFI_STATE_ENABLED) { in <lambda>()
DNetworkProviderSettings.java337 && mWifiPickerTracker.getWifiState() == WifiManager.WIFI_STATE_ENABLED; in onCreate()
849 case WifiManager.WIFI_STATE_ENABLED: in onWifiStateChanged()
958 || mWifiPickerTracker.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in updateWifiEntryPreferences()
1323 if (wifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in getNonIndexableKeys()
DInternetUpdater.java258 && mWifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in updateInternetType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java111 doReturn(WifiManager.WIFI_STATE_ENABLED).when(mWifiManager).getWifiState(); in setUp()
339 assertThat(wifiManager.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in handleUriChange_updatesWifi()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java151 && wifiState == WifiManager.WIFI_STATE_ENABLED) {
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java113 if (state == WifiManager.WIFI_STATE_ENABLED && !mWifiEnabled) { in init()

123