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

Skip to content
Commit a907221c authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Don't cancel AF when the device is disconnected

Under some conditions camera clients may be able to
call 'cancelAutoFocus' immediately after the
Camera2Client disconnects from the Camera3Device.
The device instance will remain valid but some
of the internal resources like the request thread
will be released.
Avoid possible invalid access by checking the
client parameter state and return appropriate
error status in case we are disconnected.

Bug: 323947800
Test: atest -c -d cts/tests/camera/src/android/hardware/cts/
Change-Id: I6e777212168ac92a28cc7b1bc16c7a0eeb7dbb2d
parent 618e9492
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