diff options
author | Lee Shombert <shombert@google.com> | 2020-10-08 22:06:22 -0700 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2020-10-12 19:26:49 +0000 |
commit | 642aab2c507270b27a32746644114edf593aaee2 (patch) | |
tree | f6b2cd3f9c46db46d3d9cccf027606cbdbf29445 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 4c1deb59b740d306e71468f7c8d1223956d00860 (diff) |
Enable in-process permission caches for system_server
Bug: 170472470
Do not disable the permission caches inside the system server. This
is beneficial because permission checks require many binder calls, and
the cache, even though it is in-process, eliminates those calls.
1. Make the PermissionManager cache more effective by increasing the
maximum size to 2048. Experiments show that the high-water mark is
about 600.
2. Suppress cache content in the 'dumpsys cacheinfo' output. dumpsys
fails if the output is too large in a single process, and the new
caches push the system server cacheinfo over the limit. The
content can be added to the output by setting the new DETAILED
boolean in PropertyInvalidatedCache to true, but this flag should
never be committed with a value of true.
Test: two atest runs
* atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testGetPermissionGrantState
* atest FrameworksServicesTests:NetworkPolicyManagerServiceTest
Change-Id: I7d3c1f34b44216bb510319ca5b6aced1cc53e05d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions