Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62a50c0b authored by Jared Duke's avatar Jared Duke
Browse files

Use SDK_FEATURE_COUNT for IPC cache size hint

Use the SDK_FEATURE_COUNT metadata field to give a tighter bound
for the system feature IPC cache.

Bug: 375000483
Test: atest PackageManagerTest
Flag: EXEMPT refactor
Change-Id: I703e12b6f031cf96e6259d1b9f5c5115129a8ff6
parent 08116c57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -798,7 +798,7 @@ public class ApplicationPackageManager extends PackageManager {
    private final static PropertyInvalidatedCache<HasSystemFeatureQuery, Boolean>
            mHasSystemFeatureCache = new PropertyInvalidatedCache<>(
                new PropertyInvalidatedCache.Args(MODULE_SYSTEM)
                .api(HAS_SYSTEM_FEATURE_API).maxEntries(256).isolateUids(false),
                .api(HAS_SYSTEM_FEATURE_API).maxEntries(SDK_FEATURE_COUNT).isolateUids(false),
                HAS_SYSTEM_FEATURE_API, null) {

                @Override