Skip to content
Commit 556815d7 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

CameraManager: Add @TestApi method getCameraIdListNoLazy().



Add getCameraIdListNoLazy() - a test method which necessarily makes a
call to cameraserver in order to get an updated list of camera ids. This
is needed since camera cts tests use SYSTEM_CAMERA permissions in a way
which are not permitted to happen in real world scenarios : processes
cannot gain and lose SYSTEM_CAMERA permissions for permission checking
purposes (through UiAutomation adopt(drop)ShellPermissionIdentity(). In
that case cameraserver doesn't send callback to the client app informing
it that system cameras aren't available.

Bug: 138130599

Test: camera CTS

Change-Id: Ic00951828ea289a1a04b1d655506ef6474336b91
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent e9eb25e1
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