Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1154b310 authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Check IsSleeping to start WAKE transition

Currently, DisplayPolicy#isAwake() is used to see if a WAKE
transition gets started. This assumes that applySleepTokens() is
called before DisplayPolicy#mAwake is updated, but the order is
different depending on how the device is woken up. For example,
if a vendor directly calls PowerManager#wakeUp(), it will be a
race.

With this CL, DisplayContent#mSleeping is checked instead. This
property is updated only in the same function, so there will be
no race whoever wakes up the system.

Bug: 284788259
Test: Manually wake up an app via adb and the window gets shown.
Change-Id: Ic82499cc35ae924478ab7f7484b6cd782c55618e
parent 4f7007cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment