History log of /system/nativepower/client/power_manager_client_unittest.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e4d4a81d6b56d66970f0332c6db2b898f60510c8 07-Oct-2015 Daniel Erat <derat@google.com> Support suspending the system immediately.

Add PowerManagerClient::Suspend(), which instructs
nativepowerman to write "mem" to /sys/power/state.

Bug: 24672953
Change-Id: Icd5d5e8a28a784d632a8e8b7168421acd92be1dd
/system/nativepower/client/power_manager_client_unittest.cc
c2a4b05a931fbf3ecbf1915049b549b33dae8ba5 01-Oct-2015 Daniel Erat <derat@google.com> Support shutting down and rebooting.

Implement the shutdown and reboot Binder methods from the
IPowerManager interface.

Also introduce a new PowerManagerClient class within
libnativepower. Programs that wish to interact with the
power manager should instantiate it a PowerManagerClient and
then use it to issue commands to the power manager and to
create WakeLock objects.

Bug: 22122485
Change-Id: Id82d9221d7f90c18ae12221334e35ffd6e488e17
/system/nativepower/client/power_manager_client_unittest.cc