Searched refs:mWifiLockManager (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 60 WifiLockManager mWifiLockManager; field in WifiLockManagerTest 94 mWifiLockManager = new WifiLockManager(mContext, mBatteryStats, in setUp() 102 mWifiLockManager.updateWifiClientConnected(true); in acquireWifiLockSuccessful() 103 assertTrue(mWifiLockManager.acquireWifiLock(lockMode, tag, binder, ws)); in acquireWifiLockSuccessful() 104 assertThat(mWifiLockManager.getStrongestLockMode(), in acquireWifiLockSuccessful() 126 assertTrue(mWifiLockManager.releaseWifiLock(binder)); in releaseWifiLockSuccessful() 136 assertTrue(mWifiLockManager.releaseWifiLock(binder)); in releaseWifiLockSuccessful_noBatteryStats() 145 assertTrue(mWifiLockManager.releaseWifiLock(binder)); in releaseLowLatencyWifiLockSuccessful() 156 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode()); in newWifiLockManagerShouldNotHaveAnyLocks() 169 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, mWifiLockManager.getStrongestLockMode()); in acquireWifiLockWithValidParamsShouldSucceed() [all …]
|
D | WifiShellCommandTest.java | 57 @Mock WifiLockManager mWifiLockManager; field in WifiShellCommandTest 76 when(mWifiInjector.getWifiLockManager()).thenReturn(mWifiLockManager); in setUp() 204 verify(mWifiLockManager, never()).forceHiPerfMode(anyBoolean()); in testForceHiPerfMode() 212 verify(mWifiLockManager).forceHiPerfMode(true); in testForceHiPerfMode() 217 verify(mWifiLockManager).forceHiPerfMode(false); in testForceHiPerfMode() 226 verify(mWifiLockManager, never()).forceLowLatencyMode(anyBoolean()); in testForceLowLatencyMode() 234 verify(mWifiLockManager).forceLowLatencyMode(true); in testForceLowLatencyMode() 239 verify(mWifiLockManager).forceLowLatencyMode(false); in testForceLowLatencyMode()
|
D | ClientModeImplTest.java | 412 @Mock WifiLockManager mWifiLockManager; field in ClientModeImplTest 478 when(mWifiInjector.getWifiLockManager()).thenReturn(mWifiLockManager); in setUp() 1051 verify(mWifiLockManager).updateWifiClientConnected(true); in connect() 1995 InOrder inOrderWifiLockManager = inOrder(mWifiLockManager); in disconnect() 1997 inOrderWifiLockManager.verify(mWifiLockManager).updateWifiClientConnected(true); in disconnect() 2008 inOrderWifiLockManager.verify(mWifiLockManager).updateWifiClientConnected(false); in disconnect() 5230 InOrder inOrderWifiLockManager = inOrder(mWifiLockManager); in testNetworkCachedDataIsClearedIf4WayHandshakeFailure() 5232 inOrderWifiLockManager.verify(mWifiLockManager).updateWifiClientConnected(true); in testNetworkCachedDataIsClearedIf4WayHandshakeFailure()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiShellCommand.java | 110 private final WifiLockManager mWifiLockManager; field in WifiShellCommand 124 mWifiLockManager = wifiInjector.getWifiLockManager(); in WifiShellCommand() 190 if (!mWifiLockManager.forceHiPerfMode(enabled)) { in onCommand() 197 if (!mWifiLockManager.forceLowLatencyMode(enabled)) { in onCommand()
|
D | WifiServiceImpl.java | 286 private final WifiLockManager mWifiLockManager; field in WifiServiceImpl 310 mWifiLockManager = mWifiInjector.getWifiLockManager(); in WifiServiceImpl() 3273 mWifiLockManager.dump(pw); 3331 mWifiLockManager.acquireWifiLock(lockMode, tag, binder, updatedWs), false); 3347 mWifiLockManager.updateWifiLockWorkSource(binder, updatedWs)); 3358 mWifiLockManager.releaseWifiLock(binder), false); 3405 mWifiLockManager.enableVerboseLogging(verbose);
|