summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-08-20 17:08:32 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-08-21 17:41:43 -0700
commit412fe56cd7cf7d73bc5d2bcc3f635bc650d18de9 (patch)
tree919a0a09510d53e39c23126f7d4760d761d954d6 /include/camera
parent37ea1d0de9b7c9ffbfa7cb1895dcbf4a4f92803a (diff)
downloadframeworks_av-412fe56cd7cf7d73bc5d2bcc3f635bc650d18de9.zip
frameworks_av-412fe56cd7cf7d73bc5d2bcc3f635bc650d18de9.tar.gz
frameworks_av-412fe56cd7cf7d73bc5d2bcc3f635bc650d18de9.tar.bz2
CameraService: Notify camera service proxy of device status
Send the camera proxy service in system server updates to camera device state: opened/closed/active/idle. Bug: 23393557 Change-Id: Id7c70f134821efa34af8f6e7b4caa4c2ab128ebc
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/ICameraServiceProxy.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/camera/ICameraServiceProxy.h b/include/camera/ICameraServiceProxy.h
index 12a555f..2613c01 100644
--- a/include/camera/ICameraServiceProxy.h
+++ b/include/camera/ICameraServiceProxy.h
@@ -23,15 +23,30 @@
namespace android {
+/**
+ * Interface from native camera service to managed-side camera service proxy.
+ *
+ * Keep in sync with frameworks/base/core/java/android/hardware/ICameraServiceProxy.aidl
+ *
+ */
class ICameraServiceProxy : public IInterface {
public:
enum {
PING_FOR_USER_UPDATE = IBinder::FIRST_CALL_TRANSACTION,
+ NOTIFY_CAMERA_STATE
+ };
+
+ enum CameraState {
+ CAMERA_STATE_OPEN,
+ CAMERA_STATE_ACTIVE,
+ CAMERA_STATE_IDLE,
+ CAMERA_STATE_CLOSED
};
DECLARE_META_INTERFACE(CameraServiceProxy);
virtual void pingForUserUpdate() = 0;
+ virtual void notifyCameraState(String16 cameraId, CameraState newCameraState) = 0;
};
class BnCameraServiceProxy: public BnInterface<ICameraServiceProxy>
@@ -48,5 +63,3 @@ public:
}; // namespace android
#endif // ANDROID_HARDWARE_ICAMERASERVICEPROXY_H
-
-