Home
last modified time | relevance | path

Searched refs:cameraIds (Results 1 – 25 of 46) sorted by relevance

12

/drivers/peripheral/camera/test/mpi/src/
Dhdi_host_test.cpp45 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
47 EXPECT_LT(0, Test_->cameraIds.size());
48 …std::cout << "==========[test log]Check hdi_host:cameraIds.size()= ."<< Test_->cameraIds.size() <<…
62 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
64 for (int i=0; i<Test_->cameraIds.size(); i++) {
65 Test_->rc = Test_->service->GetCameraAbility(Test_->cameraIds[i], Test_->ability);
66 …std::cout << "==========[test log]Check hdi_host: cameraid = " << Test_->cameraIds[i] << std::endl;
116 Test_->service->GetCameraIds(Test_->cameraIds);
118 …Test_->rc = Test_->service->OpenCamera(Test_->cameraIds.front(), Test_->deviceCallback, Test_->cam…
189 Test_->service->GetCameraIds(Test_->cameraIds);
[all …]
Dopen_camera_test.cpp43 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();
72 Test_->service->GetCameraIds(Test_->cameraIds);
73 for (auto &cameraId : Test_->cameraIds) {
Dflashlight_test.cpp45 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
61 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
66 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
86 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
112 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
146 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
173 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
Dstability_test.cpp46 Test_->service->GetCameraIds(Test_->cameraIds);
51 … Test_->service->OpenCamera(Test_->cameraIds.front(), Test_->deviceCallback, Test_->cameraDevice);
282 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), status);
288 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), status);
/drivers/peripheral/camera/test/hdi/v1_0/src/
Dhdi_host_uttest.cpp45 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds);
47 EXPECT_LT(0, cameraTest->cameraIds.size());
48 CAMERA_LOGE("check hdi_host: cameraIds.size() = %{public}zu", cameraTest->cameraIds.size());
94 cameraTest->service->GetCameraIds(cameraTest->cameraIds);
96 …cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), cameraTest->device…
206 cameraTest->service->GetCameraIds(cameraTest->cameraIds);
208 …cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), cameraTest->device…
242 cameraTest->service->GetCameraIds(cameraTest->cameraIds);
244 …cameraTest->rc = cameraTest->service->SetFlashlight(cameraTest->cameraIds.front(), cameraTest->sta…
293 cameraTest->service->GetCameraIds(cameraTest->cameraIds);
[all …]
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameragetcameraIds_fuzzer/
DdcameragetcameraIds_fuzzer.cpp31 std::vector<std::string> cameraIds; in DcameraGetCameraIdsFuzzTest() local
32 cameraIds.push_back(cameraId); in DcameraGetCameraIdsFuzzTest()
33 DCameraHost::GetInstance()->GetCameraIds(cameraIds); in DcameraGetCameraIdsFuzzTest()
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
Dcamera_host_vdi_impl.cpp58 std::vector<std::string> cameraIds; in Init() local
59 RetCode rc = config->GetCameraIds(cameraIds); in Init()
65 for (auto &cameraId : cameraIds) { in Init()
106 int32_t CameraHostVdiImpl::GetCameraIds(std::vector<std::string> &cameraIds) in GetCameraIds() argument
115 RetCode rc = config->GetCameraIds(cameraIds); in GetCameraIds()
219 std::vector<std::string> cameraIds; in CameraIdInvalid() local
220 RetCode ret = config->GetCameraIds(cameraIds); in CameraIdInvalid()
221 if (ret != RC_OK || cameraIds.empty()) { in CameraIdInvalid()
225 auto itr = std::find(cameraIds.begin(), cameraIds.end(), cameraId); in CameraIdInvalid()
226 if (itr == cameraIds.end()) { in CameraIdInvalid()
Dcamera_host_config.cpp87 RetCode CameraHostConfig::GetCameraIds(std::vector<std::string> &cameraIds) in GetCameraIds() argument
91 cameraIds.push_back(itr->first); in GetCameraIds()
/drivers/peripheral/camera/test/fuzztest/common/src/
Dcommon.cpp50 service->GetCameraIds(cameraIds); in Open()
51 if (cameraIds.size() == 0) { in Open()
57 rc = serviceV1_1->OpenCamera_V1_1(cameraIds.front(), deviceCallback, cameraDeviceV1_1); in Open()
70 rc = service->GetCameraAbility(cameraIds.front(), abilityVec); in GetCameraMetadata()
/drivers/peripheral/camera/test/fuzztest/camera_host/
Dcamera_host_fuzzer.cpp59 std::vector<std::string> cameraIds = {}; in HostFuncSwitch() local
61 cameraIds.push_back(*data); in HostFuncSwitch()
62 cameraTest->serviceV1_1->GetCameraIds(cameraIds); in HostFuncSwitch()
/drivers/peripheral/camera/test/ut/usb_camera/
Dusb_camera_test.cpp45 std::vector<std::string> cameraIds; in TEST_F() local
47 cameraBase_->cameraHost->GetCameraIds(cameraIds); in TEST_F()
48 std::cout << "==========[test log] First cameraId.size = " << cameraIds.size() << std::endl; in TEST_F()
50 for (const auto &cameraId : cameraIds) { in TEST_F()
59 std::cout << "==========[test log] Second cameraId.size = " << cameraIds.size() << std::endl; in TEST_F()
60 if (cameraIds.size() == 1) { in TEST_F()
61 cameraIds.clear(); in TEST_F()
63 rc = cameraBase_->cameraHost->GetCameraIds(cameraIds); in TEST_F()
65 for (const auto &cameraId : cameraIds) { in TEST_F()
69 g_usbCameraExit = cameraIds.size() > 1; in TEST_F()
[all …]
Dtest_camera_base.cpp397 cameraHost->GetCameraIds(cameraIds); in Init()
398 cameraHost->GetCameraAbility(cameraIds.front(), ability_); in Init()
401 rc = (CamRetCode)cameraHost->OpenCamera(cameraIds.front(), callback, cameraDevice); in Init()
435 OHOS::Camera::RetCode ret = cameraHost->GetCameraIds(cameraIds); in GetCameraAbility()
442 if (cameraIds.size() == 0) { in GetCameraAbility()
446 if (cameraIds.size() > 0) { in GetCameraAbility()
447 ret = cameraHost->GetCameraAbility(cameraIds.back(), ability_); in GetCameraAbility()
460 cameraHost->GetCameraIds(cameraIds); in OpenUsbCamera()
461 if (cameraIds.size() > 0) { in OpenUsbCamera()
462 cameraHost->GetCameraAbility(cameraIds.back(), ability_); in OpenUsbCamera()
[all …]
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/
Dcamera_host_usb_vdi_impl.cpp84 int32_t CameraHostVdiImpl::GetCameraIds(std::vector<std::string> &cameraIds) in GetCameraIds() argument
93 RetCode rc = config->GetCameraIds(cameraIds); in GetCameraIds()
197 std::vector<std::string> cameraIds; in CameraIdInvalid() local
198 RetCode ret = config->GetCameraIds(cameraIds); in CameraIdInvalid()
199 if (ret != RC_OK || cameraIds.empty()) { in CameraIdInvalid()
203 auto itr = std::find(cameraIds.begin(), cameraIds.end(), cameraId); in CameraIdInvalid()
204 if (itr == cameraIds.end()) { in CameraIdInvalid()
Dcamera_host_usb_config.cpp46 RetCode CameraHostConfig::GetCameraIds(std::vector<std::string> &cameraIds) in GetCameraIds() argument
50 cameraIds.push_back(itr->first); in GetCameraIds()
/drivers/peripheral/camera/test/ut/v4l2/
Dusb_camera_test.cpp45 std::vector<std::string> cameraIds; in TEST_F() local
47 cameraBase_->cameraHost->GetCameraIds(cameraIds); in TEST_F()
48 std::cout << "==========[test log] First cameraId.size = " << cameraIds.size() << std::endl; in TEST_F()
50 for (const auto &cameraId : cameraIds) { in TEST_F()
59 std::cout << "==========[test log] Second cameraId.size = " << cameraIds.size() << std::endl; in TEST_F()
60 if (cameraIds.size() == 1) { in TEST_F()
61 cameraIds.clear(); in TEST_F()
63 rc = cameraBase_->cameraHost->GetCameraIds(cameraIds); in TEST_F()
65 for (const auto &cameraId : cameraIds) { in TEST_F()
68 if (cameraIds.size() > 1) { in TEST_F()
[all …]
Dtest_camera_base.cpp380 cameraHost->GetCameraIds(cameraIds); in Init()
381 cameraHost->GetCameraAbility(cameraIds.front(), ability_); in Init()
384 rc = (CamRetCode)cameraHost->OpenCamera(cameraIds.front(), callback, cameraDevice); in Init()
418 OHOS::Camera::RetCode ret = cameraHost->GetCameraIds(cameraIds); in GetCameraAbility()
425 if (cameraIds.size() == 0) { in GetCameraAbility()
429 if (cameraIds.size() > 0) { in GetCameraAbility()
430 ret = cameraHost->GetCameraAbility(cameraIds.back(), ability_); in GetCameraAbility()
443 cameraHost->GetCameraIds(cameraIds); in OpenUsbCamera()
444 if (cameraIds.size() > 0) { in OpenUsbCamera()
445 cameraHost->GetCameraAbility(cameraIds.back(), ability_); in OpenUsbCamera()
[all …]
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/
Dicamera_host_vdi.h46 virtual int32_t GetCameraIds(std::vector<std::string> &cameraIds) = 0;
/drivers/peripheral/camera/hal_c/hdi_cif/src/
Dcamera_host.cpp68 CamRetCode CameraHost::GetCameraIds(std::vector<std::string>& cameraIds) in GetCameraIds() argument
77 cameraIds.push_back(ids[i]); in GetCameraIds()
/drivers/peripheral/camera/hal_c/hdi_cif/include/
Dcamera_host.h31 virtual CamRetCode GetCameraIds(std::vector<std::string> &cameraIds);
/drivers/peripheral/camera/test/benchmarktest/v1_1/src/
Dbenchmark_common.cpp98 rc = service->GetCameraAbility(cameraIds.front(), abilityVec); in GetCameraMetadata()
115 service->GetCameraIds(cameraIds); in Open()
116 if (cameraIds.size() == 0) { in Open()
119 ASSERT_TRUE(cameraIds.size() != 0); in Open()
124 rc = serviceV1_1->OpenCamera_V1_1(cameraIds.front(), deviceCallback, cameraDeviceV1_1); in Open()
/drivers/peripheral/camera/hdi_service/v1_0/src/
Dcamera_host_service.cpp167 int32_t CameraHostService::GetCameraIds(std::vector<std::string> &cameraIds) in GetCameraIds() argument
169 std::vector<std::string>().swap(cameraIds); in GetCameraIds()
176 cameraIds.push_back(cameraIdInfo.totalCameraId); in GetCameraIds()
/drivers/peripheral/camera/test/benchmarktest/v1_0/src/
Dcamera_benchmark_test.cpp49 cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F()
52 cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), in BENCHMARK_F()
73 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F()
110 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F()
112 for (int i = 0; i < cameraTest->cameraIds.size(); i++) { in BENCHMARK_F()
114 …cameraTest->rc = cameraTest->service->GetCameraAbility(cameraTest->cameraIds[i], cameraTest->abili… in BENCHMARK_F()
131 cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F()
134 …cameraTest->rc = cameraTest->service->SetFlashlight(cameraTest->cameraIds.front(), cameraTest->sta… in BENCHMARK_F()
/drivers/peripheral/camera/hdi_service/v1_0/include/
Dcamera_host_service.h42 int32_t GetCameraIds(std::vector<std::string> &cameraIds) override;
/drivers/peripheral/camera/vdi_base/v4l2/include/camera_host/
Dcamera_host_vdi_impl.h32 int32_t GetCameraIds(std::vector<std::string> &cameraIds) override;
Dcamera_host_config.h31 RetCode GetCameraIds(std::vector<std::string> &cameraIds);

12