Skip to content
Snippets Groups Projects
Commit c5c84baa authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: add DISABLE error code

Test: CTS CameraEvictionTest + IdleUidTest
Bug: 77486868
Change-Id: I1411d6667776963435ce25bd643a33c41d224921
parent 39edb87a
No related branches found
No related tags found
No related merge requests found
...@@ -203,6 +203,15 @@ enum { ...@@ -203,6 +203,15 @@ enum {
* (except disconnect and sending CAMERA_CMD_PING) after getting this. * (except disconnect and sending CAMERA_CMD_PING) after getting this.
*/ */
CAMERA_ERROR_RELEASED = 2, CAMERA_ERROR_RELEASED = 2,
/**
* Camera was released because device policy change or the client application
* is going to background. The client should call Camera::disconnect
* immediately after getting this notification. Otherwise, the camera will be
* released by camera service in a short time. The client should not call any
* method (except disconnect and sending CAMERA_CMD_PING) after getting this.
*/
CAMERA_ERROR_DISABLED = 3,
CAMERA_ERROR_SERVER_DIED = 100 CAMERA_ERROR_SERVER_DIED = 100
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment