summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/CameraService.h
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-09-11 19:31:10 -0700
committerNipun Kwatra <nkwatra@google.com>2010-09-14 13:57:59 -0700
commitb5ca4618a722a21f084fe8bfc1c2992749ccd3f0 (patch)
tree51ee3a6bdcb6301db5b34168a105409f2d4cf4a6 /services/camera/libcameraservice/CameraService.h
parentd20b4cfde2848052cf93ed13df14d75347ec64fd (diff)
downloadframeworks_av-b5ca4618a722a21f084fe8bfc1c2992749ccd3f0.zip
frameworks_av-b5ca4618a722a21f084fe8bfc1c2992749ccd3f0.tar.gz
frameworks_av-b5ca4618a722a21f084fe8bfc1c2992749ccd3f0.tar.bz2
Adding enable/disable option for sendCommand()
- Added enum CAMERA_CMD_ENABLE_SHUTTER_SOUND which corresponds to command type for enabling/disabling shutter sound. - The implementation checks if it is legal to disable shutter sound. If it is, then any process can disable the sound. If not, then only the mediaserver process is allowed to do this. Currently time lapse capture needs this functionality to disable shutter sound when still mode is used to capture time lapse video. Change-Id: Id147a3bcc6a345c2c6a6d52bf98fd8292386bb19
Diffstat (limited to 'services/camera/libcameraservice/CameraService.h')
-rw-r--r--services/camera/libcameraservice/CameraService.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h
index 7ed192e..2b5c511 100644
--- a/services/camera/libcameraservice/CameraService.h
+++ b/services/camera/libcameraservice/CameraService.h
@@ -138,6 +138,9 @@ private:
status_t startPreviewMode();
status_t startRecordingMode();
+ // internal function used by sendCommand to enable/disable shutter sound.
+ status_t enableShutterSound(bool enable);
+
// these are static callback functions
static void notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2, void* user);
static void dataCallback(int32_t msgType, const sp<IMemory>& dataPtr, void* user);
@@ -171,6 +174,7 @@ private:
int mOverlayH;
int mPreviewCallbackFlag;
int mOrientation;
+ bool mPlayShutterSound;
// Ensures atomicity among the public methods
mutable Mutex mLock;