Fix Wear brightness after tilt-to-wake
When performing a tilt-to-wake gesture on a Wear device, if the offload session fails, the policy is POLICY_DOZE but the screen state is STATE_ON. The doze scale factor shouldn't be applied if the screen is on. The initial doze brightness or the default doze brightness shouldn't be used if the screen is on. Bug: 328490718 Bug: 328797653 Test: adb logcat | grep -i "brightnessEvent" Test: atest AutomaticBrightnessControllerTest Test: atest AutomaticBrightnessStrategyTest Test: atest DisplayPowerControllerTest Change-Id: Ic223bb73a5f5ded28c8be3a8e73c1d494be78a29
Loading
Please register or sign in to comment