summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authoratrost <atrost@google.com>2020-02-24 21:17:28 +0000
committeratrost <atrost@google.com>2020-02-25 13:20:10 +0000
commitc1877300d3c05676931724761ff76c88bb1fbf1b (patch)
tree7447bdee3b43bc2c48ee538aba8d2b2eb7c8b129 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent1fd15d207357e3a3d9ee0743c2f65da266fd5b5f (diff)
Cache binder calls in CompatChanges
Cached call values are kept in ChangeIdStateCache (per-process cache). Use "cache_key.is_compat_change_enabled" system property to invalidate the cache (i.e. any value different from the last observed will trigger an invalidation). Any process can read that property, but only system server can change it. Rolling forward the original caching with invalidating the cache upon package install/update. Tested fix locally by using the API in SoftRestrictedPermissionPolicy.java, and running android.permission2.cts.RestrictedStoragePermissionSharedUidTest which installs some apps with the same uid, which modifies the result of isChangeEnabled. With the additional cache invalidation the test passes. ToDo: add CTS test for the caching. Bug: 140441727 Test: atest PlatformCompatTest Test: atest CompatConfigTest Test: atest CompatChangesTest Test: atest PlatformCompatGating Change-Id: I0265df1c427b43592e4f4d32fe9cfeb8fbc1bfa9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions