6df89a05e0ff87b7d51be58b6e39407034f9e6f5 |
|
20-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
nativepower: Update libchrome APIs to r369476 The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. (cherry picked from commit b59838fa1f7ec24a0d1e632026ce94a7329afb63) Change-Id: I76f832fa3de2b6b7778b7b29e7668dca14f4e799
/system/nativepower/daemon/power_manager_unittest.cc
|
4f13a604088be86b9df607655d75b039aa5da4d2 |
|
16-Oct-2015 |
Daniel Erat <derat@google.com> |
Look up callers' UIDs when wake locks are acquired. Update PowerManager::acquireWakeLock() to get the calling process's actual UID instead of just storing -1. (The UID isn't used for anything, though.) Also do some related refactoring that came up while adding tests: to avoid duplicated code, make PowerManagerStub use WakeLockManagerStub instead of recording wake lock requests itself. Bug: 24988639 Change-Id: If2d2d2935052ab268f6b21dd72a7b1f02a66d799
/system/nativepower/daemon/power_manager_unittest.cc
|
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/daemon/power_manager_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/daemon/power_manager_unittest.cc
|
cb57344ce792f41e58bc476840a82eba14b0fde9 |
|
18-Sep-2015 |
Daniel Erat <derat@google.com> |
Add libnativepower and nativepowerman. Add the skeleton of a C++ library and daemon that can be used for power management by Brillo. Bug: 22122485 Change-Id: I3769ecc3e7b43efc3e03af4afada48d570f56ef9
/system/nativepower/daemon/power_manager_unittest.cc
|