diff options
| author | 2025-01-02 23:43:28 +0000 | |
|---|---|---|
| committer | 2025-01-06 23:59:59 +0000 | |
| commit | d356baef69a1f8c4828c68ddb2e4a16e8452d5d0 (patch) | |
| tree | c5c2574db79cc7f57ec71e1f352fa543df65dfb3 /libs/androidfw/StringPool.cpp | |
| parent | 4514061228f8b93994377d60df6de99e3a29cf9d (diff) | |
Add a simple SystemFeaturesCache abstraction
This cache supports a dense representation of all SDK-defined feature
versions. Used together with build-time defined system features, it
allows efficient runtime feature checks for the P95 set of queries while
minimizing any per-process memory impact (<1KB per cache, ~7x faster
than IPC cache).
A follow-up CL will integrate this into PackageManager.hasSystemFeature
queries behind a flag.
Bug: 203143243
Test: atest FrameworksCoreTests:android.content.pm.SystemFeaturesCache
Test: atest CorePerfTests:android.content.pm.SystemFeaturesPerfTest
Flag: android.content.pm.cache_sdk_system_features
Change-Id: I58e9f9cf322a9d074ba773342f5c18a47c9f066b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions