diff options
author | 2009-05-07 12:25:25 -0700 | |
---|---|---|
committer | 2009-05-07 12:25:25 -0700 | |
commit | 9b35233ea511eab24aa15de5dc2e94b6f8ed081d (patch) | |
tree | 31e1e46ec081d441165e2f478560901b76192b55 /libs/ui/Camera.cpp | |
parent | 2594c71c1c537fd204b5d1730437f151d31cc343 (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.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 41577c4557..ed4f3b82d8 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) { |