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.java339 private final DisplayPowerRequest mDisplayPowerRequest = new DisplayPowerRequest(); field in PowerManagerService
2303 if (mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_BRIGHT
2304 || mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_VR) {
2306 } else if (mDisplayPowerRequest.policy == DisplayPowerRequest.POLICY_DIM) {
2781 || !mDisplayPowerRequest.isBrightOrDim()
2782 || mDisplayPowerRequest.isVr()
2833 mDisplayPowerRequest.policy = getDesiredScreenPolicyLocked();
2853 mDisplayPowerRequest.screenBrightnessOverride = screenBrightnessOverride;
2854 mDisplayPowerRequest.useAutoBrightness = autoBrightness;
2855 mDisplayPowerRequest.useProximitySensor = shouldUseProximitySensorLocked();
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java131 private DisplayPowerRequest mDisplayPowerRequest; field in PowerManagerServiceTest
177 mDisplayPowerRequest = new DisplayPowerRequest(); in setUp()
368 mService.updatePowerRequestFromBatterySaverPolicy(mDisplayPowerRequest); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
369 assertThat(mDisplayPowerRequest.lowPowerMode).isEqualTo(BATTERY_SAVER_ENABLED); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
370 assertThat(mDisplayPowerRequest.screenLowPowerBrightnessFactor) in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()