summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/ServiceUtilities.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use correct pid when running under test harnessGlenn Kasten2013-04-181-2/+3
| | | | | | | | This is a partial fix which addresses one of the root causes of this bug, but only when running under test harness. It has no effect otherwise. Bug: 8598539 Change-Id: I87444daef1d76b17544f331e651ba1c87893c381
* Factor out and speed up permission-checking codeGlenn Kasten2012-02-131-0/+55
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