diff options
| author | 2024-08-09 17:27:58 +0000 | |
|---|---|---|
| committer | 2024-08-09 20:31:51 +0000 | |
| commit | a7b30e3c6aa47b2511f06fd603b55ba43c1bb1d7 (patch) | |
| tree | 3081c04339340b5333912f3235e276c2e9616002 /libs/androidfw/misc.cpp | |
| parent | 1c60a27490cb770e5ec5341ad15221176f54624f (diff) | |
Synchronize calls to updateDoze
And hold a lock when updating doze
screen state and doze brightness changes.
So updates from different threads are always
ordered to ensure the latest information
is sent to DreamManagerService.
This is more robust than volatile because the actual IPC
call to mDreamManager could still be called out of order if
the calls to DreamManager aren't synchronized.
Fixes: 358578071
Flag: EXEMPT bugfix
Test: manually request display and brightness changes
from separate threads; latest requested values get
sent to DreamManagerService
Change-Id: I0377cce2aa4d30db3850ed98b9f5f6aa050fec49
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions