commit | 12f92eb6cf222b9998c3a8affaa909a44b5c0ad0 | [log] [tgz] |
---|---|---|
author | Santos Cordon <santoscordon@google.com> | Fri Feb 01 21:28:47 2019 +0000 |
committer | Santos Cordon <santoscordon@google.com> | Fri Feb 15 17:23:18 2019 +0000 |
tree | acbbf0a68c368ec7346bb07c93e2207120c644d8 | |
parent | b68b8a84831d480c1c254dcb271f0f31f95f315f [diff] |
Add force suspend API to PowerManager. Add a hidden system API (protected by DEVICE_POWER) that forces suspend, ignoring any existing wakelock. Add a shell cmd to trigger the API to run. Bug: 111991113 Test: 'adb shell svc power forcesuspend' Change-Id: I5a258e1b7c8b1391fe1baf3930dd9d9af47235c9