/drivers/peripheral/camera/test/hdi/v1_0/src/ |
D | hdi_stream_uttest.cpp | 26 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 27 cameraTest->Init(); in SetUp() 32 cameraTest->Close(); in TearDown() 43 cameraTest->Open(); 44 EXPECT_EQ(false, cameraTest->cameraDevice == nullptr); 45 cameraTest->streamOperatorCallback = new OHOS::Camera::Test::TestStreamOperatorCallback(); 46 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 47 cameraTest->streamOperator); 48 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 55 cameraTest->streamInfo = std::make_shared<StreamInfo>(); [all …]
|
D | hdi_host_uttest.cpp | 26 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 27 cameraTest->Init(); in SetUp() 32 cameraTest->Close(); in TearDown() 43 EXPECT_EQ(true, cameraTest->cameraDevice == nullptr); 44 if (cameraTest->cameraDevice == nullptr) { 45 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); 46 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 47 EXPECT_LT(0, cameraTest->cameraIds.size()); 48 CAMERA_LOGE("check hdi_host: cameraIds.size() = %{public}zu", cameraTest->cameraIds.size()); 60 EXPECT_EQ(true, cameraTest->cameraDevice == nullptr); [all …]
|
D | camera_3a_uttest.cpp | 26 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 27 cameraTest->Init(); in SetUp() 28 cameraTest->Open(); in SetUp() 33 cameraTest->Close(); in TearDown() 44 cameraTest->intents = {PREVIEW}; 45 cameraTest->StartStream(cameraTest->intents); 46 … cameraTest->StartCapture(cameraTest->streamIdPreview, cameraTest->captureIdPreview, false, true); 52 cameraTest->cameraDevice->UpdateSettings(metaVec); 54 cameraTest->GetCameraMetadata(); 55 cameraTest->captureIds = {cameraTest->captureIdPreview}; [all …]
|
D | hdi_device_uttest.cpp | 26 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 27 cameraTest->Init(); in SetUp() 32 cameraTest->Close(); in TearDown() 43 cameraTest->Open(); 44 cameraTest->streamOperatorCallback = new OHOS::Camera::Test::TestStreamOperatorCallback(); 45 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 46 cameraTest->streamOperator); 47 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 58 cameraTest->Open(); 59 cameraTest->streamOperatorCallback = nullptr; [all …]
|
D | device_ability_uttest.cpp | 27 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 28 cameraTest->Init(); in SetUp() 29 cameraTest->Open(); in SetUp() 34 cameraTest->Close(); in TearDown()
|
/drivers/peripheral/camera/test/hdi/v1_1/src/ |
D | camera_hdi_uttest_v1_1.cpp | 27 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 32 cameraTest->Close(); in TearDown() 43 cameraTest->Init(); 44 if (cameraTest->serviceV1_1 == nullptr) { 47 cameraTest->Open(); 48 if (cameraTest->cameraDeviceV1_1 == nullptr) { 51 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>(); 52 cameraTest->prelaunchConfig->cameraId = "device/0"; 53 cameraTest->prelaunchConfig->streamInfos_V1_1 = {}; 54 cameraTest->prelaunchConfig->setting = {}; [all …]
|
/drivers/peripheral/camera/test/benchmarktest/v1_0/src/ |
D | camera_benchmark_test.cpp | 28 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 29 cameraTest->Init(); in SetUp() 34 cameraTest->Close(); in TearDown() 47 EXPECT_EQ(true, cameraTest->cameraDevice == nullptr); in BENCHMARK_F() 48 if (cameraTest->cameraDevice == nullptr) { in BENCHMARK_F() 49 cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F() 50 cameraTest->deviceCallback = new OHOS::Camera::Test::DemoCameraDeviceCallback(); in BENCHMARK_F() 52 cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), in BENCHMARK_F() 53 cameraTest->deviceCallback,cameraTest->cameraDevice); in BENCHMARK_F() 55 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); in BENCHMARK_F() [all …]
|
/drivers/peripheral/camera/test/benchmarktest/v1_1/src/ |
D | camera_benchmark_test.cpp | 28 cameraTest = std::make_shared<OHOS::Camera::Test>(); in SetUp() 29 cameraTest->Init(); in SetUp() 34 cameraTest->Close(); in TearDown() 47 cameraTest->Open(); in BENCHMARK_F() 48 EXPECT_EQ(false, cameraTest->serviceV1_1 == nullptr); in BENCHMARK_F() 49 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>(); in BENCHMARK_F() 50 cameraTest->prelaunchConfig->cameraId = {}; in BENCHMARK_F() 51 cameraTest->prelaunchConfig->streamInfos_V1_1 = {}; in BENCHMARK_F() 52 cameraTest->prelaunchConfig->setting = {}; in BENCHMARK_F() 54 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); in BENCHMARK_F() [all …]
|
/drivers/peripheral/camera/test/fuzztest/camera_device/ |
D | camera_device_fuzzer.cpp | 62 cameraTest->cameraDeviceV1_1->GetDefaultSettings(abilityVec); in DeviceFuncSwitch() 71 cameraTest->cameraDeviceV1_1->GetStreamOperator_V1_1(callback, g_StreamOperator); in DeviceFuncSwitch() 80 cameraTest->cameraDeviceV1_1->GetStreamOperator(callback, g_StreamOperator); in DeviceFuncSwitch() 87 cameraTest->cameraDeviceV1_1->UpdateSettings(abilityVec); in DeviceFuncSwitch() 91 cameraTest->cameraDeviceV1_1->SetResultMode( in DeviceFuncSwitch() 99 cameraTest->cameraDeviceV1_1->GetEnabledResults(result); in DeviceFuncSwitch() 106 cameraTest->cameraDeviceV1_1->EnableResult(result); in DeviceFuncSwitch() 113 cameraTest->cameraDeviceV1_1->DisableResult(result); in DeviceFuncSwitch() 133 cameraTest = std::make_shared<OHOS::Camera::CameraManager>(); in DoSomethingInterestingWithMyApi() 134 cameraTest->Init(); in DoSomethingInterestingWithMyApi() [all …]
|
D | camera_device_fuzzer.h | 22 std::shared_ptr<OHOS::Camera::CameraManager> cameraTest = nullptr; variable
|
/drivers/peripheral/camera/test/fuzztest/camera_host/ |
D | camera_host_fuzzer.cpp | 55 …cameraTest->serviceV1_1->Prelaunch(reinterpret_cast<const HDI::Camera::V1_1::PrelaunchConfig &>(ra… in HostFuncSwitch() 62 cameraTest->serviceV1_1->GetCameraIds(cameraIds); in HostFuncSwitch() 69 …cameraTest->serviceV1_1->GetCameraAbility(*reinterpret_cast<const std::string *>(rawData), ability… in HostFuncSwitch() 78 cameraTest->serviceV1_1->OpenCamera( in HostFuncSwitch() 87 cameraTest->serviceV1_1->OpenCamera_V1_1( in HostFuncSwitch() 92 … cameraTest->serviceV1_1->SetFlashlight(*reinterpret_cast<const std::string *>(rawData), true); in HostFuncSwitch() 110 cameraTest = std::make_shared<OHOS::Camera::CameraManager>(); in DoSomethingInterestingWithMyApi() 111 cameraTest->Init(); in DoSomethingInterestingWithMyApi() 112 if (cameraTest->serviceV1_1 == nullptr) { in DoSomethingInterestingWithMyApi() 115 cameraTest->Open(); in DoSomethingInterestingWithMyApi() [all …]
|
D | camera_host_fuzzer.h | 23 std::shared_ptr<OHOS::Camera::CameraManager> cameraTest = nullptr; variable
|
/drivers/peripheral/camera/test/hdi/v1_0/include/ |
D | hdi_device_uttest.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
D | hdi_host_uttest.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
D | device_ability_uttest.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
D | camera_3a_uttest.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
D | hdi_stream_uttest.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
/drivers/peripheral/camera/test/hdi/v1_1/include/ |
D | camera_hdi_uttest_v1_1.h | 27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
/drivers/peripheral/camera/test/benchmarktest/v1_1/include/ |
D | camera_benchmark_test.h | 29 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|
/drivers/peripheral/camera/test/benchmarktest/v1_0/include/ |
D | camera_benchmark_test.h | 29 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
|