Skip to content
Commit 52c79d4b authored by Austin Borger's avatar Austin Borger
Browse files

CameraDeviceImpl: Follow through reporting device errors even if the remote...

CameraDeviceImpl: Follow through reporting device errors even if the remote device was never initialized.

It's possible for setRemoteDevice to be called *after* libcameraservice
calls onDeviceError. It would be risky to implement changes to ensure
setRemoteDevice gets called first , so use a simple boolean flag to track
whether the remote device was initialized. If it wasn't, then we can't
assume the user isn't interested in device errors - that is only true if
the device was closed.

Bug: 263429133
Test: Ran CtsCameraTestCases on cuttlefish
Test: StreamedAppBehaviorTest#appsInVirtualDevice_shouldNotHaveAccessToCamera
Change-Id: Id1990dcb17e5ec2afc562bf76e410b58a49dcf77
Merged-In: Id1990dcb17e5ec2afc562bf76e410b58a49dcf77
(cherry picked from commit 2a95ec27)
parent e84b9a03
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