summaryrefslogtreecommitdiff
path: root/include/android/system/core/include/system/camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/android/system/core/include/system/camera.h')
-rw-r--r--include/android/system/core/include/system/camera.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/android/system/core/include/system/camera.h b/include/android/system/core/include/system/camera.h
index a1b68d05..9d69588f 100644
--- a/include/android/system/core/include/system/camera.h
+++ b/include/android/system/core/include/system/camera.h
@@ -204,6 +204,15 @@ enum {
* (except disconnect and sending CAMERA_CMD_PING) after getting this.
*/
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
};