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
1 file changed