Camera2: Add Session Characteristic keys by query version.
The current implementation of
`CameraCharacteristics#getAvailableSessionCharacteristicsKeys` just
hard codes the keys that will be supported in Android V. However, this
meant that there was no way of adding support for more keys in the future.
This CL uses AVAILABLE_SESSION_CHARACTERISTICS_KEYS_MAP which is
generated from metadata_definitions.xml to dynamically calculate the
output of getAvailableSessionCharacteristicsKeys. This allows the output
of the API to change depending on the HAL capability.
Bug: 303645857
Test: atest android.hardware.camera2.cts.CameraDeviceSetupTest passes
Change-Id: I62cdc73b18100ade705d4d91d03669273ad7ed93
3 files changed