Home
last modified time | relevance | path

Searched refs:mDisplayPowerProximityStateController (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerProximityStateControllerTest.java70 private DisplayPowerProximityStateController mDisplayPowerProximityStateController; field in DisplayPowerProximityStateControllerTest
87 mDisplayPowerProximityStateController = new DisplayPowerProximityStateController( in before()
91 mSensorEventListener = mDisplayPowerProximityStateController.getProximitySensorListener(); in before()
97 assertTrue(mDisplayPowerProximityStateController.setPendingWaitForNegativeProximityLocked( in updatePendingProximityRequestsWorksAsExpectedWhenPending()
100 mDisplayPowerProximityStateController.getPendingWaitForNegativeProximityLocked()); in updatePendingProximityRequestsWorksAsExpectedWhenPending()
103 mDisplayPowerProximityStateController.updatePendingProximityRequestsLocked(); in updatePendingProximityRequestsWorksAsExpectedWhenPending()
104 assertTrue(mDisplayPowerProximityStateController.getWaitingForNegativeProximity()); in updatePendingProximityRequestsWorksAsExpectedWhenPending()
106 mDisplayPowerProximityStateController.getPendingWaitForNegativeProximityLocked()); in updatePendingProximityRequestsWorksAsExpectedWhenPending()
112 mDisplayPowerProximityStateController.updatePendingProximityRequestsLocked(); in updatePendingProximityRequestsWorksAsExpectedWhenNotPending()
113 assertFalse(mDisplayPowerProximityStateController.getWaitingForNegativeProximity()); in updatePendingProximityRequestsWorksAsExpectedWhenNotPending()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/
DDisplayStateControllerTest.java50 private DisplayPowerProximityStateController mDisplayPowerProximityStateController; field in DisplayStateControllerTest
55 mDisplayStateController = new DisplayStateController(mDisplayPowerProximityStateController); in before()
60 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateEvaluatesStateOffPolicyAsExpected()
71 verify(mDisplayPowerProximityStateController).updateProximityState(displayPowerRequest, in updateProximityStateEvaluatesStateOffPolicyAsExpected()
78 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateEvaluatesDozePolicyAsExpected()
86 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateEvaluatesDimPolicyAsExpected()
94 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateEvaluatesDimBrightAsExpected()
102 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
113 verify(mDisplayPowerProximityStateController).updateProximityState(displayPowerRequest, in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
120 when(mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()).thenReturn( in updateProximityStateWorksAsExpectedWhenTransitionPhase()
[all …]
/frameworks/base/services/core/java/com/android/server/display/state/
DDisplayStateController.java34 private DisplayPowerProximityStateController mDisplayPowerProximityStateController; field in DisplayStateController
41 this.mDisplayPowerProximityStateController = displayPowerProximityStateController; in DisplayStateController()
89 mDisplayPowerProximityStateController.updateProximityState(displayPowerRequest, state); in updateDisplayState()
92 || mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()) { in updateDisplayState()
124 if (mDisplayPowerProximityStateController != null) { in dumpsys()
125 mDisplayPowerProximityStateController.dumpLocal(ipw); in dumpsys()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java436 private final DisplayPowerProximityStateController mDisplayPowerProximityStateController; field in DisplayPowerController
519 mDisplayPowerProximityStateController = mInjector.getDisplayPowerProximityStateController( in DisplayPowerController()
522 mDisplayStateController = new DisplayStateController(mDisplayPowerProximityStateController); in DisplayPowerController()
679 return mDisplayPowerProximityStateController.isProximitySensorAvailable(); in isProximitySensorAvailable()
769 boolean changed = mDisplayPowerProximityStateController in requestPowerState()
871 mDisplayPowerProximityStateController.notifyDisplayDeviceChanged(config); in onDisplayChanged()
1238 mDisplayPowerProximityStateController.cleanup(); in cleanupHandlerThreadAfterStop()
1294 mDisplayPowerProximityStateController.updatePendingProximityRequestsLocked(); in updatePowerStateInternal()
1303 mDisplayPowerProximityStateController.updatePendingProximityRequestsLocked(); in updatePowerStateInternal()
1608 != RAMP_STATE_SKIP_NONE) || mDisplayPowerProximityStateController in updatePowerStateInternal()
[all …]