diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-05 18:09:08 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-13 10:30:23 -0800 |
commit | 44deb053252a3bd2f57a007ab9560f4924f62394 (patch) | |
tree | 57fac6fb14c9f7897409b54b360afebef59c2e70 /services/audioflinger/Android.mk | |
parent | 860936d780d98a5968f40e66ca6ae800c67adbc3 (diff) | |
download | frameworks_av-44deb053252a3bd2f57a007ab9560f4924f62394.zip frameworks_av-44deb053252a3bd2f57a007ab9560f4924f62394.tar.gz frameworks_av-44deb053252a3bd2f57a007ab9560f4924f62394.tar.bz2 |
Factor out and speed up permission-checking code
Use the caching permission check for dump to save IPC.
Cache getpid() to save kernel call for other permission checks.
The C runtime library getpid() can't cache due to a fork
race condition, but we know that mediaserver doesn't fork.
Don't construct String16 on the stack.
Change-Id: I6be6161dae5155d39ba6ed6228e7683e67be34ed
Diffstat (limited to 'services/audioflinger/Android.mk')
-rw-r--r-- | services/audioflinger/Android.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/Android.mk b/services/audioflinger/Android.mk index deeb2de..157405a 100644 --- a/services/audioflinger/Android.mk +++ b/services/audioflinger/Android.mk @@ -6,7 +6,8 @@ LOCAL_SRC_FILES:= \ AudioFlinger.cpp \ AudioMixer.cpp.arm \ AudioResampler.cpp.arm \ - AudioPolicyService.cpp + AudioPolicyService.cpp \ + ServiceUtilities.cpp # AudioResamplerSinc.cpp.arm # AudioResamplerCubic.cpp.arm |