Home
last modified time | relevance | path

Searched refs:WIFI_AP_STATE_ENABLED (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarControllerTest.java21 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
88 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in startTether_wifiApIsActivated_doNothing()
106 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in stopTether_wifiApIsActivated_stopTethering()
168 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in onSwitchChanged_isNotChecked_stopTethering()
197 mController.handleWifiApStateChanged(WIFI_AP_STATE_ENABLED); in handleWifiApStateChanged_stateIsEnabled_enabledAndCheckedSwitchBar()
DWifiTetherPreferenceControllerTest.java20 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
93 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in setUp()
148 mController.handleWifiApStateChanged(WIFI_AP_STATE_ENABLED, 0 /* reason */); in testHandleWifiApStateChanged_stateEnabled_showEnabledSummary()
177 mController.handleWifiApStateChanged(WIFI_AP_STATE_ENABLED, 0 /* reason */); in handleWifiApStateChanged_stateEnabled_setSwitchChecked()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java22 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
84 mSwitchBar.setChecked(mWifiManager.getWifiApState() == WIFI_AP_STATE_ENABLED); in WifiTetherSwitchBarController()
132 if (wifiApState == WIFI_AP_STATE_ENABLED || wifiApState == WIFI_AP_STATE_ENABLING) { in isWifiApActivated()
153 final boolean shouldBeChecked = (state == WIFI_AP_STATE_ENABLED); in handleWifiApStateChanged()
DWifiTetherPreferenceController.java172 && mSoftApState == WifiManager.WIFI_AP_STATE_ENABLED) { in initWifiTetherSoftApManager()
188 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged()
240 mSwitch.setChecked(wifiApState == WifiManager.WIFI_AP_STATE_ENABLED); in updateSwitch()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DHotspotTileTest.java86 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_tileChecked()
137 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneWrite()
145 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneRead()
154 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneHidden()
DHotspotRowTest.java100 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_noDevices_returnsRow()
110 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_hasDevices_returnsRow()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java415 mSarMgr.setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in testSarMgr_disabledTxPowerScenario_sapOn()
430 mSarMgr.setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_sapOn()
502 mSarMgr.setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifi_sap_scanOnly()
546 mSarMgr.setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_error_wifi_sap_scanOnly()
DWifiServiceImplTest.java52 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
1407 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testSetWifiEnabledFromNetworkSettingsHolderWhenApEnabled()
1435 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testSetWifiEnabledFromAppFailsWhenApEnabledForPreS()
1974 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testGetWifiApEnabled()
3670 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testTetheringDoesNotStartWhenAlreadyTetheringActive()
3674 assertEquals(WIFI_AP_STATE_ENABLED, mWifiServiceImpl.getWifiApEnabledState()); in testTetheringDoesNotStartWhenAlreadyTetheringActive()
3698 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testStartTetheredHotspotDoesNotStartWhenAlreadyTetheringActive()
3702 assertEquals(WIFI_AP_STATE_ENABLED, mWifiServiceImpl.getWifiApEnabledState()); in testStartTetheredHotspotDoesNotStartWhenAlreadyTetheringActive()
3724 new SoftApState(WIFI_AP_STATE_ENABLED, 0, in testStartTetheredHotspotRequestDoesNotStartWhenAlreadyTetheringActive()
3728 assertEquals(WIFI_AP_STATE_ENABLED, mWifiServiceImpl.getWifiApEnabledState()); in testStartTetheredHotspotRequestDoesNotStartWhenAlreadyTetheringActive()
[all …]
DSoftApManagerTest.java28 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
1048 WIFI_AP_STATE_ENABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in stopWhenStarted() local
1101 WIFI_AP_STATE_ENABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in cleanStopOnInterfaceDestroyed() local
1183 WIFI_AP_STATE_ENABLED, WifiManager.SAP_START_FAILURE_GENERAL, TEST_INTERFACE_NAME, in testInterfaceOnDownHandled()
1249 WIFI_AP_STATE_ENABLED, WifiManager.SAP_START_FAILURE_GENERAL, TEST_INTERFACE_NAME, in testHostapdOnFailureHandled()
2577 WifiManager.WIFI_AP_STATE_ENABLED, 0, in startSoftApAndVerifyEnabled()
2581 verify(mSarManager).setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in startSoftApAndVerifyEnabled()
2595 checkApStateChangedBroadcast(capturedIntents.get(1), WIFI_AP_STATE_ENABLED, in startSoftApAndVerifyEnabled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java19 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
168 getSoftApCallback().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in testPersistCarSettingOn_userUnlockBeforePowerOn_tetheringOn()
215 getSoftApCallback().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DHotspotQCUtils.java36 return state == WifiManager.WIFI_AP_STATE_ENABLED in isHotspotEnabled()
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java28 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
592 if (mWifiApState != WIFI_AP_STATE_ENABLED) { in restartTetheringIfNeeded()
646 if (state == WIFI_AP_STATE_ENABLED) { in onStateChanged()
/packages/services/Car/service/src/com/android/car/wifi/
DCarWifiService.java22 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
97 case WIFI_AP_STATE_ENABLED -> {
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiEnablerTest.java67 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java63 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
896 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED); in failingLocalOnlyHotspotLegacyApBroadcast()
1025 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_LOCAL_ONLY); in workingLocalOnlyHotspotEnrichedApBroadcast()
1923 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED); in failingWifiTetheringLegacyApBroadcast()
1952 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_TETHERED); in workingWifiTetheringEnrichedApBroadcast()
2003 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_TETHERED); in failureEnablingIpForwarding()
2339 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_TETHERED); in testRegisterTetheringEventCallback()
3051 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_TETHERED); in testUpdateConnectedClients()
3083 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_LOCAL_ONLY); in testUpdateConnectedClientsForLocalOnlyHotspot()
3115 sendWifiApStateChanged(WIFI_AP_STATE_ENABLED, TEST_WLAN_IFNAME, IFACE_IP_MODE_TETHERED); in testConnectedClientsForSapAndLohsConcurrency()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetheringHandler.java142 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java27 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
680 if (mWifiManager.getWifiApState() == WIFI_AP_STATE_ENABLED) { in startTetheredApLocked()
860 if (currState == WIFI_AP_STATE_ENABLING || currState == WIFI_AP_STATE_ENABLED) { in handleWifiApStateChange()
1102 case WifiManager.WIFI_AP_STATE_ENABLED: { in onStateChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java27 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
710 mRepository.mWifiApState = WIFI_AP_STATE_ENABLED; in restartTetheringIfNeeded_stateEnabled_stopTethering()
741 mRepository.mSoftApCallback.onStateChanged(WIFI_AP_STATE_ENABLED, 0); in onStateChanged_stateEnabledAndRestartingTrue_setRestartingFalse()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApManager.java1820 updateApState(WifiManager.WIFI_AP_STATE_ENABLED, in onUpChanged()
1866 mSarManager.setSapWifiState(WifiManager.WIFI_AP_STATE_ENABLED); in enterImpl()
1994 WifiManager.WIFI_AP_STATE_ENABLED, 0); in processMessageImpl()
2018 WifiManager.WIFI_AP_STATE_ENABLED, 0); in processMessageImpl()
2050 WifiManager.WIFI_AP_STATE_ENABLED, 0); in processMessageImpl()
2086 WifiManager.WIFI_AP_STATE_ENABLED, in processMessageImpl()
DSarManager.java338 } else if (state == WifiManager.WIFI_AP_STATE_ENABLED) { in setSapWifiState()
DWifiShellCommand.java244 if (mSapState == WifiManager.WIFI_AP_STATE_ENABLED) { in onStateChanged()
262 if (mSapState == WifiManager.WIFI_AP_STATE_ENABLED && infos.size() != 0) { in onConnectedClientsOrInfoChanged()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetheringHandlerTest.java136 mWifiTetheringHandler.handleWifiApStateChanged(WifiManager.WIFI_AP_STATE_ENABLED); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java297 sWifiApStates.put(WifiManager.WIFI_AP_STATE_ENABLED, "AP_ENABLED"); in sWifiApStates.put() argument
568 if (config != null && config.SSID != null && apState == WifiManager.WIFI_AP_STATE_ENABLED) { in updateApState()
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java378 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java40 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
1299 SoftApState state = new SoftApState(WIFI_AP_STATE_ENABLED, 0, in softApCallbackProxyCallsOnStateChanged()
1855 SoftApState state = new SoftApState(WIFI_AP_STATE_ENABLED, 0, in softApCallbackIsCalledOnCorrectThread()
1863 assertEquals(WIFI_AP_STATE_ENABLED, softApState.getState()); in softApCallbackIsCalledOnCorrectThread()
3896 SoftApState state = new SoftApState(WIFI_AP_STATE_ENABLED, 0, in softApCallbackProxyCallsCallbackForLohsRegister()

12