diff options
| author | 2024-09-20 20:06:17 +0000 | |
|---|---|---|
| committer | 2024-09-20 20:06:17 +0000 | |
| commit | 2ce7ce64227e1a13198111f6cb20e4830a2d80df (patch) | |
| tree | 7c37e363663a9e2288b2c9533ab3fb6e78580134 /libs/androidfw/StringPool.cpp | |
| parent | 784140a07354af24f4e8724cf68ce9530590d9fd (diff) | |
PowerManagerShellCommand: Add sleep and wakeup
Add commands for requesting PowerManager to sleep/wakeup
through adb shell. sleep immediately requests a sleep and
wake up has an option of immediate request or scheduled
request with rpc-wake from kernel suspend.
This helps host side test & host side debugging use
generic PowerManager's way of sleeping & resuming, rather
than directly invoking them at kernel level or simulating
any particular action such as pressing the power button.
Change-Id: I1c090284ca3aa1944c64313b51d51f35a68a93e0
Bug:358729339
Test: adb shell cmd power wakeup 100000/1000000
Test: adb shell cmd power sleep
Test: DUT sleeps and wakes up in 10/100 secs
Test: android-build.corp.google.com/abtd/run/L45200030006131882
Flag: NONE no flag available
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions