diff options
| author | 2024-06-20 14:43:13 +0000 | |
|---|---|---|
| committer | 2024-06-24 13:32:49 +0000 | |
| commit | c777ddc55323a5094083f1edd9dfacd3b4efd8d2 (patch) | |
| tree | 4e5600d0299365dec9a06488ea82609f6abd2ab6 /libs/androidfw/FileStream.cpp | |
| parent | 73e875a674db7cad661ce78c6fbd8474049521a2 (diff) | |
Fix auto-brightness when display on and policy doze
This is restoring the original behaviour from before ag/26149495 was merged - don't run auto-brightness if we have POLICY_DOZE and display STATE_ON.
Also, if config allows auto-brightness in doze, enable it if policy is POLICY_DOZE so that we can keep running auto-brightness after a tilt-to-wake gesture (after which we have POLICY_DOZE and display STATE_ON), but not if the screen is off.
Bug: 341827308
Test: AutomaticBrightnessStrategyTest, AutomaticBrightnessStrategy2Test
Flag: not needed, this is a regression fix
Change-Id: Idb92abfa5ec4823125d1b9076941df0e724f030e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions