diff --git a/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h b/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h index d21be48888ef844eccafb34f6fea4c87680a0c02..b1effe8310b37569ca05094b66342706bc48c814 100644 --- a/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h +++ b/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h @@ -26,6 +26,7 @@ class DCameraPhotoCallback : public CameraStandard::PhotoStateCallback { public: explicit DCameraPhotoCallback(const std::shared_ptr& callback); void OnCaptureStarted(const int32_t captureID) const override; + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const override; void OnCaptureEnded(const int32_t captureID, const int32_t frameCount) const override; void OnFrameShutter(const int32_t captureId, const uint64_t timestamp) const override; void OnCaptureError(const int32_t captureId, const int32_t errorCode) const override; diff --git a/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp b/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp index 3231589aa4d50384c0d36785f2e4c877b1f1cd79..e6d06ba21123e20534fba7f3db88201bd5a5fbfe 100644 --- a/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp +++ b/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp @@ -29,6 +29,11 @@ void DCameraPhotoCallback::OnCaptureStarted(const int32_t captureID) const DHLOGI("enter, captureID: %d", captureID); } +void DCameraPhotoCallback::OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const +{ + DHLOGI("enter, captureID: %d, exposureTime: %u", captureID, exposureTime); +} + void DCameraPhotoCallback::OnCaptureEnded(const int32_t captureID, const int32_t frameCount) const { DHLOGI("enter, captureID: %d, frameCount: %d", captureID, frameCount); diff --git a/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h b/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h index 12cbdf8920a1d549ef35bb6597ec416d0a2c1992..533e0c5b548f992f20909edd62aaf1b65d59b598 100644 --- a/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h +++ b/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h @@ -199,6 +199,11 @@ public: DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d", captureID); } + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const + { + DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d, exposureTime: %u", captureID, exposureTime); + } + void OnCaptureEnded(const int32_t captureID, int32_t frameCount) const { DHLOGI("DemoDCameraPhotoCallback::OnCaptureEnded captureID: %d frameCount: %d", captureID, frameCount); diff --git a/test/distributedcameraclienttest/dcamera_client_demo.h b/test/distributedcameraclienttest/dcamera_client_demo.h index 80bd2504367309d41afaca3c9624c6982dac0cb8..1d6ed8bd77403139dae111a59ef39d3057af92e8 100644 --- a/test/distributedcameraclienttest/dcamera_client_demo.h +++ b/test/distributedcameraclienttest/dcamera_client_demo.h @@ -199,6 +199,11 @@ public: DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d", captureID); } + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const + { + DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d, exposureTime: %u", captureID, exposureTime); + } + void OnCaptureEnded(const int32_t captureID, int32_t frameCount) const { DHLOGI("DemoDCameraPhotoCallback::OnCaptureEnded captureID: %d frameCount: %d", captureID, frameCount);