/foundation/distributedhardware/distributed_input/services/state/src/ |
H A D | touchpad_event_fragment_mgr.cpp | 46 std::pair<bool, std::vector<RawEvent>> TouchPadEventFragmentMgr::PushEvent(const std::string &dhId, in PushEvent() argument 53 if (fragments_.find(dhId) == fragments_.end()) { in PushEvent() 54 fragments_[dhId] = {{}}; in PushEvent() 57 fragments_[dhId].back().PushEvent(event); in PushEvent() 59 return DealSynEvent(dhId); in PushEvent() 64 std::pair<bool, std::vector<RawEvent>> TouchPadEventFragmentMgr::DealSynEvent(const std::string &dhId) in DealSynEvent() argument 66 if (fragments_[dhId].back().IsTouchPadOptFinish()) { in DealSynEvent() 69 if (!IsWholeTouchFragments(fragments_[dhId])) { in DealSynEvent() 72 for (auto &frag : fragments_[dhId]) { in DealSynEvent() 77 DHLOGI("Find NOT Whole touchpad events need send back, dhId in DealSynEvent() 91 Clear(const std::string &dhId) Clear() argument 97 GetAndClearEvents(const std::string &dhId) GetAndClearEvents() argument [all...] |
H A D | dinput_sink_state.cpp | 90 DhIdState DInputSinkState::GetStateByDhid(const std::string &dhId) in GetStateByDhid() argument 93 if (dhIdStateMap_.find(dhId) == dhIdStateMap_.end()) { in GetStateByDhid() 94 DHLOGE("dhId : %{public}s not exist.", GetAnonyString(dhId).c_str()); in GetStateByDhid() 97 return dhIdStateMap_[dhId]; in GetStateByDhid() 100 void DInputSinkState::SimulateMouseBtnMouseUpState(const std::string &dhId, const struct RawEvent &event) in SimulateMouseBtnMouseUpState() argument 102 DHLOGI("Sinmulate Mouse BTN_MOUSE UP state to source, dhId: %{public}s", GetAnonyString(dhId).c_str()); in SimulateMouseBtnMouseUpState() 104 RawEvent mscScanEv = { event.when, EV_MSC, MSC_SCAN, scanId, dhId, event.path }; in SimulateMouseBtnMouseUpState() 105 RawEvent btnMouseUpEv = { event.when, EV_KEY, BTN_MOUSE, KEY_UP_STATE, dhId, even in SimulateMouseBtnMouseUpState() 133 SimulateKeyDownEvents(const int32_t sessionId, const std::string &dhId) SimulateKeyDownEvents() argument 152 SimulateKeyDownEvent(const int32_t sessionId, const std::string &dhId, const struct RawEvent &event) SimulateKeyDownEvent() argument 161 SimulateTouchPadEvents(const int32_t sessionId, const std::string &dhId) SimulateTouchPadEvents() argument 173 IsDhIdDown(const std::string &dhId) IsDhIdDown() argument [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/test/unittest/common/distributedcamera/ |
H A D | mock_distributed_camera_sink_stub.h | 40 int32_t SubscribeLocalHardware(const std::string &dhId, const std::string ¶m) in SubscribeLocalHardware() argument 42 (void)dhId; in SubscribeLocalHardware() 47 int32_t UnsubscribeLocalHardware(const std::string &dhId) in UnsubscribeLocalHardware() argument 49 (void)dhId; in UnsubscribeLocalHardware() 53 int32_t StopCapture(const std::string &dhId) in StopCapture() argument 55 (void)dhId; in StopCapture() 59 int32_t ChannelNeg(const std::string &dhId, std::string& channelInfo) in ChannelNeg() argument 61 (void)dhId; in ChannelNeg() 66 int32_t GetCameraInfo(const std::string &dhId, std::string& cameraInfo) in GetCameraInfo() argument 68 (void)dhId; in GetCameraInfo() 73 OpenChannel(const std::string &dhId, std::string& openInfo) OpenChannel() argument 80 CloseChannel(const std::string &dhId) CloseChannel() argument [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/src/ |
H A D | daudio_source_proxy_test.cpp | 58 const std::string dhId = "dhId"; in HWTEST_F() local 64 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F() 66 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 84 const std::string dhId = "dhId"; in HWTEST_F() local 90 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F() 92 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 109 std::string dhId; in HWTEST_F() local 110 dhId in HWTEST_F() 137 const std::string dhId = "dhId"; HWTEST_F() local 159 std::string dhId = "dhId"; HWTEST_F() local [all...] |
H A D | daudio_ipc_callback_test.cpp | 49 const std::string dhId = "dhId"; in HWTEST_F() local 55 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 70 const std::string dhId = "dhId"; in HWTEST_F() local 74 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 91 std::string dhId = "dhId"; in HWTEST_F() local 95 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 98 dhId in HWTEST_F() 117 const std::string dhId = "dhId"; HWTEST_F() local 138 const std::string dhId = "dhId"; HWTEST_F() local 159 std::string dhId = "dhId"; HWTEST_F() local 257 const std::string dhId = "1"; HWTEST_F() local 277 std::string dhId = "1"; HWTEST_F() local [all...] |
H A D | daudio_source_handler_test.cpp | 48 const std::string dhId = "dhId"; in HWTEST_F() local 54 int32_t ret = DAudioSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 57 ret = DAudioSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); in HWTEST_F() 70 const std::string dhId = "dhId"; in HWTEST_F() local 77 int32_t ret = DAudioSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 80 ret = DAudioSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); in HWTEST_F() 93 const std::string dhId = "dhId"; in HWTEST_F() local 119 std::string dhId = "dhId"; HWTEST_F() local 176 std::string dhId = "dhId"; HWTEST_F() local 192 std::string dhId = "dhId"; HWTEST_F() local 217 std::string dhId = "dhId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/ |
H A D | component_disable.cpp | 34 int32_t ComponentDisable::Disable(const std::string &networkId, const std::string &dhId, in Disable() argument 37 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(dhId)) { in Disable() 40 DHLOGD("networkId = %{public}s dhId = %{public}s.", GetAnonyString(networkId).c_str(), in Disable() 41 GetAnonyString(dhId).c_str()); in Disable() 43 DHLOGE("handler is null, networkId = %{public}s dhId = %{public}s.", GetAnonyString(networkId).c_str(), in Disable() 44 GetAnonyString(dhId).c_str()); in Disable() 48 auto ret = handler->UnregisterDistributedHardware(networkId, dhId, shared_from_this()); in Disable() 50 DHLOGE("UnregisterDistributedHardware failed, networkId = %{public}s dhId = %{public}s.", in Disable() 51 GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str()); in Disable() 53 GetAnonyString(dhId), re in Disable() 72 OnUnregisterResult(const std::string &networkId, const std::string &dhId, int32_t status, const std::string &data) OnUnregisterResult() argument [all...] |
H A D | component_enable.cpp | 34 int32_t ComponentEnable::Enable(const std::string &networkId, const std::string &dhId, const EnableParam ¶m, in Enable() argument 37 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(dhId)) { in Enable() 40 DHLOGD("networkId = %{public}s dhId = %{public}s.", GetAnonyString(networkId).c_str(), in Enable() 41 GetAnonyString(dhId).c_str()); in Enable() 43 DHLOGE("handler is null, networkId = %{public}s dhId = %{public}s.", GetAnonyString(networkId).c_str(), in Enable() 44 GetAnonyString(dhId).c_str()); in Enable() 48 auto ret = handler->RegisterDistributedHardware(networkId, dhId, param, shared_from_this()); in Enable() 50 DHLOGE("RegisterDistributedHardware failed, networkId = %{public}s dhId = %{public}s.", in Enable() 51 GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str()); in Enable() 53 GetAnonyString(dhId), re in Enable() 72 OnRegisterResult(const std::string &networkId, const std::string &dhId, int32_t status, const std::string &data) OnRegisterResult() argument [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcamera/ |
H A D | distributed_camera_source_stub_test.cpp | 130 std::string dhId = "dhId000"; in HWTEST_F() local 137 int32_t ret = sourceProxy.RegisterDistributedHardware(devId, dhId, reqId, param); in HWTEST_F() 153 std::string dhId = "dhId000"; in HWTEST_F() local 155 int32_t ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 171 std::string dhId = "dhId000"; in HWTEST_F() local 173 int32_t ret = sourceProxy.DCameraNotify(devId, dhId, events); in HWTEST_F() 189 std::string dhId = "dhId000"; in HWTEST_F() local 191 int32_t ret = sourceProxy.DCameraNotify(devId, dhId, events); in HWTEST_F() 196 ret = sourceProxy.DCameraNotify(devId, dhId, events); in HWTEST_F() 199 dhId in HWTEST_F() 216 std::string dhId = "dhId000"; HWTEST_F() local 243 std::string dhId = "dhId000"; HWTEST_F() local [all...] |
H A D | mock_distributed_camera_source_stub.h | 40 int32_t RegisterDistributedHardware(const std::string& devId, const std::string& dhId, in RegisterDistributedHardware() argument 44 (void)dhId; in RegisterDistributedHardware() 50 int32_t UnregisterDistributedHardware(const std::string& devId, const std::string& dhId, in UnregisterDistributedHardware() argument 54 (void)dhId; in UnregisterDistributedHardware() 59 int32_t DCameraNotify(const std::string& devId, const std::string& dhId, in DCameraNotify() argument 63 (void)dhId; in DCameraNotify()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/localhardwaremanager/ |
H A D | plugin_listener_impl.cpp | 33 void PluginListenerImpl::PluginHardware(const std::string &dhId, const std::string &attrs, const std::string &subtype) in PluginHardware() argument 35 if (!IsIdLengthValid(dhId) || !IsMessageLengthValid(attrs)) { in PluginHardware() 38 DHLOGI("plugin start, dhId: %{public}s", GetAnonyString(dhId).c_str()); in PluginHardware() 48 std::make_shared<CapabilityInfo>(dhId, deviceId, devName, devType, dhType_, attrs, subtype); in PluginHardware() 52 Publisher::GetInstance().PublishMessage(DHTopic::TOPIC_PHY_DEV_PLUGIN, dhId); in PluginHardware() 53 DHLOGI("plugin end, dhId: %{public}s", GetAnonyString(dhId).c_str()); in PluginHardware() 56 void PluginListenerImpl::UnPluginHardware(const std::string &dhId) in UnPluginHardware() argument 58 if (!IsIdLengthValid(dhId)) { in UnPluginHardware() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcamera/ |
H A D | dcamera_service_state_listener.cpp | 48 int32_t DCameraServiceStateListener::OnRegisterNotify(const std::string& devId, const std::string& dhId, in OnRegisterNotify() argument 51 DHLOGI("OnRegisterNotify devId: %{public}s, dhId: %{public}s, status: %{public}d", in OnRegisterNotify() 52 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnRegisterNotify() 57 DHLOGI("thread delete devId: %{public}s dhId: %{public}s", GetAnonyString(devId).c_str(), in OnRegisterNotify() 58 GetAnonyString(dhId).c_str()); in OnRegisterNotify() 60 DCameraIndex camIndex(devId, dhId); in OnRegisterNotify() 66 int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data); in OnRegisterNotify() 76 int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data); in OnRegisterNotify() 84 int32_t DCameraServiceStateListener::OnUnregisterNotify(const std::string& devId, const std::string& dhId, in OnUnregisterNotify() argument 87 DHLOGI("OnUnregisterNotify devId: %{public}s, dhId in OnUnregisterNotify() 118 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, int32_t status) OnHardwareStateChanged() argument [all...] |
H A D | dcamera_source_callback_proxy.cpp | 26 int32_t DCameraSourceCallbackProxy::OnNotifyRegResult(const std::string& devId, const std::string& dhId, in OnNotifyRegResult() argument 29 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyRegResult() 46 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyRegResult() 56 int32_t DCameraSourceCallbackProxy::OnNotifyUnregResult(const std::string& devId, const std::string& dhId, in OnNotifyUnregResult() argument 59 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyUnregResult() 76 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyUnregResult() 87 const std::string &dhId, int32_t status) in OnHardwareStateChanged() 89 if (!CheckParams(devId, dhId, status)) { in OnHardwareStateChanged() 106 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteInt32(status)) { in OnHardwareStateChanged() 139 bool DCameraSourceCallbackProxy::CheckParams(const std::string& devId, const std::string& dhId, int32_ argument 86 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, int32_t status) OnHardwareStateChanged() argument 152 CheckParams(const std::string& devId, const std::string& dhId, const std::string& reqId, std::string& data) CheckParams() argument [all...] |
H A D | distributed_camera_source_stub.cpp | 146 std::string dhId = data.ReadString(); in RegisterDistributedHardwareInner() local 151 if (!CheckRegParams(devId, dhId, reqId, params)) { in RegisterDistributedHardwareInner() 156 ret = RegisterDistributedHardware(devId, dhId, reqId, params); in RegisterDistributedHardwareInner() 163 bool DistributedCameraSourceStub::CheckRegParams(const std::string& devId, const std::string& dhId, in CheckRegParams() argument 166 if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 167 DHLOGE("devId or dhId is invalid"); in CheckRegParams() 195 std::string dhId = data.ReadString(); in UnregisterDistributedHardwareInner() local 197 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardwareInner() 202 ret = UnregisterDistributedHardware(devId, dhId, reqI in UnregisterDistributedHardwareInner() 208 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument 228 std::string dhId = data.ReadString(); DCameraNotifyInner() local 241 CheckNotifyParams(const std::string& devId, const std::string& dhId, std::string& events) CheckNotifyParams() argument [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/ |
H A D | distributed_camera_source_proxy.cpp | 84 int32_t DistributedCameraSourceProxy::RegisterDistributedHardware(const std::string& devId, const std::string& dhId, in RegisterDistributedHardware() argument 87 DHLOGI("devId: %{public}s dhId: %{public}s", GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in RegisterDistributedHardware() 88 if (!CheckRegParams(devId, dhId, reqId, param)) { in RegisterDistributedHardware() 105 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId) || in RegisterDistributedHardware() 116 bool DistributedCameraSourceProxy::CheckRegParams(const std::string& devId, const std::string& dhId, in CheckRegParams() argument 119 if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 120 DHLOGE("devId or dhId is invalid"); in CheckRegParams() 137 int32_t DistributedCameraSourceProxy::UnregisterDistributedHardware(const std::string& devId, const std::string& dhId, in UnregisterDistributedHardware() argument 168 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument 183 DCameraNotify(const std::string& devId, const std::string& dhId, std::string& events) DCameraNotify() argument 215 CheckNotifyParams(const std::string& devId, const std::string& dhId, std::string& events) CheckNotifyParams() argument [all...] |
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/unittest/screensourcetest/src/ |
H A D | dscreen_source_handler_test.cpp | 95 const std::string dhId = "dhId"; in HWTEST_F() local 103 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 116 const std::string dhId = "dhId"; in HWTEST_F() local 125 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 138 const std::string dhId = "dhId"; in HWTEST_F() local 144 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 157 const std::string dhId in HWTEST_F() local 179 const std::string dhId = "dhId"; HWTEST_F() local 200 const std::string dhId = "dhId"; HWTEST_F() local 221 const std::string dhId = "dhId"; HWTEST_F() local 239 const std::string dhId = ""; HWTEST_F() local 258 const std::string dhId = "dhId"; HWTEST_F() local 273 const std::string dhId = "dhId"; HWTEST_F() local 291 const std::string dhId = "dhId"; HWTEST_F() local 311 const std::string dhId = "dhId"; HWTEST_F() local 329 const std::string dhId = "dhId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/unittest/common/camera_source/callback/ |
H A D | dcamera_source_callback_test.cpp | 50 int32_t OnRegisterResult(const std::string &uuid, const std::string &dhId, int32_t status, in OnRegisterResult() argument 62 void OnStateChanged(const std::string &uuid, const std::string &dhId, const BusinessState state) override 84 int32_t OnUnregisterResult(const std::string &uuid, const std::string &dhId, int32_t status, in OnUnregisterResult() argument 122 const std::string dhId = "dhId"; in HWTEST_F() local 128 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 142 const std::string dhId = "dhId"; in HWTEST_F() local 147 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 160 const std::string dhId in HWTEST_F() local 180 const std::string dhId = "dhId"; HWTEST_F() local 198 std::string dhId = "dhId"; HWTEST_F() local 244 std::string dhId = "dhId"; HWTEST_F() local 270 std::string dhId = "dhId"; HWTEST_F() local 296 std::string dhId = "dhId"; HWTEST_F() local 323 std::string dhId = "dhId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/src/ |
H A D | distributed_camera_sink_proxy.cpp | 83 int32_t DistributedCameraSinkProxy::SubscribeLocalHardware(const std::string& dhId, const std::string& parameters) in SubscribeLocalHardware() argument 85 DHLOGI("dhId: %{public}s", GetAnonyString(dhId).c_str()); in SubscribeLocalHardware() 86 if (parameters.empty() || parameters.size() > PARAM_MAX_SIZE || dhId.empty() || in SubscribeLocalHardware() 87 dhId.size() > DID_MAX_SIZE) { in SubscribeLocalHardware() 104 if (!data.WriteString(dhId) || !data.WriteString(parameters)) { in SubscribeLocalHardware() 114 int32_t DistributedCameraSinkProxy::UnsubscribeLocalHardware(const std::string& dhId) in UnsubscribeLocalHardware() argument 116 DHLOGI("dhId: %{public}s", GetAnonyString(dhId).c_str()); in UnsubscribeLocalHardware() 117 if (dhId in UnsubscribeLocalHardware() 144 StopCapture(const std::string& dhId) StopCapture() argument 174 ChannelNeg(const std::string& dhId, std::string& channelInfo) ChannelNeg() argument 204 GetCameraInfo(const std::string& dhId, std::string& cameraInfo) GetCameraInfo() argument 233 OpenChannel(const std::string& dhId, std::string& openInfo) OpenChannel() argument 264 CloseChannel(const std::string& dhId) CloseChannel() argument [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/src/ |
H A D | daudio_sink_proxy_test.cpp | 58 const std::string dhId = "dhId"; in HWTEST_F() local 60 int32_t ret = dAudioProxy->SubscribeLocalHardware(dhId, param); in HWTEST_F() 62 ret = dAudioProxy->UnsubscribeLocalHardware(dhId); in HWTEST_F() 77 std::string dhId; in HWTEST_F() local 78 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); in HWTEST_F() 83 int32_t ret = dAudioProxy->SubscribeLocalHardware(dhId, param); in HWTEST_F() 85 ret = dAudioProxy->UnsubscribeLocalHardware(dhId); in HWTEST_F() 87 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); in HWTEST_F() 89 dhId in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | daudio_source_manager.cpp | 149 static bool CheckParams(const std::string &devId, const std::string &dhId) in CheckParams() argument 152 if (devId.empty() || dhId.empty() || in CheckParams() 153 devId.size() > MAX_DEVICE_ID_LENGTH || dhId.size() > MAX_DISTRIBUTED_HARDWARE_ID_LENGTH) { in CheckParams() 159 int32_t DAudioSourceManager::EnableDAudio(const std::string &devId, const std::string &dhId, in EnableDAudio() argument 162 DHLOGI("Enable distributed audio, devId: %{public}s, dhId: %{public}s, version: %{public}s, reqId: %{public}s.", in EnableDAudio() 163 GetAnonyString(devId).c_str(), dhId.c_str(), version.c_str(), reqId.c_str()); in EnableDAudio() 169 cJSON_AddStringToObject(jParam, KEY_DH_ID, dhId.c_str()); in EnableDAudio() 196 std::string dhId = ParseStringFromArgs(args, KEY_DH_ID); in DoEnableDAudio() local 200 DHLOGI("Do Enable distributed audio, devId: %{public}s, dhId: %{public}s, version:%{public}s, reqId:%{public}s.", in DoEnableDAudio() 201 GetAnonyString(devId).c_str(), dhId in DoEnableDAudio() 227 DisableDAudio(const std::string &devId, const std::string &dhId, const std::string &reqId) DisableDAudio() argument 260 std::string dhId = ParseStringFromArgs(args, KEY_DH_ID); DoDisableDAudio() local 285 HandleDAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) HandleDAudioNotify() argument 319 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument 349 OnEnableDAudio(const std::string &devId, const std::string &dhId, const int32_t result) OnEnableDAudio() argument 365 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, const int32_t state) OnHardwareStateChanged() argument 383 OnDisableDAudio(const std::string &devId, const std::string &dhId, const int32_t result) OnDisableDAudio() argument 412 DeleteAudioDevice(const std::string &devId, const std::string &dhId) DeleteAudioDevice() argument 433 GetRequestId(const std::string &devId, const std::string &dhId) GetRequestId() argument [all...] |
H A D | daudio_source_dev.cpp | 135 int32_t DAudioSourceDev::EnableDAudio(const std::string &dhId, const std::string &attrs) in EnableDAudio() argument 137 DHLOGI("Enable audio device, dhId: %{public}s.", dhId.c_str()); in EnableDAudio() 144 cJSON_AddStringToObject(jParam, KEY_DH_ID, dhId.c_str()); in EnableDAudio() 165 int32_t DAudioSourceDev::DisableDAudioInner(const std::string &dhId) in DisableDAudioInner() argument 171 cJSON_AddStringToObject(jParam, KEY_DH_ID, dhId.c_str()); in DisableDAudioInner() 187 int32_t DAudioSourceDev::DisableDAudio(const std::string &dhId) in DisableDAudio() argument 189 DHLOGI("Disable audio device, dhId: %{public}s.", dhId.c_str()); in DisableDAudio() 194 cJSON_AddStringToObject(jParamClose, KEY_DH_ID, dhId in DisableDAudio() 378 int32_t dhId = ParseDhidFromEvent(event.content); HandleDSpeakerClosed() local 390 int32_t dhId = ParseDhidFromEvent(args); FindIoDevImpl() local 662 int32_t dhId = ParseDhidFromEvent(args); TaskEnableDAudio() local 685 EnableDSpeaker(const int32_t dhId, const std::string &attrs) EnableDSpeaker() argument 706 EnableDMic(const int32_t dhId, const std::string &attrs) EnableDMic() argument 753 int32_t dhId = ParseDhidFromEvent(args); TaskDisableDAudio() local 771 DisableDSpeaker(const int32_t dhId) DisableDSpeaker() argument 783 DisableDMic(const int32_t dhId) DisableDMic() argument 815 NotifyFwkRunning(const std::string &devId, const std::string &dhId) NotifyFwkRunning() argument 823 NotifyFwkIdle(const std::string &devId, const std::string &dhId) NotifyFwkIdle() argument 836 int32_t dhId = ParseDhidFromEvent(args); TaskOpenDSpeaker() local 895 int32_t dhId = ConvertString2Int(std::string(dhIdItem->valuestring)); ParseDhidFromEvent() local 910 OpenDSpeakerInner(std::shared_ptr<DAudioIoDev> &speaker, const int32_t dhId) OpenDSpeakerInner() argument 935 int32_t dhId = ParseDhidFromEvent(args); CloseSpkNew() local 959 int32_t dhId = ParseDhidFromEvent(args); TaskCloseDSpeaker() local 1016 int32_t dhId = ParseDhidFromEvent(args); TaskOpenDMic() local 1061 int32_t dhId = ParseDhidFromEvent(args); CloseMicNew() local 1081 int32_t dhId = ParseDhidFromEvent(args); TaskCloseDMic() local 1110 int32_t dhId = ParseDhidFromEvent(args); TaskDMicClosed() local 1144 int32_t dhId = ConvertString2Int(std::string(dhIdItem->valuestring)); TaskChangeVolume() local 1152 int32_t dhId = ParseDhidFromEvent(args); TaskChangeFocus() local 1177 int32_t dhId = ConvertString2Int(std::string(dhIdItem->valuestring)); TaskChangeRenderState() local 1216 int32_t dhId = 0; SendAudioEventToRemote() local 1288 NotifySinkDev(const AudioEventType type, const cJSON *Param, const std::string dhId) NotifySinkDev() argument 1343 NotifyHDF(const AudioEventType type, const std::string result, const int32_t dhId) NotifyHDF() argument [all...] |
/foundation/distributedhardware/distributed_input/services/source/inputinject/src/ |
H A D | distributed_input_node_manager.cpp | 61 int32_t DistributedInputNodeManager::OpenDevicesNode(const std::string &devId, const std::string &dhId, in OpenDevicesNode() argument 64 if (devId.size() > DEV_ID_LENGTH_MAX || devId.empty() || dhId.size() > DH_ID_LENGTH_MAX || dhId.empty() || in OpenDevicesNode() 71 if (CreateHandle(event, devId, dhId) < 0) { in OpenDevicesNode() 159 void DistributedInputNodeManager::ScanSinkInputDevices(const std::string &devId, const std::string &dhId) in ScanSinkInputDevices() argument 161 DHLOGI("ScanSinkInputDevices enter, deviceId: %{public}s, dhId: %{public}s.", in ScanSinkInputDevices() 162 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in ScanSinkInputDevices() 166 if (MatchAndSavePhysicalPath(tempPath, devId, dhId)) { in ScanSinkInputDevices() 221 void DistributedInputNodeManager::NotifyNodeMgrScanVirNode(const std::string &devId, const std::string &dhId) in NotifyNodeMgrScanVirNode() argument 227 tmpJson[INPUT_NODE_DHID] = dhId; in NotifyNodeMgrScanVirNode() 271 std::string dhId = phyPathVec[VIR_NODE_PHY_DHID_IDX]; GetDevDhUniqueIdByFd() local 299 MatchAndSavePhysicalPath(const std::string &devicePath, const std::string &devId, const std::string &dhId) MatchAndSavePhysicalPath() argument 359 CreateHandle(const InputDevice &inputDevice, const std::string &devId, const std::string &dhId) CreateHandle() argument 383 CreateVirtualTouchScreenNode(const std::string &devId, const std::string &dhId, const uint64_t srcWinId, const uint32_t sourcePhyWidth, const uint32_t sourcePhyHeight) CreateVirtualTouchScreenNode() argument 403 RemoveVirtualTouchScreenNode(const std::string &devId, const std::string &dhId) RemoveVirtualTouchScreenNode() argument 413 AddDeviceLocked(const std::string &networkId, const std::string &dhId, std::unique_ptr<VirtualDevice> device) AddDeviceLocked() argument 427 CloseDeviceLocked(const std::string &devId, const std::string &dhId) CloseDeviceLocked() argument 445 GetDevice(const std::string &devId, const std::string &dhId, VirtualDevice *&device) GetDevice() argument 526 RunInjectEventCallback(const std::string &dhId, const uint32_t injectEvent) RunInjectEventCallback() argument 540 std::string dhId = rawEvent.descriptor; ProcessInjectEvent() local [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesource/src/ |
H A D | daudio_source_service.cpp | 97 int32_t DAudioSourceService::RegisterDistributedHardware(const std::string &devId, const std::string &dhId, in RegisterDistributedHardware() argument 100 DHLOGI("Register distributed audio device, devId: %{public}s, dhId: %{public}s.", GetAnonyString(devId).c_str(), in RegisterDistributedHardware() 101 dhId.c_str()); in RegisterDistributedHardware() 104 return DAudioSourceManager::GetInstance().EnableDAudio(devId, dhId, version, attrs, reqId); in RegisterDistributedHardware() 107 int32_t DAudioSourceService::UnregisterDistributedHardware(const std::string &devId, const std::string &dhId, in UnregisterDistributedHardware() argument 110 DHLOGI("Unregister distributed audio device, devId: %{public}s, dhId: %{public}s.", GetAnonyString(devId).c_str(), in UnregisterDistributedHardware() 111 dhId.c_str()); in UnregisterDistributedHardware() 112 return DAudioSourceManager::GetInstance().DisableDAudio(devId, dhId, reqId); in UnregisterDistributedHardware() 115 int32_t DAudioSourceService::ConfigDistributedHardware(const std::string &devId, const std::string &dhId, in ConfigDistributedHardware() argument 118 DHLOGI("Config distributed audio device, devId: %{public}s, dhId in ConfigDistributedHardware() 123 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/include/ |
H A D | distributed_camera_sink_proxy.h | 37 int32_t SubscribeLocalHardware(const std::string& dhId, const std::string& parameters) override; 38 int32_t UnsubscribeLocalHardware(const std::string& dhId) override; 39 int32_t StopCapture(const std::string& dhId) override; 40 int32_t ChannelNeg(const std::string& dhId, std::string& channelInfo) override; 41 int32_t GetCameraInfo(const std::string& dhId, std::string& cameraInfo) override; 42 int32_t OpenChannel(const std::string& dhId, std::string& openInfo) override; 43 int32_t CloseChannel(const std::string& dhId) override;
|
H A D | idistributed_camera_sink.h | 32 virtual int32_t SubscribeLocalHardware(const std::string& dhId, const std::string& parameters) = 0; 33 virtual int32_t UnsubscribeLocalHardware(const std::string& dhId) = 0; 34 virtual int32_t StopCapture(const std::string& dhId) = 0; 35 virtual int32_t ChannelNeg(const std::string& dhId, std::string& channelInfo) = 0; 36 virtual int32_t GetCameraInfo(const std::string& dhId, std::string& cameraInfo) = 0; 37 virtual int32_t OpenChannel(const std::string& dhId, std::string& openInfo) = 0; 38 virtual int32_t CloseChannel(const std::string& dhId) = 0;
|