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

Commit a11c879b authored by petsjonkin's avatar petsjonkin
Browse files

DisplayBrightnessController fixing race with updatePowerState in the middle of setBrightness

setBrightness method delivers brightness to DPC via 2 threads: BrightnessSettings -> mainLopper + DPC -> displayThread
updatePowerState could happen before new brightness is delivered, in this case DisplayManager is not notified about brightness change.

Bug: b/416046693 , b/414262134
Test: atest DisplayPerfTest, atest DisplayBrightnessControllerTest, https://b.corp.google.com/issues/403303379#comment6
Flag: EXEMPT bugfix
Change-Id: I946e219f52a2439ad3405f3b5d7fe5e639d993ac
parent 6cd33417
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