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

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

camera2: Move getSessionCharacteristics to CameraDeviceSetup

getSessionCharacteristics is currently a part of CameraDevice
which forces apps to call openCamera before being able to query
session characteristics. However, there is no technical reason
for this query to need an open CameraDevice.

To let apps query session characteristics without paying the
latency cost associated with openCamera, this CL moves
getSessionCharacteristics call to CameraDeviceSetup which can
be created trivially.

Bug: 320741775
Test: atest CtsCameraTestCases:CameraDeviceTest passes.
Test: atest CtsCameraTestCases:FeatureCombinationTest passes.
Test: atest CtsCameraTestCases:CameraDeviceSetupTest passes.
Change-Id: Idccea17c685c59afbdd649c8f329c7c42acc70a2
parent b785b9d5
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