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

Skip to content
Commit 22d63688 authored by Avichal Rakesh's avatar Avichal Rakesh
Browse files

camera2: Ensure SessionCharacteristics and CameraCharactersitics can

be used interchangeably

CameraDeviceSetup#getSessionCharacteristics documentation says that
the returned session characteristics can be used everywhere static
charactersitics from CameraManager#getCameraCharacteristics is.
However #getCameraCharacteristics sets up a few extra fields and
keys in the CameraMetadataNative object returned from cameraservice
that SessionCharacteristics was missing.

To make the return value of #getSessionCharacteristics completely on
par with the return value of #getCameraCharacteristics, this CL
ensures that #getSessionCharacteristics and #getCameraCharateristics
run the same logic on the CameraMetadataNative object returned from
cameraservice before returning it to the caller.

Bug: 303645857
Test: atest android.hardware.camera2.cts.CameraDeviceSetupTest
      passes
Change-Id: Ia7ac40c768480a39fe0d1dd9392b5777b0fc2694
parent 84e1dc18
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