/drivers/peripheral/camera/test/mpi/src/ |
D | video_test.cpp | 27 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 …]
|
D | capture_test.cpp | 26 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 …]
|
D | pipeline_test.cpp | 27 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 …]
|
D | hdi_callback_test.cpp | 27 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 …]
|
D | performance_func_test.cpp | 38 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(); 96 …Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe… [all …]
|
D | preview_test.cpp | 26 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 …]
|
D | hdi_stream_test.cpp | 27 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(); 49 …Test_->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 …]
|
D | stability_test.cpp | 27 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 = 51 … Test_->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 …]
|
D | offline_stream_test.cpp | 27 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 …]
|
D | camera_3a_test.cpp | 26 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 …]
|
D | resolution_test.cpp | 26 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(); 48 …Test_->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 …]
|
D | hdi_host_test.cpp | 27 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 …]
|
D | flashlight_test.cpp | 26 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 …]
|
D | hdi_device_test.cpp | 27 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(); 46 …Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe… 47 EXPECT_EQ(Test_->rc, Camera::NO_ERROR); 59 Test_->Open(); 60 Test_->streamOperatorCallback = nullptr; 61 …Test_->rc = Test_->cameraDevice->GetStreamOperator(Test_->streamOperatorCallback, Test_->streamOpe… [all …]
|
D | dfx_test.cpp | 43 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 …]
|
D | performance_hdi_test.cpp | 38 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 …]
|
D | adapter_test.cpp | 26 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 …]
|
D | device_manager_test.cpp | 26 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 …]
|
D | buffer_manager_test.cpp | 27 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 …]
|
D | open_camera_test.cpp | 26 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/ |
D | preview_test.h | 26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable 27 void CheckCommitStreams(std::shared_ptr<OHOS::Camera::Test> Test_);
|
D | offline_stream_test.h | 28 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
|
D | video_test.h | 26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
|
D | buffer_manager_test.h | 26 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
|
D | hdi_stream_test.h | 27 std::shared_ptr<OHOS::Camera::Test> Test_ = nullptr; variable
|