summaryrefslogtreecommitdiffstats
path: root/camera/libcameraservice/CameraHardwareStub.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:23 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:23 -0800
commit276293246ea9cbc0a578a7697cc48930376ec0e9 (patch)
tree03804488c60dda65699333d2311c8d1842ec4b65 /camera/libcameraservice/CameraHardwareStub.cpp
parente09fd9e819c23dc90bca68375645e15544861330 (diff)
downloadframeworks_native-276293246ea9cbc0a578a7697cc48930376ec0e9.tar.gz
frameworks_native-276293246ea9cbc0a578a7697cc48930376ec0e9.tar.bz2
frameworks_native-276293246ea9cbc0a578a7697cc48930376ec0e9.zip
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'camera/libcameraservice/CameraHardwareStub.cpp')
-rw-r--r--camera/libcameraservice/CameraHardwareStub.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/libcameraservice/CameraHardwareStub.cpp b/camera/libcameraservice/CameraHardwareStub.cpp
index ea21af82b..3d6b0b1ea 100644
--- a/camera/libcameraservice/CameraHardwareStub.cpp
+++ b/camera/libcameraservice/CameraHardwareStub.cpp
@@ -183,6 +183,10 @@ void CameraHardwareStub::stopPreview()
mPreviewThread.clear();
}
+bool CameraHardwareStub::previewEnabled() {
+ return mPreviewThread != 0;
+}
+
// ---------------------------------------------------------------------------
int CameraHardwareStub::beginAutoFocusThread(void *cookie)