summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-05 18:09:08 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-13 10:30:23 -0800
commit81211143c3cc62857d1316eff22c382c39d648a0 (patch)
tree5025cf2b63c96868d7288a42263698871b606e1e /build
parentf96901f8ccf7e5bdb05bb22ca1b522c381f05043 (diff)
downloadframeworks_base-81211143c3cc62857d1316eff22c382c39d648a0.zip
frameworks_base-81211143c3cc62857d1316eff22c382c39d648a0.tar.gz
frameworks_base-81211143c3cc62857d1316eff22c382c39d648a0.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 'build')
0 files changed, 0 insertions, 0 deletions