diff options
| author | 2024-03-25 15:28:30 -0700 | |
|---|---|---|
| committer | 2024-05-10 00:59:28 +0000 | |
| commit | c9e439051548b5116793f977f96b20d288da8ed5 (patch) | |
| tree | e31366d7d3fa53b90956487f8e14e812f451850d /api/api.go | |
| parent | 9de892ce2a665ed6a26a2e330ecd6faae613eb1a (diff) | |
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
Merged-In: Ia7ac40c768480a39fe0d1dd9392b5777b0fc2694
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions