summaryrefslogtreecommitdiff
path: root/libs/ui/Camera.cpp
diff options
context:
space:
mode:
author Dave Sparks <davidsparks@android.com> 2009-05-07 12:25:25 -0700
committer Dave Sparks <davidsparks@android.com> 2009-05-07 12:25:25 -0700
commit2a04aefdf03abbdabb035f89c8a1df636c168de0 (patch)
treeaf1373ffe5244655f868c9145fdf3813fe82e66a /libs/ui/Camera.cpp
parent50396063c2fbb1f427cf31e0b8a56567fb5a069c (diff)
Add new binder methods to camera client to support generic callbacks
This is the first step in a multi-step change to move from the old specific callbacks to a generic callback. This will allow future flexibility in the interface without requiring binder rewrites. Bug 1837832
Diffstat (limited to 'libs/ui/Camera.cpp')
-rw-r--r--libs/ui/Camera.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp
index 41577c45574a..ed4f3b82d830 100644
--- a/libs/ui/Camera.cpp
+++ b/libs/ui/Camera.cpp
@@ -397,6 +397,18 @@ void Camera::errorCallback(status_t error)
}
}
+// callback from camera service
+void Camera::notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2)
+{
+ LOGV("notifyCallback");
+}
+
+// callback from camera service when image is ready
+void Camera::dataCallback(int32_t msgType, const sp<IMemory>& frame)
+{
+ LOGV("dataCallback");
+}
+
void Camera::binderDied(const wp<IBinder>& who) {
LOGW("ICamera died");
if (mErrorCallback) {