Home
last modified time | relevance | path

Searched refs:mWifiController (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSelfRecoveryTest.java34 @Mock WifiController mWifiController; field in SelfRecoveryTest
40 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in setUp()
50 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController()
51 reset(mWifiController); in testValidTriggerReasonsSendMessageToWifiController()
56 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController()
57 reset(mWifiController); in testValidTriggerReasonsSendMessageToWifiController()
67 verify(mWifiController, never()).sendMessage(anyInt(), anyString()); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController()
70 verify(mWifiController, never()).sendMessage(anyInt(), anyString()); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController()
79 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testStaIfaceDownDisablesWifi()
94 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
[all …]
DWifiControllerTest.java75 mWifiController.dump(null, writer, null); in dumpState()
83 return (IState) method.invoke(mWifiController); in getCurrentState()
101 WifiController mWifiController; field in WifiControllerTest
122 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in setUp()
125 mWifiController.start(); in setUp()
158 mWifiController.sendMessage(CMD_WIFI_TOGGLED); in enableWifi()
169 mWifiController.sendMessage(CMD_SCAN_ALWAYS_MODE_CHANGED); in enableScanMode()
207 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testDoesNotEnterScanModeWhenLocationModeDisabled()
212 mWifiController.start(); in testDoesNotEnterScanModeWhenLocationModeDisabled()
219 mWifiController.sendMessage(CMD_SCAN_ALWAYS_MODE_CHANGED); in testDoesNotEnterScanModeWhenLocationModeDisabled()
[all …]
DWifiServiceImplTest.java225 @Mock WifiController mWifiController; field in WifiServiceImplTest
346 when(mWifiInjector.getWifiController()).thenReturn(mWifiController); in setUp()
592 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
606 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessWithNetworkManagedProvisioningPermission()
626 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessForDOAppsTargetingQSDK()
644 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessForSystemAppsTargetingQSDK()
661 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK()
675 verifyZeroInteractions(mWifiController); in testSetWifiEnabledFailureWhenInCryptDebounce()
692 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledFailureForAppsTargetingQSDK()
711 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnableAppOpsRejected()
[all …]
DWakeupControllerTest.java82 @Mock private WifiController mWifiController; field in WakeupControllerTest
99 when(mWifiInjector.getWifiController()).thenReturn(mWifiController); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSelfRecovery.java50 private final WifiController mWifiController; field in SelfRecovery
55 mWifiController = wifiController; in SelfRecovery()
80 mWifiController.sendMessage(WifiController.CMD_RECOVERY_DISABLE_WIFI); in trigger()
91 mWifiController.sendMessage(WifiController.CMD_RECOVERY_DISABLE_WIFI); in trigger()
96 mWifiController.sendMessage(WifiController.CMD_RECOVERY_RESTART_WIFI, reason); in trigger()
DWifiInjector.java110 private final WifiController mWifiController; field in WifiInjector
338 mWifiController = new WifiController(mContext, mClientModeImpl, clientModeImplLooper, in WifiInjector()
341 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in WifiInjector()
464 return mWifiController; in getWifiController()
DWifiServiceImpl.java445 private WifiController mWifiController; field in WifiServiceImpl
477 mWifiController = mWifiInjector.getWifiController(); in WifiServiceImpl()
530 mWifiController.sendMessage(CMD_AIRPLANE_TOGGLED); in checkAndStartWifi()
580 mWifiController.start(); in checkAndStartWifi()
942 mWifiController.sendMessage(CMD_WIFI_TOGGLED); in setWifiEnabled()
1116 mWifiController.sendMessage(CMD_SET_AP, 1, 0, softApConfig); in startSoftApInternal()
1162 mWifiController.sendMessage(CMD_SET_AP, 0, mode); in stopSoftApInternal()
2677 mWifiController.sendMessage(CMD_EMERGENCY_MODE_CHANGED, emergencyMode ? 1 : 0, 0);
2681 mWifiController.sendMessage(CMD_EMERGENCY_CALL_STATE_CHANGED, inCall ? 1 : 0, 0);
2696 mWifiController.sendMessage(CMD_SCAN_ALWAYS_MODE_CHANGED); in registerForScanModeChange()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWifiTile.java61 private final AccessPointController mWifiController; field in WifiTile
74 mWifiController = mController.getAccessPointController(); in WifiTile()
92 mWifiController.addAccessPointCallback(mDetailAdapter); in setDetailListening()
94 mWifiController.removeAccessPointCallback(mDetailAdapter); in setDetailListening()
139 if (!mWifiController.canConfigWifi()) { in handleSecondaryClick()
352 mWifiController.scanForAccessPoints(); // updates APs and items in createDetailView()
391 if (mWifiController.connect(ap)) { in onDetailItemClick()
437 item.iconResId = mWifiController.getIcon(ap); in updateItems()