diff options
author | Daniel Erat <derat@google.com> | 2015-09-30 17:04:48 -0600 |
---|---|---|
committer | Daniel Erat <derat@google.com> | 2015-10-02 16:07:17 -0600 |
commit | c2a4b05a931fbf3ecbf1915049b549b33dae8ba5 (patch) | |
tree | 09f634d0354560e0576b9b774fd8910ad14fce7b /daemon/Android.mk | |
parent | 77ca78c8d297564db431a5b3a9165e170bb7c72a (diff) | |
download | nativepower-c2a4b05a931fbf3ecbf1915049b549b33dae8ba5.tar.gz |
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
Diffstat (limited to 'daemon/Android.mk')
-rw-r--r-- | daemon/Android.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/Android.mk b/daemon/Android.mk index 6677233..fdc18d4 100644 --- a/daemon/Android.mk +++ b/daemon/Android.mk @@ -22,6 +22,7 @@ nativepowerman_CommonCIncludes := $(LOCAL_PATH)/../include nativepowerman_CommonSharedLibraries := \ libbinder \ libchrome \ + libcutils \ libpowermanager \ libutils \ @@ -78,6 +79,7 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_SRC_FILES := \ BnPowerManager.cc \ power_manager.cc \ + system_property_setter.cc \ wake_lock_manager.cc \ include $(BUILD_STATIC_LIBRARY) @@ -97,6 +99,7 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_SRC_FILES := \ power_manager_unittest.cc \ + system_property_setter_stub.cc \ wake_lock_manager_stub.cc \ wake_lock_manager_unittest.cc \ |