/ohos5.0/foundation/distributedhardware/distributed_input/services/state/src/ |
H A D | touchpad_event_fragment_mgr.cpp | 54 fragments_[dhId] = {{}}; in PushEvent() 57 fragments_[dhId].back().PushEvent(event); in PushEvent() 59 return DealSynEvent(dhId); in PushEvent() 72 for (auto &frag : fragments_[dhId]) { in DealSynEvent() 79 fragments_[dhId].clear(); in DealSynEvent() 80 fragments_[dhId].push_back({}); in DealSynEvent() 85 fragments_[dhId].pop_back(); in DealSynEvent() 87 fragments_[dhId].push_back({}); in DealSynEvent() 94 fragments_.erase(dhId); in Clear() 105 for (auto &frag : fragments_[dhId]) { in GetAndClearEvents() [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() 97 return dhIdStateMap_[dhId]; in GetStateByDhid() 127 for (const std::string &dhId : dhIds) { in SimulateEventInjectToSrc() local 128 SimulateKeyDownEvents(sessionId, dhId); in SimulateEventInjectToSrc() 129 SimulateTouchPadEvents(sessionId, dhId); in SimulateEventInjectToSrc() 137 auto iter = keyDownStateMap_.find(dhId); in SimulateKeyDownEvents() 146 SimulateKeyDownEvent(sessionId, dhId, event); in SimulateKeyDownEvents() 149 keyDownStateMap_.erase(dhId); in SimulateKeyDownEvents() 173 bool DInputSinkState::IsDhIdDown(const std::string &dhId) in IsDhIdDown() argument [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/unittest/common/camera_source/callback/ |
H A D | dcamera_source_callback_test.cpp | 196 std::string dhId = "dhId"; variable 205 dhId = ""; 211 dhId = "dhId"; 241 std::string dhId = "dhId"; variable 244 data.WriteString(dhId); 266 std::string dhId = "dhId"; variable 271 data.WriteString(dhId); 292 std::string dhId = "dhId"; variable 297 data.WriteString(dhId); 332 dhId = ""; [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/src/ |
H A D | distributed_camera_sink_proxy.cpp | 83 DHLOGI("dhId: %{public}s", GetAnonyString(dhId).c_str()); in SubscribeLocalHardware() 85 dhId.size() > DID_MAX_SIZE) { in SubscribeLocalHardware() 115 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in UnsubscribeLocalHardware() 132 if (!data.WriteString(dhId)) { in UnsubscribeLocalHardware() 145 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in StopCapture() 162 if (!data.WriteString(dhId)) { in StopCapture() 175 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || channelInfo.empty() || in ChannelNeg() 205 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in GetCameraInfo() 234 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || openInfo.empty() || in OpenChannel() 265 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CloseChannel() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/src/ |
H A D | daudio_source_proxy_test.cpp | 60 const std::string dhId = "dhId"; variable 68 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); 88 const std::string dhId = "dhId"; variable 115 std::string dhId; variable 116 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 126 dhId.resize(DAUDIO_LEGAL_DEVICE_ID_LEN); 145 const std::string dhId = "dhId"; variable 169 std::string dhId = "dhId"; variable 172 dAudioProxy->DAudioNotify(devId, dhId, eventType, value); 176 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); [all …]
|
H A D | daudio_source_handler_test.cpp | 48 const std::string dhId = "dhId"; variable 57 ret = DAudioSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); 70 const std::string dhId = "dhId"; variable 93 const std::string dhId = "dhId"; variable 119 std::string dhId = "dhId"; variable 132 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 176 std::string dhId = "dhId"; variable 192 std::string dhId = "dhId"; variable 203 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 204 ret = DAudioSourceHandler::GetInstance().ConfigDistributedHardware(devId, dhId, key, value); [all …]
|
H A D | daudio_ipc_callback_test.cpp | 51 const std::string dhId = "dhId"; variable 74 const std::string dhId = "dhId"; variable 97 std::string dhId = "dhId"; variable 104 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 107 dhId.resize(DAUDIO_LEGAL_DEVICE_ID_LEN); 125 const std::string dhId = "dhId"; variable 148 const std::string dhId = "dhId"; variable 171 std::string dhId = "dhId"; variable 178 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 279 const std::string dhId = "1"; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/test/unittest/common/distributedcamera/ |
H A D | mock_distributed_camera_sink_stub.h | 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() 61 (void)dhId; in ChannelNeg() 68 (void)dhId; in GetCameraInfo() 73 int32_t OpenChannel(const std::string &dhId, std::string& openInfo) in OpenChannel() argument 75 (void)dhId; in OpenChannel() 80 int32_t CloseChannel(const std::string &dhId) in CloseChannel() argument [all …]
|
/ohos5.0/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"; variable 153 std::string dhId = "dhId000"; variable 171 std::string dhId = "dhId000"; variable 189 std::string dhId = "dhId000"; variable 196 ret = sourceProxy.DCameraNotify(devId, dhId, events); 199 dhId = ""; 216 std::string dhId = "dhId000"; variable 226 dhId = ""; 243 std::string dhId = "dhId000"; variable 258 dhId = ""; [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | daudio_source_dev.cpp | 379 if (dhId < 0) { in HandleDSpeakerClosed() 391 if (dhId < 0) { in FindIoDevImpl() 691 if (deviceMap_[dhId]->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDSpeaker() 712 if (deviceMap_[dhId]->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDMic() 837 if (dhId < 0) { in TaskOpenDSpeaker() 898 return dhId; in ParseDhidFromEvent() 960 if (dhId < 0) { in TaskCloseDSpeaker() 1082 if (dhId < 0) { in TaskCloseDMic() 1111 if (dhId < 0) { in TaskDMicClosed() 1153 if (dhId < 0) { in TaskChangeFocus() [all …]
|
H A D | daudio_source_manager.cpp | 152 if (devId.empty() || dhId.empty() || in CheckParams() 215 audioDevMap_[devId].ports[dhId] = reqId; in DoEnableDAudio() 224 return OnEnableDAudio(devId, dhId, result); in DoEnableDAudio() 264 if (!CheckParams(devId, dhId)) { in DoDisableDAudio() 277 audioDevMap_[devId].ports[dhId] = reqId; in DoDisableDAudio() 282 return OnDisableDAudio(devId, dhId, result); in DoDisableDAudio() 353 std::string reqId = GetRequestId(devId, dhId); in OnEnableDAudio() 358 DeleteAudioDevice(devId, dhId); in OnEnableDAudio() 387 std::string reqId = GetRequestId(devId, dhId); in OnDisableDAudio() 392 DeleteAudioDevice(devId, dhId); in OnDisableDAudio() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.cpp | 75 GetAnonyString(dhId).c_str()); in StartCapture() 78 cmd.dhId_ = dhId; in StartCapture() 107 GetAnonyString(dhId).c_str()); in StartCapture() 121 GetAnonyString(dhId).c_str()); in StopCapture() 134 GetAnonyString(dhId).c_str()); in StopCapture() 148 GetAnonyString(dhId).c_str()); in ChannelNeg() 156 cmd.dhId_ = dhId; in ChannelNeg() 221 GetAnonyString(dhId).c_str()); in UpdateSettings() 224 cmd.dhId_ = dhId; in UpdateSettings() 250 GetAnonyString(dhId).c_str()); in UpdateSettings() [all …]
|
/ohos5.0/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() 41 GetAnonyString(dhId).c_str()); in Disable() 44 GetAnonyString(dhId).c_str()); in Disable() 51 GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str()); in Disable() 53 GetAnonyString(dhId), ret, "dhfwk unregister distributed hardware failed."); in Disable() 63 GetAnonyString(dhId).c_str()); in Disable() 65 GetAnonyString(dhId), ERR_DH_FWK_COMPONENT_DISABLE_TIMEOUT, in Disable() 75 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(dhId)) { in OnUnregisterResult() 80 GetAnonyString(dhId).c_str()); in OnUnregisterResult() [all …]
|
H A D | component_enable.cpp | 37 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(dhId)) { in Enable() 41 GetAnonyString(dhId).c_str()); in Enable() 44 GetAnonyString(dhId).c_str()); in Enable() 48 auto ret = handler->RegisterDistributedHardware(networkId, dhId, param, shared_from_this()); in Enable() 51 GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str()); in Enable() 53 GetAnonyString(dhId), ret, "dhfwk register distributed hardware failed."); in Enable() 63 GetAnonyString(dhId).c_str()); in Enable() 65 GetAnonyString(dhId), ERR_DH_FWK_COMPONENT_ENABLE_TIMEOUT, in Enable() 75 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(dhId)) { in OnRegisterResult() 80 GetAnonyString(dhId).c_str()); in OnRegisterResult() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/ |
H A D | distributed_camera_source_proxy.cpp | 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() 141 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardware() 158 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId)) { in UnregisterDistributedHardware() 171 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckUnregParams() 187 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), events.c_str()); in DCameraNotify() 188 if (!CheckNotifyParams(devId, dhId, events)) { in DCameraNotify() 205 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(events)) { in DCameraNotify() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_input/services/source/inputinject/test/sourceinjectunittest/ |
H A D | distributed_input_sourceinject_test.cpp | 92 std::string dhId = pBuffer.descriptor; variable 113 std::string dhId = pBuffer.descriptor; variable 134 std::string dhId = pBuffer.descriptor; variable 144 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; variable 152 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; variable 162 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; variable 305 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; variable 320 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; variable 392 dhId = ""; 438 std::string dhId; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/localhardwaremanager/ |
H A D | plugin_listener_impl.cpp | 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() 61 DHLOGI("unplugin start, dhId: %{public}s", GetAnonyString(dhId).c_str()); in UnPluginHardware() 68 auto ret = CapabilityInfoManager::GetInstance()->GetCapability(deviceId, dhId, capability); in UnPluginHardware() 71 GetAnonyString(deviceId).c_str(), GetAnonyString(dhId).c_str(), ret); in UnPluginHardware() [all …]
|
/ohos5.0/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"; variable 116 const std::string dhId = "dhId"; variable 138 const std::string dhId = "dhId"; variable 157 const std::string dhId = ""; variable 179 const std::string dhId = "dhId"; variable 200 const std::string dhId = "dhId"; variable 221 const std::string dhId = "dhId"; variable 239 const std::string dhId = ""; variable 258 const std::string dhId = "dhId"; variable 273 const std::string dhId = "dhId"; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcamera/ |
H A D | distributed_camera_sink_stub.cpp | 163 dhId.size() > DID_MAX_SIZE) { in SubscribeLocalHardwareInner() 180 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in UnsubscribeLocalHardwareInner() 197 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in StopCaptureInner() 202 ret = StopCapture(dhId); in StopCaptureInner() 215 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || channelInfo.empty() || in ChannelNegInner() 221 ret = ChannelNeg(dhId, channelInfo); in ChannelNegInner() 234 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in GetCameraInfoInner() 252 if (dhId.empty() || dhId.size() > DID_MAX_SIZE || openInfo.empty()|| in OpenChannelInner() 258 ret = OpenChannel(dhId, openInfo); in OpenChannelInner() 271 if (dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CloseChannelInner() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_input/services/source/inputinject/src/ |
H A D | distributed_input_node_manager.cpp | 64 …if (devId.size() > DEV_ID_LENGTH_MAX || devId.empty() || dhId.size() > DH_ID_LENGTH_MAX || dhId.em… in OpenDevicesNode() 71 if (CreateHandle(event, devId, dhId) < 0) { in OpenDevicesNode() 227 tmpJson[INPUT_NODE_DHID] = dhId; in NotifyNodeMgrScanVirNode() 272 if (devId.empty() || dhId.empty()) { in GetDevDhUniqueIdByFd() 277 dhUnqueId.second = dhId; in GetDevDhUniqueIdByFd() 279 GetAnonyString(dhId).c_str()); in GetDevDhUniqueIdByFd() 360 const std::string &dhId) in CreateHandle() argument 394 GetAnonyString(dhId).c_str()); in CreateVirtualTouchScreenNode() 405 return CloseDeviceLocked(devId, dhId); in RemoveVirtualTouchScreenNode() 420 {networkId, dhId}, std::move(device)); in AddDeviceLocked() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcamera/ |
H A D | dcamera_service_state_listener.cpp | 51 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnRegisterNotify() 57 GetAnonyString(dhId).c_str()); in OnRegisterNotify() 59 DCameraIndex camIndex(devId, dhId); in OnRegisterNotify() 75 int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data); in OnRegisterNotify() 87 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnUnregisterNotify() 97 GetAnonyString(dhId).c_str()); in OnUnregisterNotify() 99 DCameraIndex camIndex(devId, dhId); in OnUnregisterNotify() 108 int32_t ret = callbackProxy_->OnNotifyUnregResult(devId, dhId, reqId, status, data); in OnUnregisterNotify() 118 const std::string &dhId, int32_t status) in OnHardwareStateChanged() argument 121 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnHardwareStateChanged() [all …]
|
H A D | dcamera_source_callback_proxy.cpp | 26 …_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() 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() argument 89 if (!CheckParams(devId, dhId, status)) { in OnHardwareStateChanged() 106 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteInt32(status)) { in OnHardwareStateChanged() 141 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckParams() 152 bool DCameraSourceCallbackProxy::CheckParams(const std::string& devId, const std::string& dhId, in 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() 166 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 195 std::string dhId = data.ReadString(); in UnregisterDistributedHardwareInner() local 197 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardwareInner() 202 ret = UnregisterDistributedHardware(devId, dhId, reqId); in UnregisterDistributedHardwareInner() 211 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckUnregParams() 228 std::string dhId = data.ReadString(); in DCameraNotifyInner() local 230 if (!CheckNotifyParams(devId, dhId, events)) { in DCameraNotifyInner() 235 ret = DCameraNotify(devId, dhId, events); in DCameraNotifyInner() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/src/ |
H A D | daudio_sink_proxy_test.cpp | 60 const std::string dhId = "dhId"; variable 62 int32_t ret = dAudioProxy->SubscribeLocalHardware(dhId, param); 64 ret = dAudioProxy->UnsubscribeLocalHardware(dhId); 81 std::string dhId; variable 82 dhId.resize(DAUDIO_MAX_DEVICE_ID_LEN); 87 int32_t ret = dAudioProxy->SubscribeLocalHardware(dhId, param); 89 ret = dAudioProxy->UnsubscribeLocalHardware(dhId); 91 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); 93 dhId.resize(DAUDIO_LEGAL_DEVICE_ID_LEN); 95 ret = dAudioProxy->SubscribeLocalHardware(dhId, param); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/src/ |
H A D | dscreen_source_proxy.cpp | 83 const std::string &dhId, const EnableParam ¶m, const std::string &reqId) in RegisterDistributedHardware() argument 85 if (!CheckRegParams(devId, dhId, param, reqId)) { in RegisterDistributedHardware() 103 if (!data.WriteString(devId) || !data.WriteString(dhId) || in RegisterDistributedHardware() 115 const std::string &dhId, const std::string &reqId) in UnregisterDistributedHardware() argument 117 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardware() 146 const std::string &dhId, const std::string &key, const std::string &value) in ConfigDistributedHardware() argument 148 if (!CheckConfigParams(devId, dhId, key, value)) { in ConfigDistributedHardware() 209 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 226 const std::string &dhId, const std::string &reqId) const in CheckUnregParams() argument 228 … if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckUnregParams() [all …]
|