summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Winson Chiu <chiuwinson@google.com> 2022-08-31 17:50:06 +0000
committer Winson Chiu <chiuwinson@google.com> 2022-09-29 21:34:17 +0000
commitc25df89ca763312978f404cd7cecf43d24bc8ab2 (patch)
tree0186208c49d8256718f3928d3ce8ec44bd27981a /libs/androidfw/StringPool.cpp
parent677d18848ecbfe6301ab1661de695ac3737fa14d (diff)
Add PackageManagerLocal snapshot APIs
Exposes 2 separate types, one for unfiltered, another for filtered, for the package data snapshot APIs. Unfiltered can be reused for multiple callers by calling filtered() on it. Each type exposes the most performant variant of the API available. Unfiltered offers the entire PackageState map as-is, as it doesn't require any filtering or copying. The filtered variant offers getPackageState which will do filtering at call time, or forAllPackageStates if someone really needs all of them. The hope is that this method naming causes the caller to only invoke it if the majority of states are actually needed. Bug: 235462722 Test: atest PackageManagerLocalSnapshotTest Change-Id: Ib0bf4f05f12cace681020015d099866b3740dbfe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions