diff options
author | 2009-01-09 18:24:37 -0800 | |
---|---|---|
committer | 2009-01-09 18:24:37 -0800 | |
commit | e570a0fa86c2eea2680f07e2c0c546f104bea948 (patch) | |
tree | e616ea122bf171bab3b3765b5023c4167b31e0d8 /libs/ui/Camera.cpp | |
parent | 9bdf576615231e4b9693f08bfe3dc886c2edf49e (diff) | |
parent | b798689749c64baba81f02e10cf2157c747d6b46 (diff) |
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'libs/ui/Camera.cpp')
-rw-r--r-- | libs/ui/Camera.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 9527009575fa..4a325ac2e0f3 100644 --- a/libs/ui/Camera.cpp +++ b/libs/ui/Camera.cpp @@ -136,6 +136,18 @@ sp<ICamera> Camera::remote() return mCamera; } +status_t Camera::lock() +{ + if (mCamera != 0) return mCamera->lock(); + return NO_INIT; +} + +status_t Camera::unlock() +{ + if (mCamera != 0) return mCamera->unlock(); + return NO_INIT; +} + // pass the buffered ISurface to the camera service status_t Camera::setPreviewDisplay(const sp<Surface>& surface) { @@ -172,6 +184,13 @@ void Camera::stopPreview() mCamera->stopPreview(); } +// get preview state +bool Camera::previewEnabled() +{ + LOGV("previewEnabled"); + return mCamera->previewEnabled(); +} + status_t Camera::autoFocus() { LOGV("autoFocus"); |