From 410fd1b8383b1c4017da5af3d256a884961ead43 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Tue, 25 Jul 2017 22:31:03 +0100 Subject: Report the display is off when the hardware blanks itself. Some hardware will blank itself coming out of doze to avoid artifacts from being shown. In order to perform a graceful transition from doze to on, tell window manager policy that the display turned off and then turned on without actually telling the display to enter the off state, in order to keep the screen on latency low. Bug: 63531607 Test: manual Merged-In: I4362905e47d5fb47b639c8701c91d69b50aa1232 Change-Id: I4362905e47d5fb47b639c8701c91d69b50aa1232 --- core/res/res/values/config.xml | 5 +- core/res/res/values/symbols.xml | 2 +- .../server/display/DisplayPowerController.java | 79 +++++++++++----------- .../android/server/display/DisplayPowerState.java | 5 ++ .../server/display/LocalDisplayAdapter.java | 3 + 5 files changed, 52 insertions(+), 42 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 8c18dd6e7f30..4ffdc6a30a29 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1854,9 +1854,8 @@ states. --> false - - false + + false