diff options
author | Marco Nelissen <marcone@google.com> | 2013-10-02 12:42:20 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2013-10-03 08:49:07 -0700 |
commit | 9a7706bb174cdac279908f705191803dc5bfa0ab (patch) | |
tree | 0fed42f56aefb237d6d561a80c510e80480b984f /include | |
parent | 86206b41b2ff000e086301c6bafb8da577e563b2 (diff) | |
download | frameworks_native-9a7706bb174cdac279908f705191803dc5bfa0ab.zip frameworks_native-9a7706bb174cdac279908f705191803dc5bfa0ab.tar.gz frameworks_native-9a7706bb174cdac279908f705191803dc5bfa0ab.tar.bz2 |
Allow blaming a single uid for work done
This lets audioflinger assign blame for wakelocks to a single uid.
Currently this is only used for recording wakelocks.
b/10985160
Change-Id: Idc9adb22c29030010ac690d4cb95e7e7ea6b91e6
Diffstat (limited to 'include')
-rw-r--r-- | include/powermanager/IPowerManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/powermanager/IPowerManager.h b/include/powermanager/IPowerManager.h index e21e6a8..2f4c3c4 100644 --- a/include/powermanager/IPowerManager.h +++ b/include/powermanager/IPowerManager.h @@ -32,6 +32,8 @@ public: virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName) = 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; }; |