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

Skip to content
Commit 22189025 authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Wear doze -> on transition

1. Don't disable auto-brightness when there's an offload brightness - when we have an offload brightness, we're waiting for a lux sample and we should use one as soon as we have it.

2. Offload brightness should only be used if auto-brightness is enabled (just in case).

3. Don't clear the offload brightness when stopping the offload session - after the session is stopped, if we don't have a lux sample yet, we need to continue to use the offload brightness.

4. The automatic strategy should have a higher priority than the offload strategy - as soon as we have a lux sample, we should use automatic brightness and stop using the offload brightness.

Bug: 327390922
Test: adb shell dumpsys display | grep -i "brightnessEvent"
Test: atest AutomaticBrightnessStrategyTest
Test: atest DisplayBrightnessControllerTest
Test: atest DisplayBrightnessStrategySelectorTest
Test: atest DisplayOffloadSessionImplTest
Test: atest DisplayPowerControllerTest
Change-Id: I541087382c82db877517db07aec3b7ea65ef0abb
parent d0658959
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment