Searched refs:mWakeLockAdapter (Results 1 – 2 of 2) sorted by relevance
39 @Mock TelecomWakeLock.WakeLockAdapter mWakeLockAdapter; field in InCallWakeLockControllerTest47 mWakeLockAdapter, PowerManager.FULL_WAKE_LOCK, in setUp()61 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallAdded()65 verify(mWakeLockAdapter).acquire(); in testRingingCallAdded()71 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testNonRingingCallAdded()75 verify(mWakeLockAdapter, never()).acquire(); in testNonRingingCallAdded()81 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallTransition()85 verify(mWakeLockAdapter).acquire(); in testRingingCallTransition()91 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testRingingCallRemoved()95 verify(mWakeLockAdapter, never()).acquire(); in testRingingCallRemoved()[all …]
40 @Mock TelecomWakeLock.WakeLockAdapter mWakeLockAdapter; field in ProximitySensorManagerTest48 mWakeLockAdapter, PowerManager.FULL_WAKE_LOCK, in setUp()64 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testTurnOnProximityWithCallsActive()68 verify(mWakeLockAdapter).acquire(); in testTurnOnProximityWithCallsActive()74 when(mWakeLockAdapter.isHeld()).thenReturn(false); in testTurnOnProximityWithNoCallsActive()78 verify(mWakeLockAdapter, never()).acquire(); in testTurnOnProximityWithNoCallsActive()84 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testTurnOffProximityExplicitly()88 verify(mWakeLockAdapter).release(0); in testTurnOffProximityExplicitly()96 when(mWakeLockAdapter.isHeld()).thenReturn(true); in testCallRemovedFromCallsManagerCallsActive()100 verify(mWakeLockAdapter, never()).release(0); in testCallRemovedFromCallsManagerCallsActive()[all …]