summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Kazuki Takise <takise@google.com> 2024-02-14 15:31:55 +0900
committer Kazuki Takise <takise@google.com> 2024-02-20 09:28:05 +0000
commit1154b31056591b968c6ce95e241929a027a30697 (patch)
tree95d53f54e0b464cdbd9d99e831b50bd4cac39a99 /libs/androidfw/StringPool.cpp
parent4f7007cfcf87b54d853ea8a446d8400ce02d5cb5 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions