diff options
| author | 2024-07-25 18:18:36 +0000 | |
|---|---|---|
| committer | 2024-08-02 05:39:45 +0000 | |
| commit | 6f2ffb49305c77b2ca703a47a852b6b18f23b86e (patch) | |
| tree | 6238c083949a81a22240bd116e0f4498f6582135 /libs/androidfw/misc.cpp | |
| parent | 62e9e37492c17a10c417e846dce83096ee505885 (diff) | |
Make doze vars volatile to be thread safe
Brightness changes may be requested on the background thread
around the same time as a screen state change. Make these
doze variables volatile so that when doze is updated,
the correct screen state and brightness values are used.
Bug: 342529814
Flag: EXEMPT bugfix
Test: screen off with UDFPS enrolled; trigger quick
pickup gesture. wait for screen to time out back to screen
off in 6s. Repeat 20 times. Observe screen always
turns back off.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:910782b9f9bc7252c8040b1e3b2a0233d8d28aed)
Merged-In: Ie66014ee100a17b88c451e667feda58df9fc5942
Change-Id: Ie66014ee100a17b88c451e667feda58df9fc5942
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions