Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2ce7ce64 authored by Yanye Li's avatar Yanye Li
Browse files

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
parent 784140a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment