Home
last modified time | relevance | path

Searched refs:mDisplayPowerRequest (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java319 private final DisplayPowerRequest mDisplayPowerRequest = new DisplayPowerRequest(); field in PowerManagerService
2068 if (mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_BRIGHT in updateUserActivitySummaryLocked()
2069 || mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_VR) { in updateUserActivitySummaryLocked()
2071 } else if (mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_DIM) { in updateUserActivitySummaryLocked()
2408 || !mDisplayPowerRequest.isBrightOrDim() in canDreamLocked()
2409 || mDisplayPowerRequest.isVr() in canDreamLocked()
2456 mDisplayPowerRequest.policy = getDesiredScreenPolicyLocked(); in updateDisplayPowerStateLocked()
2476 mDisplayPowerRequest.screenBrightnessOverride = screenBrightnessOverride; in updateDisplayPowerStateLocked()
2477 mDisplayPowerRequest.useAutoBrightness = autoBrightness; in updateDisplayPowerStateLocked()
2478 mDisplayPowerRequest.useProximitySensor = shouldUseProximitySensorLocked(); in updateDisplayPowerStateLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java114 private DisplayPowerRequest mDisplayPowerRequest; field in PowerManagerServiceTest
153 mDisplayPowerRequest = new DisplayPowerRequest(); in setUp()
275 mService.updatePowerRequestFromBatterySaverPolicy(mDisplayPowerRequest); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
276 assertThat(mDisplayPowerRequest.lowPowerMode).isEqualTo(BATTERY_SAVER_ENABLED); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
277 assertThat(mDisplayPowerRequest.screenLowPowerBrightnessFactor) in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()