summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2019-06-07 13:07:27 -0400
committerFabian Kozynski <kozynski@google.com>2019-06-10 12:25:12 -0400
commit7c86b633e261ce2de04beeb91f465179af2509f4 (patch)
tree0321417edd251d5906efc3c03b276337d7a80550 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8b19acac9014259c828de8865bff5f6065f2cab4 (diff)
Add cache to AppOpsController
Reduces the Binder calls from AppOpsControllerImpl to PackageManager#getPermissionFlags by caching calls for 10s (moltmann@ recommended this expiration time). Also, modify AppOpsControllerImpl#notifySuscribers to use the bg Thread. Currently calls to getPermissionFlags only happen in two functions: * AppOpsControllerImpl#notifySuscribers * AppOpsControllerImpl#getActiveAppOpsForUser First one in only called from bg thread and second one is called from a bg thread from PrivacyItemController. In a future CL, this calling will be enforced at the entry point (getActiveAppOpsForUser) Test: atest PermissionFlagsCacheTest AppOpsControllerTest Bug: 134687592 Change-Id: I6fa9e2d865bc295f6325935e2df574b8b758214a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions