From 2a04aefdf03abbdabb035f89c8a1df636c168de0 Mon Sep 17 00:00:00 2001 From: Dave Sparks Date: Thu, 7 May 2009 12:25:25 -0700 Subject: 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 --- libs/ui/Camera.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libs/ui/Camera.cpp') 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& frame) +{ + LOGV("dataCallback"); +} + void Camera::binderDied(const wp& who) { LOGW("ICamera died"); if (mErrorCallback) { -- cgit v1.2.3-59-g8ed1b