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.java219 @Mock WifiController mWifiController; field in WifiServiceImplTest
340 when(mWifiInjector.getWifiController()).thenReturn(mWifiController); in setUp()
585 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
599 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessWithNetworkManagedProvisioningPermission()
616 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK()
633 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledFailureForAppsTargetingQSDK()
652 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnableAppOpsRejected()
668 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnableAppOpsIgnored()
684 verify(mWifiController).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledFromNetworkSettingsHolderWhenInAirplaneMode()
704 verify(mWifiController, never()).sendMessage(eq(CMD_WIFI_TOGGLED)); in testSetWifiEnabledFromAppFailsWhenInAirplaneMode()
[all …]
DWakeupControllerTest.java80 @Mock private WifiController mWifiController; field in WakeupControllerTest
97 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.java108 private final WifiController mWifiController; field in WifiInjector
329 mWifiController = new WifiController(mContext, mClientModeImpl, clientModeImplLooper, in WifiInjector()
332 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in WifiInjector()
455 return mWifiController; in getWifiController()
DWifiServiceImpl.java444 private WifiController mWifiController; field in WifiServiceImpl
476 mWifiController = mWifiInjector.getWifiController(); in WifiServiceImpl()
529 mWifiController.sendMessage(CMD_AIRPLANE_TOGGLED); in checkAndStartWifi()
583 mWifiController.start(); in checkAndStartWifi()
908 mWifiController.sendMessage(CMD_WIFI_TOGGLED); in setWifiEnabled()
1078 mWifiController.sendMessage(CMD_SET_AP, 1, 0, softApConfig); in startSoftApInternal()
1120 mWifiController.sendMessage(CMD_SET_AP, 0, mode); in stopSoftApInternal()
2634 mWifiController.sendMessage(CMD_EMERGENCY_MODE_CHANGED, emergencyMode ? 1 : 0, 0);
2637 mWifiController.sendMessage(CMD_EMERGENCY_CALL_STATE_CHANGED, inCall ? 1 : 0, 0);
2652 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()