Home
last modified time | relevance | path

Searched refs:cameraTest (Results 1 – 20 of 20) sorted by relevance

/drivers/peripheral/camera/test/hdi/v1_0/src/
Dhdi_stream_uttest.cpp26 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 …]
Dhdi_host_uttest.cpp26 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 …]
Dcamera_3a_uttest.cpp26 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);
46cameraTest->StartCapture(cameraTest->streamIdPreview, cameraTest->captureIdPreview, false, true);
52 cameraTest->cameraDevice->UpdateSettings(metaVec);
54 cameraTest->GetCameraMetadata();
55 cameraTest->captureIds = {cameraTest->captureIdPreview};
[all …]
Dhdi_device_uttest.cpp26 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 …]
Ddevice_ability_uttest.cpp27 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/
Dcamera_hdi_uttest_v1_1.cpp27 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/
Dcamera_benchmark_test.cpp28 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/
Dcamera_benchmark_test.cpp28 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/
Dcamera_device_fuzzer.cpp62 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 …]
Dcamera_device_fuzzer.h22 std::shared_ptr<OHOS::Camera::CameraManager> cameraTest = nullptr; variable
/drivers/peripheral/camera/test/fuzztest/camera_host/
Dcamera_host_fuzzer.cpp55cameraTest->serviceV1_1->Prelaunch(reinterpret_cast<const HDI::Camera::V1_1::PrelaunchConfig &>(ra… in HostFuncSwitch()
62 cameraTest->serviceV1_1->GetCameraIds(cameraIds); in HostFuncSwitch()
69cameraTest->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()
92cameraTest->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 …]
Dcamera_host_fuzzer.h23 std::shared_ptr<OHOS::Camera::CameraManager> cameraTest = nullptr; variable
/drivers/peripheral/camera/test/hdi/v1_0/include/
Dhdi_device_uttest.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
Dhdi_host_uttest.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
Ddevice_ability_uttest.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
Dcamera_3a_uttest.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
Dhdi_stream_uttest.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
/drivers/peripheral/camera/test/hdi/v1_1/include/
Dcamera_hdi_uttest_v1_1.h27 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
/drivers/peripheral/camera/test/benchmarktest/v1_1/include/
Dcamera_benchmark_test.h29 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable
/drivers/peripheral/camera/test/benchmarktest/v1_0/include/
Dcamera_benchmark_test.h29 std::shared_ptr<OHOS::Camera::Test> cameraTest = nullptr; variable