Loading services/camera/libcameraservice/Camera2Client.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -816,6 +816,8 @@ status_t Camera2Client::startRecordingL(Parameters ¶ms, bool restart) { return INVALID_OPERATION; } mCameraService->playSound(CameraService::SOUND_RECORDING); res = updateRecordingStream(params); if (res != OK) { ALOGE("%s: Camera %d: Unable to update recording stream: %s (%d)", Loading Loading @@ -910,6 +912,8 @@ void Camera2Client::stopRecording() { return; }; mCameraService->playSound(CameraService::SOUND_RECORDING); // Back to preview. Since record can only be reached through preview, // all preview stream setup should be up to date. res = mDevice->setStreamingRequest(mPreviewRequest); Loading Loading @@ -1448,6 +1452,10 @@ const sp<Camera2Device>& Camera2Client::getCameraDevice() { return mDevice; } const sp<CameraService>& Camera2Client::getCameraService() { return mCameraService; } camera2::SharedParameters& Camera2Client::getParameters() { return mParameters; } Loading services/camera/libcameraservice/Camera2Client.h +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ public: int getCameraId() const; const sp<Camera2Device>& getCameraDevice(); const sp<CameraService>& getCameraService(); camera2::SharedParameters& getParameters(); int getPreviewStreamId() const; Loading services/camera/libcameraservice/camera2/CaptureSequencer.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -388,6 +388,10 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture( return DONE; } if (l.mParameters.playShutterSound) { client->getCameraService()->playSound(CameraService::SOUND_SHUTTER); } mTimeoutCount = kMaxTimeoutsForCaptureEnd; return STANDARD_CAPTURE_WAIT; } Loading Loading
services/camera/libcameraservice/Camera2Client.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -816,6 +816,8 @@ status_t Camera2Client::startRecordingL(Parameters ¶ms, bool restart) { return INVALID_OPERATION; } mCameraService->playSound(CameraService::SOUND_RECORDING); res = updateRecordingStream(params); if (res != OK) { ALOGE("%s: Camera %d: Unable to update recording stream: %s (%d)", Loading Loading @@ -910,6 +912,8 @@ void Camera2Client::stopRecording() { return; }; mCameraService->playSound(CameraService::SOUND_RECORDING); // Back to preview. Since record can only be reached through preview, // all preview stream setup should be up to date. res = mDevice->setStreamingRequest(mPreviewRequest); Loading Loading @@ -1448,6 +1452,10 @@ const sp<Camera2Device>& Camera2Client::getCameraDevice() { return mDevice; } const sp<CameraService>& Camera2Client::getCameraService() { return mCameraService; } camera2::SharedParameters& Camera2Client::getParameters() { return mParameters; } Loading
services/camera/libcameraservice/Camera2Client.h +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ public: int getCameraId() const; const sp<Camera2Device>& getCameraDevice(); const sp<CameraService>& getCameraService(); camera2::SharedParameters& getParameters(); int getPreviewStreamId() const; Loading
services/camera/libcameraservice/camera2/CaptureSequencer.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -388,6 +388,10 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture( return DONE; } if (l.mParameters.playShutterSound) { client->getCameraService()->playSound(CameraService::SOUND_SHUTTER); } mTimeoutCount = kMaxTimeoutsForCaptureEnd; return STANDARD_CAPTURE_WAIT; } Loading