/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/ |
H A D | dcamera_open_info_cmd.cpp | 38 cJSON *openInfo = cJSON_CreateObject(); in Marshal() local 39 if (openInfo == nullptr) { in Marshal() 43 cJSON_AddStringToObject(openInfo, "SourceDevId", value_->sourceDevId_.c_str()); in Marshal() 44 cJSON_AddItemToObject(rootValue, "Value", openInfo); in Marshal() 91 std::shared_ptr<DCameraOpenInfo> openInfo = std::make_shared<DCameraOpenInfo>(); in Unmarshal() local 92 openInfo->sourceDevId_ = sourceDevId->valuestring; in Unmarshal() 93 value_ = openInfo; in Unmarshal()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkproxyopenchannel_fuzzer/ |
H A D | sinkproxyopenchannel_fuzzer.cpp | 35 std::string openInfo(reinterpret_cast<const char*>(data), size); in SinkProxyOpenChannelFuzzTest() 43 dCSinkProxy->OpenChannel(dhId, openInfo); in SinkProxyOpenChannelFuzzTest()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkserviceopenchannel_fuzzer/ |
H A D | sinkserviceopenchannel_fuzzer.cpp | 36 std::string openInfo(reinterpret_cast<const char*>(data), size); in SinkServiceOpenChannelFuzzTest() 43 sinkService->OpenChannel(dhId, openInfo); in SinkServiceOpenChannelFuzzTest()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/test/unittest/common/distributedcamera/ |
H A D | mock_distributed_camera_sink_stub.h | 73 int32_t OpenChannel(const std::string &dhId, std::string& openInfo) in OpenChannel() argument 76 (void)openInfo; in OpenChannel()
|
H A D | distributed_camera_sink_stub_test.cpp | 211 std::string openInfo = "openInfo000"; in HWTEST_F() local 212 int32_t ret = sinkProxy.OpenChannel(dhId, openInfo); in HWTEST_F()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcameramgr/ |
H A D | dcamera_source_controller_test.cpp | 267 std::shared_ptr<DCameraOpenInfo> openInfo = std::make_shared<DCameraOpenInfo>(); in HWTEST_F() local 268 ret = GetLocalDeviceNetworkId(openInfo->sourceDevId_); in HWTEST_F() 269 ret = controller_->OpenChannel(openInfo); in HWTEST_F() 288 std::shared_ptr<DCameraOpenInfo> openInfo = std::make_shared<DCameraOpenInfo>(); in HWTEST_F() local 289 ret = GetLocalDeviceNetworkId(openInfo->sourceDevId_); in HWTEST_F() 290 controller_->OpenChannel(openInfo); in HWTEST_F() 436 std::shared_ptr<DCameraOpenInfo> openInfo = std::make_shared<DCameraOpenInfo>(); in HWTEST_F() local 437 int32_t ret = GetLocalDeviceNetworkId(openInfo->sourceDevId_); in HWTEST_F() 438 ret = controller_->OpenChannel(openInfo); in HWTEST_F()
|
H A D | mock_dcamera_source_controller.h | 60 int32_t OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) in OpenChannel() argument
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcameramgr/ |
H A D | dcamera_sink_dev.cpp | 139 int32_t DCameraSinkDev::OpenChannel(std::string& openInfo) in OpenChannel() argument 142 if (openInfo.empty()) { in OpenChannel() 143 DHLOGE("openInfo is empty"); in OpenChannel() 148 int32_t ret = cmd.Unmarshal(openInfo); in OpenChannel() 150 DHLOGE("openInfo unmarshal failed, dhId: %{public}s, ret: %{public}d", GetAnonyString(dhId_).c_str(), ret); in OpenChannel()
|
H A D | dcamera_sink_controller.cpp | 239 int32_t DCameraSinkController::OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) in OpenChannel() argument 251 srcDevId_ = openInfo->sourceDevId_; in OpenChannel()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include/ |
H A D | icamera_controller.h | 40 virtual int32_t OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) = 0;
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/include/distributedcameramgr/ |
H A D | dcamera_sink_dev.h | 41 int32_t OpenChannel(std::string& openInfo);
|
H A D | dcamera_sink_controller.h | 49 int32_t OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) override;
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/test/unittest/common/distributedcameramgr/ |
H A D | mock_dcamera_sink_controller.h | 65 int32_t OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) in OpenChannel() argument
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/include/ |
H A D | distributed_camera_sink_proxy.h | 42 int32_t OpenChannel(const std::string& dhId, std::string& openInfo) override;
|
H A D | idistributed_camera_sink.h | 37 virtual int32_t OpenChannel(const std::string& dhId, std::string& openInfo) = 0;
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcamera/ |
H A D | distributed_camera_sink_stub.cpp | 251 std::string openInfo = data.ReadString(); in OpenChannelInner() local 252 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || openInfo.empty()|| in OpenChannelInner() 253 openInfo.size() > PARAM_MAX_SIZE) { in OpenChannelInner() 258 ret = OpenChannel(dhId, openInfo); in OpenChannelInner()
|
H A D | distributed_camera_sink_service.cpp | 227 int32_t DistributedCameraSinkService::OpenChannel(const std::string& dhId, std::string& openInfo) in OpenChannel() argument 241 int32_t ret = sinkDevice->OpenChannel(openInfo); in OpenChannel()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/src/ |
H A D | distributed_camera_sink_proxy.cpp | 233 int32_t DistributedCameraSinkProxy::OpenChannel(const std::string& dhId, std::string& openInfo) in OpenChannel() argument 236 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || openInfo.empty() || in OpenChannel() 237 openInfo.size() > PARAM_MAX_SIZE) { in OpenChannel() 254 if (!data.WriteString(dhId) || !data.WriteString(openInfo)) { in OpenChannel()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/include/distributedcamera/ |
H A D | distributed_camera_sink_service.h | 44 int32_t OpenChannel(const std::string& dhId, std::string& openInfo) override;
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.h | 44 int32_t OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) override;
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/ |
H A D | dcamera_source_dev.cpp | 464 std::shared_ptr<DCameraOpenInfo> openInfo = std::make_shared<DCameraOpenInfo>(); in OpenCamera() local 465 int32_t ret = GetLocalDeviceNetworkId(openInfo->sourceDevId_); in OpenCamera() 473 ret = controller_->OpenChannel(openInfo); in OpenCamera()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.cpp | 315 int32_t DCameraSourceController::OpenChannel(std::shared_ptr<DCameraOpenInfo>& openInfo) in OpenChannel() argument 336 cmd.value_ = openInfo; in OpenChannel()
|