/foundation/multimedia/player_framework/frameworks/native/recorder/test/unittest/src/ |
H A D | recorder_unit_test.cpp | 96 recorder_ = std::make_shared<RecorderMock>();
in SetUp() 97 ASSERT_NE(nullptr, recorder_);
in SetUp() 98 ASSERT_TRUE(recorder_->CreateRecorder());
in SetUp() 103 if (recorder_ != nullptr) {
in TearDown() 104 recorder_->Release();
in TearDown() 131 EXPECT_EQ(MSERR_OK, recorder_->SetFormat(PURE_AUDIO, g_videoRecorderConfig));
in HWTEST_F() 132 EXPECT_EQ(MSERR_OK, recorder_->Prepare());
in HWTEST_F() 134 EXPECT_EQ(MSERR_OK, recorder_->GetCurrentCapturerChangeInfo(changeInfo));
in HWTEST_F() 136 EXPECT_EQ(MSERR_OK, recorder_->Start());
in HWTEST_F() 138 EXPECT_EQ(MSERR_OK, recorder_ in HWTEST_F() [all...] |
H A D | recorder_mock.cpp | 99 recorder_ = RecorderFactory::CreateRecorder(); in CreateRecorder() 100 return recorder_ != nullptr; in CreateRecorder() 105 UNITTEST_CHECK_AND_RETURN_RET_LOG(recorder_ != nullptr, MSERR_INVALID_OPERATION, "recorder_ == nullptr"); in SetVideoSource() 106 return recorder_->SetVideoSource(source, sourceId); in SetVideoSource() 111 UNITTEST_CHECK_AND_RETURN_RET_LOG(recorder_ != nullptr, MSERR_INVALID_OPERATION, "recorder_ == nullptr"); in SetAudioSource() 112 return recorder_->SetAudioSource(source, sourceId); in SetAudioSource() 117 UNITTEST_CHECK_AND_RETURN_RET_LOG(recorder_ != nullptr, MSERR_INVALID_OPERATION, "recorder_ in SetDataSource() [all...] |
/foundation/multimedia/media_foundation/test/scenetest/helper/ |
H A D | std_audio_recorder.cpp | 49 explicit TestRecorderImpl(std::unique_ptr<IRecorderEngine> recorder) : recorder_(std::move(recorder)) {} in TestRecorderImpl() 59 std::unique_ptr<IRecorderEngine> recorder_; member in OHOS::Media::Test::TestRecorderImpl 80 recorder_->SetAudioSource(recordSource.sourceType_, audioSourceId); in Configure() 81 recorder_->SetOutputFormat(recordSource.outputFormat_); in Configure() 87 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audSampleRate)) == 0, ERR_INVALID_VALUE); in Configure() 88 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audChannel)) == 0, ERR_INVALID_VALUE); in Configure() 89 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audBitRate)) == 0, ERR_INVALID_VALUE); in Configure() 90 FALSE_RETURN_V((recorder_->Configure(audioSourceId, auEncoder)) == 0, ERR_INVALID_VALUE); in Configure() 94 return recorder_->Configure(DUMMY_SOURCE_ID, outFileFD); in Configure() 97 return recorder_ in Configure() [all...] |
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | flutter_render_context.h | 61 if (recorder_) { in FinishRecordingAsPicture() 62 auto picture = recorder_->endRecording(); in FinishRecordingAsPicture() 72 if (recorder_) { in FinishRecordingAsImage() 73 auto picture = recorder_->endRecording(); in FinishRecordingAsImage() 89 fml::RefPtr<flutter::PictureRecorder> recorder_; member in OHOS::Ace::FlutterRenderContext
|
H A D | rosen_render_context.cpp | 124 recorder_ = new SkPictureRecorder(); in StartRecording() 125 recordingCanvas_ = recorder_->beginRecording( in StartRecording() 165 delete recorder_; in StopRecordingIfNeeded() 166 recorder_ = nullptr; in StopRecordingIfNeeded() 225 if (!recorder_) { in FinishRecordingAsPicture() 228 return recorder_->finishRecordingAsPicture(); in FinishRecordingAsPicture() 233 if (!recorder_) { in FinishRecordingAsImage() 236 auto picture = recorder_->finishRecordingAsPicture(); in FinishRecordingAsImage()
|
H A D | flutter_render_context.cpp | 152 recorder_ = flutter::PictureRecorder::Create(); in StartRecording() 154 recorder_.get(), estimatedRect_.Left(), estimatedRect_.Top(), estimatedRect_.Right(), estimatedRect_.Bottom()); in StartRecording() 174 currentLayer_->SetPicture(recorder_->endRecording()); in StopRecordingIfNeeded() 176 recorder_ = nullptr; in StopRecordingIfNeeded()
|
H A D | rosen_render_context.h | 81 SkPictureRecorder* recorder_ = nullptr; member in OHOS::Ace::RosenRenderContext
|
/foundation/multimedia/player_framework/frameworks/js/recorder/ |
H A D | video_recorder_napi.cpp | 46 recorder_ = nullptr; in ~VideoRecorderNapi() 114 recorderNapi->recorder_ = RecorderFactory::CreateRecorder(); in Constructor() 115 CHECK_AND_RETURN_RET_LOG(recorderNapi->recorder_ != nullptr, result, "failed to CreateRecorder"); in Constructor() 117 if (recorderNapi->callbackNapi_ == nullptr && recorderNapi->recorder_ != nullptr) { in Constructor() 119 (void)recorderNapi->recorder_->SetRecorderCallback(recorderNapi->callbackNapi_); in Constructor() 241 if (threadCtx->napi == nullptr || threadCtx->napi->recorder_ == nullptr) { in Prepare() 246 if (threadCtx->napi->recorder_->Prepare() != MSERR_OK) { in Prepare() 289 if (threadCtx->napi == nullptr || threadCtx->napi->recorder_ == nullptr) { in GetInputSurface() 294 threadCtx->napi->surface_ = threadCtx->napi->recorder_->GetSurface(threadCtx->napi->videoSourceID); // source id in GetInputSurface() 348 if (threadCtx->napi == nullptr || threadCtx->napi->recorder_ in Start() [all...] |
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/ |
H A D | skia_recording.cpp | 96 recorder_ = std::make_unique<SkPictureRecorder>(); in BeginCapture() 97 pictureCanvas_ = recorder_->beginRecording(width, height); in BeginCapture() 146 } else if (!recorder_) { in EndCapture() 147 std::cout << "recorder_ is nullptr" << std::endl; in EndCapture() 149 sk_sp<SkPicture> picture = recorder_->finishRecordingAsPicture(); in EndCapture() 170 recorder_.reset(); in EndCapture()
|
H A D | skia_recording.h | 58 std::unique_ptr<SkPictureRecorder> recorder_; member in OHOS::Rosen::SkiaRecording
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_intercept_recorder.cpp | 124 recorder_->PutRecordCache(record); in OnIntercept() 129 auto callback = [this]() { recorder_->SyncRecordCache(); }; in OnIntercept() 130 if (recorder_->GetRecordCacheSize() < RECORD_CACHE_SIZE) { in OnIntercept()
|
/foundation/arkui/ace_engine/frameworks/core/components/camera/standard_system/ |
H A D | camera.cpp | 165 if (recorder_ == nullptr) { in PrepareRecorder() 166 recorder_ = CreateRecorder(); in PrepareRecorder() 168 if (recorder_ == nullptr) { in PrepareRecorder() 182 if (recorder_ != nullptr) { in CloseRecorder() 183 recorder_->Stop(false); in CloseRecorder() 184 recorder_->Release(); in CloseRecorder() 185 recorder_ = nullptr; in CloseRecorder() 324 ret = recorder_->Prepare(); in PrepareVideo() 329 sptr<Surface> recorderSurface = (recorder_->GetSurface(videoSourceId_)); in PrepareVideo() 477 ret = recorder_ in StartRecord() [all...] |
H A D | camera.h | 117 std::shared_ptr<Media::Recorder> recorder_ = nullptr; member in OHOS::Ace::CameraCallback
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_intercept_recorder.h | 33 FirewallCallback(std::shared_ptr<NetFirewallInterceptRecorder> recorder) : recorder_(recorder) in FirewallCallback() 47 std::shared_ptr<NetFirewallInterceptRecorder> recorder_ = nullptr; member in OHOS::NetManagerStandard::NetFirewallInterceptRecorder::FirewallCallback
|
/foundation/multimedia/player_framework/frameworks/native/recorder/test/unittest/include/ |
H A D | recorder_unit_test.h | 30 std::shared_ptr<RecorderMock> recorder_ = nullptr; member in OHOS::Media::RecorderUnitTest
|
H A D | recorder_mock.h | 173 std::shared_ptr<Recorder> recorder_ = nullptr; member in OHOS::Media::RecorderMock
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/ |
H A D | drawing_sample_replayer.cpp | 83 recorder_ = std::make_unique<SkPictureRecorder>(); in InitCapturingSKP() 84 pictureCanvas_ = recorder_->beginRecording(width_, height_); in InitCapturingSKP() 107 sk_sp<SkPicture> picture = recorder_->finishRecordingAsPicture(); in FinilizeCapturingSKP()
|
H A D | drawing_sample_replayer.h | 77 std::unique_ptr<SkPictureRecorder> recorder_; member in OHOS::Rosen::DrawingSampleReplayer
|
/foundation/multimedia/player_framework/frameworks/js/avrecorder/ |
H A D | avrecorder_napi.cpp | 129 jsRecorder->recorder_ = RecorderFactory::CreateRecorder(); in Constructor() 130 CHECK_AND_RETURN_RET_LOG(jsRecorder->recorder_ != nullptr, result, "failed to CreateRecorder"); in Constructor() 137 (void)jsRecorder->recorder_->SetRecorderCallback(jsRecorder->recorderCb_); in Constructor() 165 if (napi->recorder_) { in Destructor() 166 napi->recorder_->Release(); in Destructor() 167 napi->recorder_ = nullptr; in Destructor() 391 CHECK_AND_RETURN_RET(napi != nullptr && napi->recorder_ != nullptr && config != nullptr, in GetPrepareTask() 398 CHECK_AND_RETURN_RET(retinfo.first == MSERR_OK, ((void)napi->recorder_->Reset(), retinfo)); in GetPrepareTask() 400 int32_t ret = napi->recorder_->Prepare(); in GetPrepareTask() 401 CHECK_AND_RETURN_RET(ret == MSERR_OK, ((void)napi->recorder_ in GetPrepareTask() [all...] |
H A D | avrecorder_napi.h | 405 std::shared_ptr<Recorder> recorder_ = nullptr; member in OHOS::Media::AVRecorderNapi
|
/foundation/multimedia/player_framework/services/services/screen_capture/server/ |
H A D | screen_capture_server.cpp | 1063 if (recorder_ != nullptr) { in StartScreenCaptureFile() 1064 recorder_->Release(); in StartScreenCaptureFile() 1065 recorder_ = nullptr; in StartScreenCaptureFile() 1088 ret = recorder_->Start(); in StartScreenCaptureFile() 1265 ret = recorder_->SetVideoSource(captureConfig_.videoInfo.videoCapInfo.videoSource, videoSourceId_); in InitRecorderInfo() 1297 recorder_ = Media::RecorderServer::Create(); in InitRecorder() 1298 CHECK_AND_RETURN_RET_LOG(recorder_ != nullptr, MSERR_UNKNOWN, "init Recoder failed"); in InitRecorder() 1300 recorder_->Release(); in InitRecorder() 1315 ret = recorder_->SetAudioDataSource(audioSource_, audioSourceId_); in InitRecorder() 1321 ret = recorder_ in InitRecorder() [all...] |
/foundation/multimedia/camera_lite/test/unittest/ |
H A D | camera_lite_test.cpp | 290 if (recorder_ != nullptr) { in ~SampleCameraStateMng() 291 recorder_->Release(); in ~SampleCameraStateMng() 329 if (recorder_ != nullptr) { in StartRecord() 332 recorder_ = SampleCreateRecorder(); in StartRecord() 333 if (recorder_ == nullptr) { in StartRecord() 338 ret = recorder_->SetOutputPath(path); in StartRecord() 344 ret = recorder_->Prepare(); in StartRecord() 349 auto surface = recorder_->GetSurface(0); in StartRecord() 355 ret = recorder_->Start(); in StartRecord() 452 if (recorder_ ! in Stop() 474 Recorder *recorder_ = nullptr; global() member in OHOS::SampleCameraStateMng [all...] |
/foundation/multimedia/player_framework/interfaces/kits/js/ |
H A D | video_recorder_napi.h | 106 std::shared_ptr<Recorder> recorder_ = nullptr; member in OHOS::Media::VideoRecorderNapi
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_cloud_kv_store.h | 136 CloudUploadRecorder recorder_; member in DistributedDB::SqliteCloudKvStore
|
H A D | sqlite_cloud_kv_store.cpp | 191 recorder_.SetUser(user_); in GetCloudData() 214 int errCode = SqliteCloudKvExecutorUtils::GetCloudData(GetCloudSyncConfig(), {db, isMemory}, recorder_, *token, in GetCloudDataNext() 281 errCode = SqliteCloudKvExecutorUtils::FillCloudLog({db, ignoreEmptyGid}, opType, data, user_, recorder_); in FillCloudLogAndAsset() 545 recorder_.ReleaseUploadRecord(tableName, type, localMark); in ReleaseUploadRecord()
|