summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2022-04-26 14:27:14 -0700
committer Lee Shombert <shombert@google.com> 2022-04-28 14:49:33 +0000
commit23e59a07d9d9d15e8d18778b1d66e22a1b7c7e37 (patch)
treebf17a7a387218483e33b4da986e32f5fba018030 /libs/androidfw/AssetsProvider.cpp
parentb5310919c809ae1bb0b30caf86afb02a54a64d3c (diff)
Allow selective detailed dumps of caches
Bug: 227383489 'dumpsys cacheinfo' can now dump more information about caches, by supplying arguments to the command. If no switches are specified then the behavior is unchanged from the baseline. If any switches are specified then zero or more caches are selected; the command dumps statistics and content for every selected cache. The four switches each include a key string. The switch Selects a cache if --------------------- ------------------ -name-has=<key> the cache name contains the key -property-has=<key> the property name contains the key -name-like=<regex> the cache name matches the regex key -property-like=<regex> the property name matches the regex key Tested by running the following commands and manually verifying the output. dumpsys cacheinfo com.android.systemui dumpsys cacheinfo com.android.systemui -name-has=OrganizationOwned dumpsys cacheinfo com.android.systemui -name-like=OrganizationOwned - no results, as this regex does not match any cache dumpsys cacheinfo com.android.systemui -name-like=.*OrganizationOwned.* dumpsys cacheinfo com.android.systemui -property-has=package_info dumpsys cacheinfo com.android.systemui -property-like=cache_key.package.* Test: * atest FrameworksCoreTests:IpcDataCacheTest * atest FrameworksCoreTests:PropertyInvalidatedCacheTests Change-Id: I141d7e85ba3ea8b0f2615bbd49537c1170fb5449
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions