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
Loading
Please register or sign in to comment