summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNg Zhi An <zhin@google.com>2019-01-24 13:45:57 -0800
committerZhi An Ng <zhin@google.com>2019-02-12 23:15:52 +0000
commit1033db8ddfb0aafba84e07f08c44139fd1466f52 (patch)
tree507ad3f2b33e44072d6cec8ae4e61e483e39ee0c /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent8eacbb3396e22c91e3fd88471ae87e7fe44e5385 (diff)
Do not load xml metadata for unchanged packages in RegisteredServicesCache
RegisteredServicesCache caches services in an xml, so the system doesn't have to scan all the apks. Whenever a package is changed (add/remove/replaced), the broadcast receiver in RegisteredServicesCache will refresh this cache by quering all matching services and reading their xml metadata. There is extra work done here, because only the changed package will have services added/removed. The edge case is after a cache is invalidated, we want to query package manager for everything, regardless of what changedUids is (we could have arrived here if invalidateCache is called, and then a package change event fires, before a getAllServices is called to rescan everything). Add a new test to verify that the optimization takes care of the case when the cache is invalidated. Bug: 117755076 Bug: 122912184 Test: atest RegisteredServicesCache Test: dumpsys content # check sync adapters Change-Id: I5c1f57108c4b67d24b198000d57216c63d35290a (cherry picked from commit dc66ef5ed383a889779adcd455826dcd1534ccf9)
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions