diff options
author | 2009-01-09 17:51:23 -0800 | |
---|---|---|
committer | 2009-01-09 17:51:23 -0800 | |
commit | b798689749c64baba81f02e10cf2157c747d6b46 (patch) | |
tree | da394a395ddb1a6cf69193314846b03fe47a397e /libs/ui/Camera.cpp | |
parent | f013e1afd1e68af5e3b868c26a653bbfb39538f8 (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"); |