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

Skip to content
Commit 04c0e02c authored by Jared Duke's avatar Jared Duke
Browse files

Add SystemFeaturesMetadata.maybeGetSdkFeatureIndex

Add a simple index lookup method for feature names. This returns:
  * [0, SDK_FEATURE_INDEX) for PackageManager-defined system features
  * -1 otherwise

This will be used in a follow-up to efficiently compute a dense array
of cached system feature versions that can be used for fast lookup in
client processes.

Bug: 375000483
Test: atest SystemFeaturesMetadataProcessorTest
Flag: EXEMPT currently unused
Change-Id: I145c08f7eb58b832534f62950357a18f7b4e3651
parent 93b436df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment