summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Avichal Rakesh <arakesh@google.com> 2024-02-28 16:10:37 -0800
committer Avichal Rakesh <arakesh@google.com> 2024-02-28 16:20:08 -0800
commit0b5bb472e3553e00b7b8c063c6f7ab8816cb789e (patch)
treee65e39006861360d561b3bf925f573de39d14bba /libs/hwui/FrameInfoVisualizer.cpp
parent06f219260b469091855ac9aa2c37de536950b286 (diff)
Camera2: Fix exception when cameraservice is disabled
When cameraservice is disabled on a device, Camera2 APIs should treat it as if there are no camera devices enumerated and throw the appropriate exceptions. CameraManager's CameraDeviceSetup methods treated cameraservice being disabled separately from no camera devices being enumerated. This CL fixes the API behavior of #isCameraDeviceSetupSupported and #getCameraDeviceSetup to throw an IllegalArgumentException when cameraservice is disabled. Bug: 325760092 Test: atest CtsCameraTestCases:CameraDeviceSetupTest passes on devices with cameraservice disabled. Change-Id: I67ca0f0831846568d34a84df98b03b4f37d8b1ff
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions