summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Austin Borger <borgera@google.com> 2023-01-08 14:29:44 -0800
committer Austin Borger <borgera@google.com> 2023-01-10 01:03:04 +0000
commit52c79d4b4f00cc1adbb29949ebe7ac978fce6002 (patch)
treefce67f45d80b7b3099b13cf53e7d40e29f50b981 /api/api.go
parente84b9a0375aab530ead80e43abc7e71b50e7e1f1 (diff)
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 2a95ec27a18eb3526a4c279bcc283e6d7e17c593)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions