diff options
Diffstat (limited to 'include/powermanager/IPowerManager.h')
-rw-r--r-- | include/powermanager/IPowerManager.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/powermanager/IPowerManager.h b/include/powermanager/IPowerManager.h index 511797a..91ecc5a 100644 --- a/include/powermanager/IPowerManager.h +++ b/include/powermanager/IPowerManager.h @@ -31,12 +31,15 @@ class IPowerManager : public IInterface public: DECLARE_META_INTERFACE(PowerManager); + // 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) = 0; + const String16& packageName, bool isOneWay = false) = 0; virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, - const String16& packageName, int uid) = 0; - virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) = 0; - virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids) = 0; + const String16& packageName, int uid, bool isOneWay = false) = 0; + virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay = false) = 0; + virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, + bool isOneWay = false) = 0; + // oneway in the .aidl virtual status_t powerHint(int hintId, int data) = 0; }; |