summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorPatrick Baumann <patb@google.com>2020-09-01 16:52:14 -0700
committerPatrick Baumann <patb@google.com>2020-09-10 13:15:54 -0700
commit40b2a35a9bed74a2c30c144d9dc7d878eee0651a (patch)
tree894ca684984de74a682d4e7a9c0f840fbb0b5799 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent38cc1531f3f52a35dcb8435bd90b677c91574b35 (diff)
Build AppsFilter cache without holding packages lock
This change attempts to update the apps filter cache without holding the package manager lock. It makes a local copy of the package settings and gets the hashcode of each setting's package object. After building the cache, it checks that all of the packges are the same as before the cache was built. If there was a change, the cache is discarded and rebuilt while holding the package lock. Before change: MakePackageManagerServiceReady took to complete: ~30ms MakeDisplayManagerServiceReady took to complete: ~180ms After change: MakePackageManagerServiceReady took to complete: ~110ms MakeDisplayManagerServiceReady took to complete: ~1ms Test: atest AppEnumerationTests Fixes: 167169644 Fixes: 161214066 Bug: 161250592 Bug: 162347084 This change reverts commit 112a64a6dd94903f56272bc5c0d11d32f7b4e2ed. Change-Id: I910d73f4d3b4cb1fe54d667752d40445b1c56906
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions