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

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

Camera2: Optimize CameraDeviceSetup query during openCamera

CameraManager#openCamera currently ended up calling public CameraManager
methods to query for CameraDeviceSetup support. While this was
functionally correct, it led to a few extra binder calls which could
significantly increase the latency of openCamera.

This CL moves those calls to private methods that don't do as much error
checking to improve openCamera's performance.

Bug: 326270391
Test: atest PerformanceTest#testCameraLaunch
Change-Id: If78af62bbb78e6a0acd92eb445a884c17079e8ae
parent 381323ab
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