diff options
author | Jeff Sharkey <jsharkey@android.com> | 2019-05-15 19:19:59 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2019-05-15 19:20:01 -0600 |
commit | 951f99ba02eee6086ea82d97b536765ef90965b5 (patch) | |
tree | abef2b509d7be7b2913f7277ec0bebdccdd56d19 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | cfaa8ead5900f0867d9b90db1c51f92fdbd56ece (diff) |
Cache resolved details about remote callers.
The logic in MediaProvider is technically correct, but it's sometimes
inefficient in calling into the OS multiple times with the same
questions, such as validating getCallingPackage().
To mitigate this overhead, and start paving the way for more dynamic
delegation of permission checks, collect these details into a
LocalCallingIdentity object. We carefully perform all permissions
checking against this new object, and avoid using any other
thread-local values from ContentProvider or Binder.
Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 37%.
This change is a no-op refactoring.
Bug: 130758409, 115619667
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: If250a7675f2246cd10881acf615619d6d6061f3d
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions