diff options
author | Glenn Kasten <gkasten@google.com> | 2014-09-05 16:46:46 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-09-05 17:12:24 -0700 |
commit | a602086872ad725d257b3be659a774f032f06d71 (patch) | |
tree | fac8c233cc0078000ead15e3ad81027955e52952 /include/powermanager | |
parent | 253c4720af3ac631ba04eb379aea91ecc3175cd3 (diff) | |
download | frameworks_native-a602086872ad725d257b3be659a774f032f06d71.zip frameworks_native-a602086872ad725d257b3be659a774f032f06d71.tar.gz frameworks_native-a602086872ad725d257b3be659a774f032f06d71.tar.bz2 |
Make IPowerManager native conform to .aidl for oneway
But provide a temporary escape hatch for AudioFlinger.
This oneway option will be removed as soon as possible.
Bug: 16408906
Change-Id: I20d6da1969ae05b96e72795463470eb4c1f8fbdc
Diffstat (limited to 'include/powermanager')
-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; }; |