Searched refs:WakelockController (Results 1 – 7 of 7) sorted by relevance
47 private WakelockController mWakelockController;52 mWakelockController = new WakelockController(DISPLAY_ID, mDisplayPowerCallbacks); in before()72 verifyWakelockAcquisitionAndReaquisition(WakelockController.WAKE_LOCK_STATE_CHANGED, in acquireStateChangedSuspendBlockerAcquiresIfNotAcquired()80 verifyWakelockReleaseAndRerelease(WakelockController.WAKE_LOCK_STATE_CHANGED, in acquireStateChangedSuspendBlockerAcquiresIfNotAcquired()91 verifyWakelockAcquisitionAndReaquisition(WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS, in acquireUnfinishedBusinessSuspendBlockerAcquiresIfNotAcquired()99 verifyWakelockReleaseAndRerelease(WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS, in acquireUnfinishedBusinessSuspendBlockerAcquiresIfNotAcquired()110 verifyWakelockAcquisitionAndReaquisition(WakelockController.WAKE_LOCK_PROXIMITY_POSITIVE, in acquireProxPositiveSuspendBlockerAcquiresIfNotAcquired()118 verifyWakelockReleaseAndRerelease(WakelockController.WAKE_LOCK_PROXIMITY_POSITIVE, in acquireProxPositiveSuspendBlockerAcquiresIfNotAcquired()129 verifyWakelockAcquisitionAndReaquisition(WakelockController.WAKE_LOCK_PROXIMITY_NEGATIVE, in acquireProxNegativeSuspendBlockerAcquiresIfNotAcquired()137 verifyWakelockReleaseAndRerelease(WakelockController.WAKE_LOCK_PROXIMITY_NEGATIVE, in acquireProxNegativeSuspendBlockerAcquiresIfNotAcquired()[all …]
55 WakelockController mWakelockController;157 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE)).thenReturn(true); in cleanupDisablesTheProximitySensor()294 WakelockController.WAKE_LOCK_PROXIMITY_NEGATIVE); in evaluateProximityStateWhenScreenOffBecauseOfPositiveProximity()321 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE)).thenReturn(true); in evaluateProximityStateWhenDisplayIsTurningOff()347 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE)).thenReturn(true); in evaluateProximityStateNotWaitingForNegativeProximityAndNotUsingProxSensor()367 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE)).thenReturn(true); in emitAndValidatePositiveProximityEvent()373 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); in emitAndValidatePositiveProximityEvent()422 WakelockController.WAKE_LOCK_PROXIMITY_POSITIVE); in setScreenOffBecauseOfPositiveProximityState()
240 WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS); in testReleaseProxSuspendBlockersOnExit()242 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); in testReleaseProxSuspendBlockersOnExit()1597 eq(WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS)); in testDozeScreenStateOverride_toSupportedOffloadStateFromDoze_DisplayStateChanges()2084 final WakelockController wakelockController = mock(WakelockController.class); in createDisplayPowerController()2148 public final WakelockController wakelockController;2163 WakelockController wakelockController, in DisplayPowerControllerHolder()2194 private final WakelockController mWakelockController;2209 WakelockController wakelockController, in TestInjector()2249 WakelockController getWakelockController(int displayId, in getWakelockController()2256 WakelockController wakelockController, DisplayDeviceConfig displayDeviceConfig, in getDisplayPowerProximityStateController()
71 private final WakelockController mWakelockController;156 WakelockController wakeLockController, DisplayDeviceConfig displayDeviceConfig, in DisplayPowerProximityStateController()348 mWakelockController.acquireWakelock(WakelockController.WAKE_LOCK_PROXIMITY_POSITIVE); in sendOnProximityPositiveWithWakelock()353 mWakelockController.acquireWakelock(WakelockController.WAKE_LOCK_PROXIMITY_NEGATIVE); in sendOnProximityNegativeWithWakelock()392 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); in setProximitySensorEnabled()417 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); // acquire wake lock in handleProximitySensorEvent()422 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); // acquire wake lock in handleProximitySensorEvent()447 WakelockController.WAKE_LOCK_PROXIMITY_DEBOUNCE); in debounceProximitySensor()
35 public final class WakelockController { class105 public WakelockController(int displayId, in WakelockController() method in WakelockController
433 private final WakelockController mWakelockController;1344 WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS); in updatePowerStateInternal()1820 mWakelockController.acquireWakelock(WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS); in updatePowerStateInternal()1840 mWakelockController.releaseWakelock(WakelockController.WAKE_LOCK_UNFINISHED_BUSINESS); in updatePowerStateInternal()2417 WakelockController.WAKE_LOCK_STATE_CHANGED); in sendOnStateChangedWithWakelock()3163 WakelockController getWakelockController(int displayId, in getWakelockController()3165 return new WakelockController(displayId, displayPowerCallbacks); in getWakelockController()3169 WakelockController wakelockController, DisplayDeviceConfig displayDeviceConfig, in getDisplayPowerProximityStateController()
10498 …etDisplayPowerProximityStateController(Lcom/android/server/display/WakelockController;Lcom/android…10503 …splay/DisplayManagerInternal$DisplayPowerCallbacks;)Lcom/android/server/display/WakelockController;10559 …PowerProximityStateController;-><init>(Lcom/android/server/display/WakelockController;Lcom/android…10872 …om/android/server/display/WakelockController$$ExternalSyntheticLambda0;-><init>(Lcom/android/serve…10873 PLcom/android/server/display/WakelockController$$ExternalSyntheticLambda0;->run()V10874 …android/server/display/WakelockController;->$r8$lambda$DC3Jjdcy5pC5tkL4-1bzHZx_j9Q(Lcom/android/se…10875 PLcom/android/server/display/WakelockController;-><clinit>()V10876 PLcom/android/server/display/WakelockController;-><init>(ILandroid/hardware/display/DisplayManagerI…10877 PLcom/android/server/display/WakelockController;->acquireStateChangedSuspendBlocker()Z10878 PLcom/android/server/display/WakelockController;->acquireUnfinishedBusinessSuspendBlocker()Z[all …]