summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2013-10-03 08:51:24 -0700
committerMarco Nelissen <marcone@google.com>2013-10-03 13:54:53 -0700
commite14a5d6d2cc91dd2fc09ffdf7aa670b37da0795d (patch)
treeab8d3ea087c653c632068af36e443c5c3609cfe4 /services/audioflinger/Threads.h
parent3d97e23fcd78f752443cb6c30a1ee39f49f1f987 (diff)
downloadframeworks_av-e14a5d6d2cc91dd2fc09ffdf7aa670b37da0795d.zip
frameworks_av-e14a5d6d2cc91dd2fc09ffdf7aa670b37da0795d.tar.gz
frameworks_av-e14a5d6d2cc91dd2fc09ffdf7aa670b37da0795d.tar.bz2
Better recording wake lock accounting
Count wake lock use against the app that initiated the recording, not against the media server. b/10985160 Change-Id: Iae6e6c030b7f1c6081d9c79725d6990f60dadaaa
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 241424f..0cb3ef7 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -237,8 +237,8 @@ protected:
effect_uuid_t mType; // effect type UUID
};
- void acquireWakeLock();
- void acquireWakeLock_l();
+ void acquireWakeLock(int uid = -1);
+ void acquireWakeLock_l(int uid = -1);
void releaseWakeLock();
void releaseWakeLock_l();
void setEffectSuspended_l(const effect_uuid_t *type,
@@ -951,4 +951,5 @@ private:
// For dumpsys
const sp<NBAIO_Sink> mTeeSink;
+ int mClientUid;
};