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/client/wake_lock_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/wake_lock_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/client/wake_lock_unittest.cc
|