Home
last modified time | relevance | path

Searched refs:WakelockController (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DWakelockControllerTest.java47 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 …]
DDisplayPowerProximityStateControllerTest.java55 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()
DDisplayPowerControllerTest.java240 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()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerProximityStateController.java71 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()
DWakelockController.java35 public final class WakelockController { class
105 public WakelockController(int displayId, in WakelockController() method in WakelockController
DDisplayPowerController.java433 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()
/frameworks/base/services/
Dart-wear-profile10498 …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()V
10874 …android/server/display/WakelockController;->$r8$lambda$DC3Jjdcy5pC5tkL4-1bzHZx_j9Q(Lcom/android/se…
10875 PLcom/android/server/display/WakelockController;-><clinit>()V
10876 PLcom/android/server/display/WakelockController;-><init>(ILandroid/hardware/display/DisplayManagerI…
10877 PLcom/android/server/display/WakelockController;->acquireStateChangedSuspendBlocker()Z
10878 PLcom/android/server/display/WakelockController;->acquireUnfinishedBusinessSuspendBlocker()Z
[all …]