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

Skip to content
Commit 84e1dc18 authored by Avichal Rakesh's avatar Avichal Rakesh
Browse files

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
parent 3fbb8193
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment