diff options
| author | 2022-10-12 20:47:45 +0000 | |
|---|---|---|
| committer | 2022-12-05 20:49:25 +0000 | |
| commit | b4740bc0982bc6138b3d21f076a1f2f58a38ac4b (patch) | |
| tree | 7f8726be7a6e4d5b012ddfbe5e1869b044797a27 /libs/androidfw/ApkParsing.cpp | |
| parent | e36b1ca47758d39b89ab38c6fb8e18164f525b2d (diff) | |
Add getPackageStates to replace forAllPackageStates
Rather than pre-optimize the filtering path, the FilteredSnapshot
now just returns a Map<String, PackageState>.
Any optimization can come in the form of a custom Map implementation
which caches on iteration, but that can be saved for when there's a
use case for that.
This leaves the old API intact for now due to a bulid system quirk
where the dependent CL can't be merged if the API in the prebuilt
doesn't exist.
Test: atest PackageManagerLocalSnapshotTest
For now a simple Map makes the API easier to use.
Bug: 246609797
Change-Id: Ifc68d4753290e2922672859b1a8a15b1ec0795cf
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions