Home
last modified time | relevance | path

Searched refs:screenCapture_ (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/src/
H A Dscreen_capture_unit_test.cpp60 EXPECT_EQ(MSERR_OK, screenCapture_->Init(config_));
64 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
97 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
130 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
163 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
222 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
264 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
306 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
348 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
390 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
[all …]
H A Dscreen_capture_unit_test_exclude.cpp52 screenCapture_->SetMicrophoneEnabled(isMicrophone);
60 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
88 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
116 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
146 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
175 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
216 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
257 EXPECT_EQ(MSERR_OK, screenCapture_->Release());
1733 screenCapture_->SetMicrophoneEnabled(true);
1785 screenCapture_->SetMicrophoneEnabled(true);
[all …]
H A Dscreen_capture_unit_test_state.cpp71 screenCapture_->ReleaseAudioBuffer(type); in OnAudioBufferAvailable()
135 screenCapture_->ReleaseVideoBuffer(); in OnVideoBufferAvailable()
139 screenCapture_->ReleaseVideoBuffer(); in OnVideoBufferAvailable()
417 ASSERT_NE(nullptr, screenCapture_); in SetUp()
426 if (screenCapture_ != nullptr) { in TearDown()
427 screenCapture_->Release(); in TearDown()
428 screenCapture_ = nullptr; in TearDown()
641 if (screenCapture_ == nullptr) { in AudioLoop()
667 if (screenCapture_ == nullptr) { in AudioLoopWithoutRelease()
1245 screenCapture_->SetMicrophoneEnabled(true);
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/native/src/
H A Dscreen_capture_native_mock.cpp91 return screenCapture_->StartScreenCapture(); in StartScreenCapture()
108 return screenCapture_->Init(config); in Init()
114 return screenCapture_->StopScreenCapture(); in StopScreenCapture()
124 return screenCapture_->StartScreenRecording(); in StartScreenRecording()
130 return screenCapture_->StopScreenRecording(); in StopScreenRecording()
142 return screenCapture_->Release(); in Release()
170 return screenCapture_->SkipPrivacyMode(vec); in SkipPrivacyMode()
196 return screenCapture_->ReleaseAudioBuffer(type); in ReleaseAudioBuffer()
202 return screenCapture_->ReleaseVideoBuffer(); in ReleaseVideoBuffer()
214 return screenCapture_->ExcludeContent(filter); in ExcludeWindowContent()
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/capi/src/
H A Dscreen_capture_capi_mock.cpp172 SetScreenCaptureCallback(screenCapture_, callback); in SetScreenCaptureCallback()
177 int ret = OH_AVScreenCapture_SetCallback(screenCapture_, ohCallback); in SetScreenCaptureCallback()
215 return OH_AVScreenCapture_StartScreenCapture(screenCapture_); in StartScreenCapture()
231 return OH_AVScreenCapture_Init(screenCapture_, tempConfig); in Init()
237 return OH_AVScreenCapture_StopScreenCapture(screenCapture_); in StopScreenCapture()
243 return OH_AVScreenCapture_StartScreenRecording(screenCapture_); in StartScreenRecording()
249 return OH_AVScreenCapture_StopScreenRecording(screenCapture_); in StopScreenRecording()
255 DelCallback(screenCapture_); in Release()
256 int32_t ret = OH_AVScreenCapture_Release(screenCapture_); in Release()
257 screenCapture_ = nullptr; in Release()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/capi/screencapture/
H A Dnative_avscreen_capture.cpp45 : screenCapture_(capture) {} in ScreenCaptureObject()
48 const std::shared_ptr<ScreenCapture> screenCapture_ = nullptr; member
216 errCode = ReleaseVideoBuffer(screenCaptureObj->screenCapture_); in OnProcessVideoBuffer()
409 CHECK_AND_RETURN_RET_LOG(screenCaptureObj->screenCapture_ != nullptr, in OH_AVScreenCapture_ExcludeContent()
489 CHECK_AND_RETURN_RET_LOG(screenCaptureObj->screenCapture_ != nullptr, in OH_AVScreenCapture_Init()
493 int32_t ret = screenCaptureObj->screenCapture_->Init(config_); in OH_AVScreenCapture_Init()
513 CHECK_AND_RETURN_RET_LOG(screenCaptureObj->screenCapture_ != nullptr, in OH_AVScreenCapture_StartScreenCapture()
518 ret = screenCaptureObj->screenCapture_->StartScreenCapture(); in OH_AVScreenCapture_StartScreenCapture()
552 int32_t ret = screenCaptureObj->screenCapture_->StopScreenCapture(); in OH_AVScreenCapture_StopScreenCapture()
568 ret = screenCaptureObj->screenCapture_->StartScreenRecording(); in OH_AVScreenCapture_StartScreenRecording()
[all …]
/ohos5.0/base/web/webview/ohos_adapter/screen_capture_adapter/src/
H A Dscreen_capture_adapter_impl.cpp268 if (screenCapture_) { in Init()
272 if (!screenCapture_) { in Init()
293 if (!screenCapture_) { in Release()
297 int32_t ret = screenCapture_->Release(); in Release()
301 screenCapture_ = nullptr; in Release()
306 if (!screenCapture_) { in SetMicrophoneEnable()
320 if (!screenCapture_) { in StartCapture()
333 ret = screenCapture_->StartScreenCapture(); in StartCapture()
343 if (!screenCapture_) { in StopCapture()
377 if (!screenCapture_) { in AcquireVideoBuffer()
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/native/include/
H A Dscreen_capture_native_mock.h25 …explicit ScreenCaptureNativeMock(std::shared_ptr<ScreenCapture> screencapture) : screenCapture_(sc… in ScreenCaptureNativeMock()
53 std::shared_ptr<ScreenCapture> screenCapture_ = nullptr;
61 std::weak_ptr<ScreenCapture> vd) : mockCb_(cb), screenCapture_(vd) {} in ScreenCaptureNativeCallbackMock()
74 std::weak_ptr<ScreenCapture> screenCapture_; variable
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/include/
H A Dscreen_capture_unit_test.h27 … : screenCapture_(ScreenCapture), aFile_(aFile), vFile_(vFile), aFlag_(aFlag), vFlag_(vFlag) {} in ScreenCaptureUnitTestCallback()
29 : screenCapture_(ScreenCapture) {} in ScreenCaptureUnitTestCallback()
54 std::shared_ptr<ScreenCaptureMock> screenCapture_;
92 std::shared_ptr<ScreenCaptureMock> screenCapture_ = nullptr; variable
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp99 jsScreenCapture->screenCapture_ = ScreenCaptureFactory::CreateScreenCapture(); in Constructor()
133 if (napi->screenCapture_) { in Destructor()
134 napi->screenCapture_->Release(); in Destructor()
135 napi->screenCapture_ = nullptr; in Destructor()
536 CHECK_AND_RETURN_RET(napi != nullptr && napi->screenCapture_ != nullptr, in GetInitTask()
539 int32_t ret = napi->screenCapture_->Init(config); in GetInitTask()
572 int32_t ret = napi->screenCapture_->SetMicrophoneEnabled(enable); in GetSetMicrophoneEnableTask()
598 int32_t ret = screenCapture_->SetPrivacyAuthorityEnabled(); in StartRecording()
600 ret = screenCapture_->StartScreenRecording(); in StartRecording()
607 int32_t ret = screenCapture_->StopScreenRecording(); in StopRecording()
[all …]
H A Davscreen_capture_napi.h152 std::shared_ptr<ScreenCapture> screenCapture_ = nullptr; variable
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/capi/include/
H A Dscreen_capture_capi_mock.h25 …explicit ScreenCaptureCapiMock(OH_AVScreenCapture* screencapture) : screenCapture_(screencapture) … in ScreenCaptureCapiMock()
79 OH_AVScreenCapture* screenCapture_ = nullptr; variable
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/screen_capture_adapter_impl_test/
H A Dscreen_capture_adapter_impl_test.cpp504 adapterImpl->screenCapture_.reset(mock);
531 g_screenCapture->screenCapture_ = nullptr;
590 adapterImpl->screenCapture_ = OHOS::Media::ScreenCaptureFactory::CreateScreenCapture();
609 adapterImpl->screenCapture_.reset(mock);
619 adapterImpl->screenCapture_.reset();
/ohos5.0/base/web/webview/ohos_adapter/screen_capture_adapter/include/
H A Dscreen_capture_adapter_impl.h63 std::shared_ptr<Media::ScreenCapture> screenCapture_ = nullptr;