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
Showing
- services/core/java/com/android/server/display/AutomaticBrightnessController.java 10 additions, 4 deletions...android/server/display/AutomaticBrightnessController.java
- services/core/java/com/android/server/display/DisplayPowerController.java 2 additions, 2 deletions...va/com/android/server/display/DisplayPowerController.java
- services/core/java/com/android/server/display/brightness/strategy/AutomaticBrightnessStrategy.java 4 additions, 3 deletions...play/brightness/strategy/AutomaticBrightnessStrategy.java
- services/tests/displayservicetests/src/com/android/server/display/AutomaticBrightnessControllerTest.java 53 additions, 18 deletions...oid/server/display/AutomaticBrightnessControllerTest.java
- services/tests/displayservicetests/src/com/android/server/display/DisplayPowerControllerTest.java 8 additions, 6 deletions...om/android/server/display/DisplayPowerControllerTest.java
- services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/AutomaticBrightnessStrategyTest.java 21 additions, 14 deletions.../brightness/strategy/AutomaticBrightnessStrategyTest.java
Loading
Please register or sign in to comment