/drivers/peripheral/camera/test/mpi/src/ |
D | hdi_host_test.cpp | 45 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 …]
|
D | open_camera_test.cpp | 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(); 72 Test_->service->GetCameraIds(Test_->cameraIds); 73 for (auto &cameraId : Test_->cameraIds) {
|
D | flashlight_test.cpp | 45 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);
|
D | stability_test.cpp | 46 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/ |
D | hdi_host_uttest.cpp | 45 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/ |
D | dcameragetcameraIds_fuzzer.cpp | 31 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/ |
D | camera_host_vdi_impl.cpp | 58 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()
|
D | camera_host_config.cpp | 87 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/ |
D | common.cpp | 50 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/ |
D | camera_host_fuzzer.cpp | 59 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/ |
D | usb_camera_test.cpp | 45 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 …]
|
D | test_camera_base.cpp | 397 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/ |
D | camera_host_usb_vdi_impl.cpp | 84 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()
|
D | camera_host_usb_config.cpp | 46 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/ |
D | usb_camera_test.cpp | 45 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 …]
|
D | test_camera_base.cpp | 380 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/ |
D | icamera_host_vdi.h | 46 virtual int32_t GetCameraIds(std::vector<std::string> &cameraIds) = 0;
|
/drivers/peripheral/camera/hal_c/hdi_cif/src/ |
D | camera_host.cpp | 68 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/ |
D | camera_host.h | 31 virtual CamRetCode GetCameraIds(std::vector<std::string> &cameraIds);
|
/drivers/peripheral/camera/test/benchmarktest/v1_1/src/ |
D | benchmark_common.cpp | 98 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/ |
D | camera_host_service.cpp | 167 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/ |
D | camera_benchmark_test.cpp | 49 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/ |
D | camera_host_service.h | 42 int32_t GetCameraIds(std::vector<std::string> &cameraIds) override;
|
/drivers/peripheral/camera/vdi_base/v4l2/include/camera_host/ |
D | camera_host_vdi_impl.h | 32 int32_t GetCameraIds(std::vector<std::string> &cameraIds) override;
|
D | camera_host_config.h | 31 RetCode GetCameraIds(std::vector<std::string> &cameraIds);
|