/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherSwitchBarControllerTest.java | 21 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()
|
D | WifiTetherPreferenceControllerTest.java | 20 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/ |
D | WifiTetherSwitchBarController.java | 22 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()
|
D | WifiTetherPreferenceController.java | 172 && 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/ |
D | HotspotTileTest.java | 86 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()
|
D | HotspotRowTest.java | 100 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/ |
D | SarManagerTest.java | 415 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()
|
D | WifiServiceImplTest.java | 52 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 …]
|
D | SoftApManagerTest.java | 28 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/ |
D | CarWifiServiceUnitTest.java | 19 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/ |
D | HotspotQCUtils.java | 36 return state == WifiManager.WIFI_AP_STATE_ENABLED in isHotspotEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/repository/ |
D | WifiHotspotRepository.java | 28 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/ |
D | CarWifiService.java | 22 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/ |
D | WifiEnablerTest.java | 67 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 63 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/ |
D | WifiTetheringHandler.java | 142 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarProjectionService.java | 27 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/ |
D | WifiHotspotRepositoryTest.java | 27 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/ |
D | SoftApManager.java | 1820 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()
|
D | SarManager.java | 338 } else if (state == WifiManager.WIFI_AP_STATE_ENABLED) { in setSapWifiState()
|
D | WifiShellCommand.java | 244 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/ |
D | WifiTetheringHandlerTest.java | 136 mWifiTetheringHandler.handleWifiApStateChanged(WifiManager.WIFI_AP_STATE_ENABLED); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | ConnectivityFragment.java | 297 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/ |
D | TetherEnabler.java | 378 case WifiManager.WIFI_AP_STATE_ENABLED: in handleWifiApStateChanged()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 40 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()
|