summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/doze/AlwaysOnDisplayPolicy.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove contents of DependencyProvider.Dave Mankoff2022-04-141-0/+5
| | | | | | | | Now marked as deprecated. Bug: 229228871 Test: manual Change-Id: I872806af23243171e9123c18a5a06201513a3d79
* Clamp brightness to dim value if we're timing out and playing the screen off ↵Josh Tsuji2021-07-021-0/+9
| | | | | | | | | | animation. This is the value PowerManager uses to dim the screen just before timeout, per https://source.corp.google.com/sc-dev/frameworks/base/core/res/res/values/config.xml;l=1349?q=config_screenBrightnessDim. Fixes: 190581215 Test: watch the screen off, no brightness jump Change-Id: I54856416dae1270c4379cb0547712edeba02b204
* Remove DozeFactory. Add DozeComponent/DozeScope.Dave Mankoff2020-07-091-0/+10
| | | | | | | | | | | This replaces DozeFactory with some Dagger idioms. The DozeComponent is a subcomponent, created by DozeService, for all your Doze related needs. Items that should only live within the DozeService can be annotated with @DozeScope. Fixes: 159701507 Test: atest SystemUITests && manual Change-Id: I76d0709b1689408d95b4913d0d46761174cf5ea9
* AodPolicy: Fix service leakAdrian Roos2018-04-231-0/+1
| | | | | | | | | | | Fixes an issue where the AlwaysOnDisplayPolicy leaked a service context, and with it the entirety of DozeMachine, preventing wakelocks from being GCed and preventing them from being fallback-released. Bug: 78402666 Test: Toggle screen on and off a few times, verify that DozeService is not being leaked. Change-Id: Ie3ad67c2d0c83760f4d04a53394fab4a3a35d6bc
* Hide AoD wallpaper after 1minLucas Dupin2017-12-181-0/+26
| | | | | | | | | | | Hide wallpaper by cross fading back scrim. This increases battery life since black pixels won't drain power. Bug: 64155983 Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java Test: set AoD wallpaper, wait for 1 min. Test: set AoD wallpaper, wait for 50 sec, go to pulsing, wait 10 sec. Change-Id: Ie830c2fd20f9e60efbfd9e78f248603df07ae93c
* add integer array values to KeyValueListParserChris Wren2017-12-071-18/+2
| | | | | Test: atest NotificationSnoozeTest KeyValueListParserTest AlwaysOnDisplayPolicyTest Change-Id: Ia26cd38258c2cf83558a9a39a6b1c2ec6dedfcb1
* enable experiments for AOD timeoutChris Wren2017-09-281-28/+72
| | | | | | Bug: 67009600 Test: runtest systemui Change-Id: I5505b69051a55608b3c3803c48dd51603845e9c9
* AOD Policy: Fix pausing timeout to use minutes instead of secondsAdrian Roos2017-09-051-3/+3
| | | | | | Bug: 65010918 Change-Id: I2a5f3a2109a38d7093fd0ea84fbb1026eb6c1215 Test: On AOD cover prox for 10s. Verify screen turns off.
* Hook up AOD knobs to Settings.Globaljackqdyulei2017-08-311-0/+122
This cl creates AlwaysOnDisplayPolicy, which get values for the following knobs(go/aod-experiments) from Settings.Global: 1. screen_brightness_array 2. dimming_scrim_array 3. prox_screen_off_delay 4. prox_cooldown_trigger 5. prox_cooldown_period Also update code to make sure AlwaysOnDisplayPolicy is used everywhere. Bug: 64899561 Test: runtest -x AlwaysOnDisplayPolicyTest Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f