commit | d7367c39c48b5a05482b49dbc5c67f8920f9aff6 | [log] [tgz] |
---|---|---|
author | Michael Wright <michaelwr@google.com> | Wed Dec 07 00:16:25 2022 +0000 |
committer | Rupesh Bansal <brup@google.com> | Wed Dec 14 19:22:59 2022 +0000 |
tree | 88597d6aa051ee7b0c5e87e5fda44cd789e155fa | |
parent | 4ee9f703bbc2800b8cefdbaba2adfd845f791509 [diff] |
Sleep softly on device close. Add a new flag GO_TO_SLEEP_FLAG_SOFT_SLEEP. When set, this sleeps the device only if its user activity keeping it awake. If its otherwise staying awake because an application is holding a wakelock, then the device continues to stay awake. Bug: 260705307 Test: atest PowerManagerServiceTest Test: manual Change-Id: I08b6dacf418d927b4f86816b1b6d19965e68556a