Loading include/powermanager/IPowerManager.h +12 −1 Original line number Diff line number Diff line Loading @@ -25,12 +25,23 @@ namespace android { // ---------------------------------------------------------------------------- // must be kept in sync with interface defined in IPowerManager.aidl class IPowerManager : public IInterface { public: // These transaction IDs must be kept in sync with the method order from // IPowerManager.aidl. enum { ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, ACQUIRE_WAKE_LOCK_UID = IBinder::FIRST_CALL_TRANSACTION + 1, RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 2, UPDATE_WAKE_LOCK_UIDS = IBinder::FIRST_CALL_TRANSACTION + 3, POWER_HINT = IBinder::FIRST_CALL_TRANSACTION + 4, }; DECLARE_META_INTERFACE(PowerManager); // The parcels created by these methods must be kept in sync with the // corresponding methods from IPowerManager.aidl. // FIXME remove the bool isOneWay parameters as they are not oneway in the .aidl virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, bool isOneWay = false) = 0; Loading services/powermanager/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -14,4 +14,6 @@ LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../../include include $(BUILD_SHARED_LIBRARY) services/powermanager/IPowerManager.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -27,15 +27,6 @@ namespace android { // must be kept in sync with IPowerManager.aidl enum { ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, ACQUIRE_WAKE_LOCK_UID = IBinder::FIRST_CALL_TRANSACTION + 1, RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 2, UPDATE_WAKE_LOCK_UIDS = IBinder::FIRST_CALL_TRANSACTION + 3, POWER_HINT = IBinder::FIRST_CALL_TRANSACTION + 4, }; class BpPowerManager : public BpInterface<IPowerManager> { public: Loading Loading
include/powermanager/IPowerManager.h +12 −1 Original line number Diff line number Diff line Loading @@ -25,12 +25,23 @@ namespace android { // ---------------------------------------------------------------------------- // must be kept in sync with interface defined in IPowerManager.aidl class IPowerManager : public IInterface { public: // These transaction IDs must be kept in sync with the method order from // IPowerManager.aidl. enum { ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, ACQUIRE_WAKE_LOCK_UID = IBinder::FIRST_CALL_TRANSACTION + 1, RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 2, UPDATE_WAKE_LOCK_UIDS = IBinder::FIRST_CALL_TRANSACTION + 3, POWER_HINT = IBinder::FIRST_CALL_TRANSACTION + 4, }; DECLARE_META_INTERFACE(PowerManager); // The parcels created by these methods must be kept in sync with the // corresponding methods from IPowerManager.aidl. // FIXME remove the bool isOneWay parameters as they are not oneway in the .aidl virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, bool isOneWay = false) = 0; Loading
services/powermanager/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -14,4 +14,6 @@ LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../../include include $(BUILD_SHARED_LIBRARY)
services/powermanager/IPowerManager.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -27,15 +27,6 @@ namespace android { // must be kept in sync with IPowerManager.aidl enum { ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, ACQUIRE_WAKE_LOCK_UID = IBinder::FIRST_CALL_TRANSACTION + 1, RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 2, UPDATE_WAKE_LOCK_UIDS = IBinder::FIRST_CALL_TRANSACTION + 3, POWER_HINT = IBinder::FIRST_CALL_TRANSACTION + 4, }; class BpPowerManager : public BpInterface<IPowerManager> { public: Loading