OSDN Git Service

Actually wait until the display is ready.
authorMichael Wright <michaelwr@google.com>
Tue, 6 Jun 2017 21:01:20 +0000 (22:01 +0100)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Wed, 7 Jun 2017 20:10:08 +0000 (20:10 +0000)
commitd9f1c9c7f2449c09b089fd7fefb1833a88322ab2
tree9e40dbb9a81718008572b80617300fc8083a91a2
parent3a69db7a2a056b9be100b48c1f95fd2d8562b4c9
Actually wait until the display is ready.

When this was rewritten to only wait for display state changes and not
brightness changes, it forgot to take into account whether a change was
already in flight when reporting whether a change was happening. Fix
that so the display appropriately reports when it's ready and when it's
blocked.

Bug: 32559368
Test: Take systrace of device wakeup, see it actually waits until the
      display is actually ready

Change-Id: Ie3bd5c48d109a0fb2628ccc8f67bb52be51fad5c
(cherry picked from commit 640666fcfd4f40ba69dbe459adea7b31407209ac)
services/core/java/com/android/server/display/DisplayPowerState.java