Home
last modified time | relevance | path

Searched refs:Test_ (Results 1 – 25 of 40) sorted by relevance

12

/drivers/peripheral/camera/test/mpi/src/
Dvideo_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
29 Test_->Open(); in SetUp()
33 Test_->Close(); in TearDown()
47 Test_->intents = {Camera::PREVIEW, Camera::VIDEO};
48 Test_->StartStream(Test_->intents);
50 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
52 Test_->StartCapture(Test_->streamId_video, Test_->captureId_video, false, true);
55 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_video};
56 Test_->streamIds.push_back(Test_->streamId_preview);
[all …]
Dcapture_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
46 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
47 Test_->StartStream(Test_->intents);
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
51 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
53 Test_->captureIds = {Test_->captureId_preview, Test_->captureId_capture};
54 Test_->streamIds.push_back(Test_->streamId_preview);
[all …]
Dpipeline_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
29 Test_->Open(); in SetUp()
33 Test_->Close(); in TearDown()
46 Test_->intents = {Camera::PREVIEW};
47 Test_->StartStream(Test_->intents);
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
51 Test_->captureIds = {Test_->captureId_preview};
52 Test_->streamIds = {Test_->streamId_preview};
53 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Dhdi_callback_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
43 Test_->Open();
44 Test_->onCameraStatusFlag = false;
47 Test_->intents = {Camera::PREVIEW};
48 Test_->StartStream(Test_->intents);
50 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
52 Test_->captureIds = {Test_->captureId_preview};
53 Test_->streamIds = {Test_->streamId_preview};
[all …]
Dperformance_func_test.cpp38 Test_->Close(); in TearDown()
58 Test_ = std::make_shared<OHOS::Camera::Test>();
59 Test_->Init();
60 Test_->Open();
65 Test_->Close();
89 Test_ = std::make_shared<OHOS::Camera::Test>();
90 Test_->Init();
91 Test_->Open();
95 Test_->CreateStreamOperatorCallback();
96Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe…
[all …]
Dpreview_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
45 Test_->intents = {Camera::PREVIEW};
46 Test_->StartStream(Test_->intents);
48 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
50 Test_->captureIds = {Test_->captureId_preview};
51 Test_->streamIds = {Test_->streamId_preview};
52 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Dhdi_stream_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
45 Test_->Open();
46 EXPECT_EQ(false, Test_->cameraDevice == nullptr);
48 Test_->CreateStreamOperatorCallback();
49Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe…
50 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
60 Test_->streamInfo = std::make_shared<Camera::StreamInfo>();
61 Test_->streamInfo->streamId_ = 1001; // 1001:streamId
[all …]
Dstability_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
43 if (Test_->cameraDevice == nullptr) {
46 Test_->service->GetCameraIds(Test_->cameraIds);
47 Test_->CreateDeviceCallback();
50 Test_->rc =
51Test_->service->OpenCamera(Test_->cameraIds.front(), Test_->deviceCallback, Test_->cameraDevice);
52 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
53 EXPECT_EQ(true, Test_->cameraDevice != nullptr);
[all …]
Doffline_stream_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
29 Test_->Open(); in SetUp()
33 Test_->Close(); in TearDown()
47 Test_->intents = {Camera::PREVIEW, Camera::STILL_CAPTURE};
48 Test_->StartStream(Test_->intents);
50 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
52 Test_->StartCapture(Test_->streamId_capture, Test_->captureId_capture, false, true);
55 Test_->CreateOfflineStreamOperatorCallback();
57 offlineIds.push_back(Test_->streamId_capture);
[all …]
Dcamera_3a_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
46 Test_->intents = {Camera::PREVIEW};
47 Test_->StartStream(Test_->intents);
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
54 Test_->cameraDevice->UpdateSettings(meta);
57 Test_->GetCameraMetadata();
59 Test_->captureIds = {Test_->captureId_preview};
[all …]
Dresolution_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
47 Test_->CreateStreamOperatorCallback();
48Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe…
49 EXPECT_EQ(true, Test_->rc == Camera::NO_ERROR);
50 if (Test_->rc == Camera::NO_ERROR) {
53 std::cout << "==========[test log]GetStreamOperator fail, rc = " << Test_->rc << std::endl;
56 Test_->streamInfo_pre = std::make_shared<Camera::StreamInfo>();
[all …]
Dhdi_host_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
44 if (Test_->cameraDevice == nullptr) {
45 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
46 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
47 EXPECT_LT(0, Test_->cameraIds.size());
48 …std::cout << "==========[test log]Check hdi_host:cameraIds.size()= ."<< Test_->cameraIds.size() <<…
61 if (Test_->cameraDevice == nullptr) {
62 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
[all …]
Dflashlight_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->GetCameraAbility(); in SetUp()
32 Test_->Close(); in TearDown()
44 Test_->status = true;
45 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
46 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
60 Test_->status = true;
61 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
62 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
[all …]
Dhdi_device_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
32 Test_->Close(); in TearDown()
44 Test_->Open();
45 Test_->CreateStreamOperatorCallback();
46Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe…
47 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
59 Test_->Open();
60 Test_->streamOperatorCallback = nullptr;
61Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe…
[all …]
Ddfx_test.cpp43 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
44 Test_->Init(); in SetUp()
48 Test_->Close(); in TearDown()
66 Test_->Open();
68 Test_->intents = {Camera::PREVIEW};
69 Test_->StartStream(Test_->intents);
71 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
73 Test_->captureIds = {Test_->captureId_preview};
74 Test_->streamIds = {Test_->streamId_preview};
75 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Dperformance_hdi_test.cpp38 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
39 Test_->Init(); in SetUp()
43 Test_->Close(); in TearDown()
63 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
67 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
90 if (Test_->cameraDevice == nullptr) {
91 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
92 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
96 Test_->rc = Test_->service->GetCameraAbility(Test_->cameraIds.front(), Test_->ability);
100 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
[all …]
Dadapter_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
45 Test_->intents = {Camera::PREVIEW};
46 Test_->StartStream(Test_->intents);
48 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
50 Test_->captureIds = {Test_->captureId_preview};
51 Test_->streamIds = {Test_->streamId_preview};
52 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Ddevice_manager_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
28 Test_->Open(); in SetUp()
32 Test_->Close(); in TearDown()
46 Test_->intents = {Camera::PREVIEW};
47 Test_->StartStream(Test_->intents);
49 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
51 Test_->captureIds = {Test_->captureId_preview};
52 Test_->streamIds = {Test_->streamId_preview};
53 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Dbuffer_manager_test.cpp27 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
28 Test_->Init(); in SetUp()
29 Test_->Open(); in SetUp()
33 Test_->Close(); in TearDown()
47 Test_->intents = {Camera::PREVIEW};
48 Test_->StartStream(Test_->intents);
50 Test_->StartCapture(Test_->streamId_preview, Test_->captureId_preview, false, true);
52 Test_->captureIds = {Test_->captureId_preview};
53 Test_->streamIds = {Test_->streamId_preview};
54 Test_->StopStream(Test_->captureIds, Test_->streamIds);
[all …]
Dopen_camera_test.cpp26 Test_ = std::make_shared<OHOS::Camera::Test>(); in SetUp()
27 Test_->Init(); in SetUp()
43 Test_->service->GetCameraIds(Test_->cameraIds);
44 std::cout << "==========[test log]cameraIds size = "<< Test_->cameraIds.size() << std::endl;
45 for (const auto &cameraId : Test_->cameraIds) {
48 std::string cameraId = Test_->cameraIds.front();
49 Test_->CreateDeviceCallback();
50 Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);
51 EXPECT_EQ(Test_->rc, Camera::NO_ERROR);
52 if (Test_->rc== Camera::NO_ERROR) {
[all …]
/drivers/peripheral/camera/test/mpi/include/
Dpreview_test.h26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
27 void CheckCommitStreams(std::shared_ptr<OHOS::Camera::Test> Test_);
Doffline_stream_test.h28 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
Dvideo_test.h26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
Dbuffer_manager_test.h26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
Dhdi_stream_test.h27 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable

12