Home
last modified time | relevance | path

Searched refs:networkId (Results 1 – 25 of 1463) sorted by relevance

12345678910>>...59

/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/
H A Ddsoftbus_handler.cpp204 .networkId = networkId in OnBind()
214 .networkId = networkId in OnShutdown()
224 .networkId = networkId in OnConnected()
234 (it->second)(networkId, packet); in OnPacket()
258 .networkId = networkId in OnCommunicationFailure()
266 .networkId = networkId, in OnStartCooperate()
287 .networkId = networkId, in OnStopCooperate()
299 .networkId = networkId, in OnComeBack()
320 .networkId = networkId, in OnRelayCooperate()
337 .networkId = networkId, in OnRelayCooperateFinish()
[all …]
H A Dinput_device_mgr.cpp55 NotifyInputDeviceToRemote(notice.networkId); in OnSoftbusSessionOpened()
61 RemoveAllRemoteInputDevice(notice.networkId); in OnSoftbusSessionClosed()
73 std::string networkId = notice.networkId; in OnRemoteInputDevice() local
76 AddRemoteInputDevice(networkId, device); in OnRemoteInputDevice()
89 for (const auto &device : remoteDevices_[networkId]) { in AddVirtualInputDevice()
91 AddVirtualInputDevice(networkId, device->GetId()); in AddVirtualInputDevice()
99 for (const auto &device : remoteDevices_[networkId]) { in RemoveVirtualInputDevice()
188 remoteDevices_[networkId].erase(device); in RemoveRemoteInputDevice()
200 remoteDevices_[networkId].insert(device); in AddRemoteInputDevice()
210 remoteDevices_.erase(networkId); in RemoveAllRemoteInputDevice()
[all …]
H A Dmouse_location.cpp37 if (event.networkId == localNetworkId_) { in AddListener()
44 .networkId = localNetworkId_, in AddListener()
45 .remoteNetworkId = event.networkId, in AddListener()
56 if (event.networkId == localNetworkId_) { in RemoveListener()
62 .networkId = localNetworkId_, in RemoveListener()
63 .remoteNetworkId = event.networkId, in RemoveListener()
72 listeners_.erase(event.networkId); in RemoveListener()
106 .networkId = notice.remoteNetworkId, in OnSubscribeMouseLocation()
107 .remoteNetworkId = notice.networkId, in OnSubscribeMouseLocation()
127 .networkId = notice.remoteNetworkId, in OnUnSubscribeMouseLocation()
[all …]
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/src/
H A Ddsoftbus_handler.cpp204 .networkId = networkId in OnBind()
214 .networkId = networkId in OnShutdown()
224 .networkId = networkId in OnConnected()
234 (it->second)(networkId, packet); in OnPacket()
258 .networkId = networkId in OnCommunicationFailure()
266 .networkId = networkId, in OnStartCooperate()
287 .networkId = networkId, in OnStopCooperate()
299 .networkId = networkId, in OnComeBack()
320 .networkId = networkId, in OnRelayCooperate()
337 .networkId = networkId, in OnRelayCooperateFinish()
[all …]
H A Dinput_device_mgr.cpp55 NotifyInputDeviceToRemote(notice.networkId); in OnSoftbusSessionOpened()
61 RemoveAllRemoteInputDevice(notice.networkId); in OnSoftbusSessionClosed()
73 std::string networkId = notice.networkId; in OnRemoteInputDevice() local
76 AddRemoteInputDevice(networkId, device); in OnRemoteInputDevice()
89 for (const auto &device : remoteDevices_[networkId]) { in AddVirtualInputDevice()
91 AddVirtualInputDevice(networkId, device->GetId()); in AddVirtualInputDevice()
99 for (const auto &device : remoteDevices_[networkId]) { in RemoveVirtualInputDevice()
188 remoteDevices_[networkId].erase(device); in RemoveRemoteInputDevice()
200 remoteDevices_[networkId].insert(device); in AddRemoteInputDevice()
210 remoteDevices_.erase(networkId); in RemoveAllRemoteInputDevice()
[all …]
H A Dmouse_location.cpp37 if (event.networkId == localNetworkId_) { in AddListener()
44 .networkId = localNetworkId_, in AddListener()
45 .remoteNetworkId = event.networkId, in AddListener()
59 if (event.networkId == localNetworkId_) { in RemoveListener()
65 .networkId = localNetworkId_, in RemoveListener()
66 .remoteNetworkId = event.networkId, in RemoveListener()
77 listeners_.erase(event.networkId); in RemoveListener()
113 listeners_.erase(notice.networkId); in OnSoftbusSessionClosed()
126 .networkId = notice.remoteNetworkId, in OnSubscribeMouseLocation()
127 .remoteNetworkId = notice.networkId, in OnSubscribeMouseLocation()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/services/softbuscache/src/
H A Ddm_softbus_cache.cpp150 if (std::string(item.second.second.networkId) == std::string(nodeInfo.networkId)) { in DeleteDeviceInfo()
169 if (memcpy_s(deviceInfo_[udid].second.networkId, sizeof(deviceInfo_[udid].second.networkId), in ChangeDeviceInfo()
170 deviceInfo.networkId, sizeof(deviceInfo.networkId)) != DM_OK) { in ChangeDeviceInfo()
186 if (std::string(item.second.second.networkId) == std::string(localDeviceInfo_.networkId)) { in GetDeviceInfoFromCache()
220 if (std::string(item.second.second.networkId) == std::string(networkId)) { in GetUdidFromCache()
240 if (std::string(item.second.second.networkId) == std::string(networkId)) { in GetUuidFromCache()
259 if (memcpy_s(devInfo.networkId, sizeof(devInfo.networkId), nodeInfo.networkId, in ConvertNodeBasicInfoToDmDevice()
260 std::min(sizeof(devInfo.networkId), sizeof(nodeInfo.networkId))) != DM_OK) { in ConvertNodeBasicInfoToDmDevice()
341 if (std::string(item.second.second.networkId) == networkId) { in GetDevInfoByNetworkId()
369 if (networkId == std::string(nodeBasicInfo->networkId)) { in GetDevInfoFromBus()
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/include/
H A Ddsoftbus_handler.h35 void OnBind(const std::string &networkId) override in OnBind() argument
37 parent_.OnBind(networkId); in OnBind()
40 void OnShutdown(const std::string &networkId) override in OnShutdown() argument
42 parent_.OnShutdown(networkId); in OnShutdown()
47 parent_.OnConnected(networkId); in OnConnected()
52 return parent_.OnPacket(networkId, packet); in OnPacket()
70 int32_t OpenSession(const std::string &networkId);
71 void CloseSession(const std::string &networkId);
82 void OnBind(const std::string &networkId);
83 void OnShutdown(const std::string &networkId);
[all …]
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/include/
H A Ddsoftbus_handler.h35 void OnBind(const std::string &networkId) override in OnBind() argument
37 parent_.OnBind(networkId); in OnBind()
40 void OnShutdown(const std::string &networkId) override in OnShutdown() argument
42 parent_.OnShutdown(networkId); in OnShutdown()
47 parent_.OnConnected(networkId); in OnConnected()
52 return parent_.OnPacket(networkId, packet); in OnPacket()
70 int32_t OpenSession(const std::string &networkId);
71 void CloseSession(const std::string &networkId);
82 void OnBind(const std::string &networkId);
83 void OnShutdown(const std::string &networkId);
[all …]
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Ddtbschedmgr_device_info_storage.cpp159 uuidNetworkIdMap_[uuid] = networkId; in RegisterUuidNetworkIdMap()
197 RegisterUuidNetworkIdMap(networkId); in UpdateDeviceInfoStorage()
220 networkId = dmDeviceInfo.networkId; in GetLocalDeviceId()
286 GetAnonymStr(networkId).c_str()); in GetDeviceInfoById()
298 if (networkId.empty()) { in GetUuidByNetworkId()
306 if (iter->second == networkId) { in GetUuidByNetworkId()
319 if (networkId.empty()) { in GetUdidByNetworkId()
356 RegisterUuidNetworkIdMap(networkId); in DeviceOnlineNotify()
373 if (networkId.empty()) { in DeviceOfflineNotify()
382 auto nodeOffline = [this, networkId]() { in DeviceOfflineNotify()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_select_rule.c213 int32_t ret = P2pCapCheck(networkId); in HmlCapCheck()
235 int32_t ret = P2pCapCheck(networkId); in P2pReuseCapCheck()
272 int32_t ret = BleCapCheck(networkId); in BleDirectCapCheck()
323 ret = BleDirectCapCheck(networkId); in CocDirectCapCheck()
333 (void)networkId; in GetBrScore()
340 (void)networkId; in GetBleScore()
347 (void)networkId; in GetP2pScore()
354 (void)networkId; in GetHmlScore()
381 (void)networkId; in GetWlan2P4GScore()
388 (void)networkId; in GetWlan5GScore()
[all …]
H A Dlnn_lane_select.c119 if ((networkId == NULL) || (!IsLinkTypeValid(linkType))) { in LaneCapCheck()
126 int32_t ret = linkAttr->linkCapCheck(networkId); in LaneCapCheck()
181 return LaneCapCheck(networkId, linkType); in GetErrCodeOfLink()
234 return GetErrCodeOfLink(networkId, optionalLink[0]); in SelectByDefaultLink()
248 Anonymize(networkId, &anonyNetworkId); in PreProcLaneSelect()
292 Anonymize(networkId, &anonyNetworkId); in AdjustLanePriority()
358 Anonymize(networkId, &anonyNetworkId); in SelectLane()
416 static bool IsSupportP2pReuse(const char *networkId) in IsSupportP2pReuse() argument
418 if (networkId == NULL) { in IsSupportP2pReuse()
452 if (IsSupportP2pReuse(networkId)) { in SelectDbLinks()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c49 RETURN_IF_GET_NODE_VALID(networkId, buf, info); in DlGetDeviceUuid()
326 if (networkId == NULL) { in LnnSetRemoteScreenStatusInfo()
335 Anonymize(networkId, &anonyNetworkId); in LnnSetRemoteScreenStatusInfo()
664 Anonymize(networkId, &anonyNetworkId); in DlGetNodeScreenOnFlag()
840 if (networkId == NULL || name == NULL) { in LnnSetDLDeviceNickName()
1056 if (networkId == NULL || info == NULL) { in LnnSetDLP2pInfo()
1520 if (strncpy_s(buf, len, nodeInfo->networkId, strlen(nodeInfo->networkId)) != EOK) { in LnnGetNetworkIdByUuid()
1546 if (strncpy_s(buf, len, nodeInfo->networkId, strlen(nodeInfo->networkId)) != EOK) { in LnnGetNetworkIdByUdid()
1706 if (networkId == NULL || info == NULL) { in LnnSetDLBatteryInfo()
1727 if (networkId == NULL || info == NULL) { in LnnSetDLBssTransInfo()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/accessmanager/
H A Daccess_manager.cpp128 auto networkId = std::string(deviceInfo.networkId); in OnDeviceOffline() local
129 if (!IsIdLengthValid(networkId)) { in OnDeviceOffline()
132 std::string uuid = DHContext::GetInstance().GetUUIDByNetworkId(networkId); in OnDeviceOffline()
136 std::string udid = DHContext::GetInstance().GetUDIDByNetworkId(networkId); in OnDeviceOffline()
154 auto networkId = std::string(deviceInfo.networkId); in OnDeviceReady() local
155 if (!IsIdLengthValid(networkId)) { in OnDeviceReady()
158 auto uuid = GetUUIDByDm(networkId); in OnDeviceReady()
162 auto udid = GetUDIDByDm(networkId); in OnDeviceReady()
188 const auto networkId = std::string(deviceInfo.networkId); in CheckTrustedDeviceOnline() local
189 const auto uuid = GetUUIDByDm(networkId); in CheckTrustedDeviceOnline()
[all …]
/ohos5.0/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp126 if (std::string(deviceInfo.networkId) == networkId) { in CheckDeviceOnline()
144 int32_t ret = OpenSessionLocked(networkId); in OpenSession()
175 auto iter = sessions_.find(networkId); in FindConnection()
257 auto iter = sessions_.find(networkId); in HasSessionExisted()
280 std::string networkId = info.networkId; in OnBind() local
298 observer->OnBind(networkId); in OnBind()
315 std::string networkId = iter->first; in OnShutdown() local
324 observer->OnShutdown(networkId); in OnShutdown()
468 OnConnectedLocked(networkId); in OpenSessionLocked()
479 observer->OnConnected(networkId); in OnConnectedLocked()
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/connect_count/
H A Dconnect_count.cpp41 if (connect->callingTokenId == callingTokenId && connect->networkId == networkId) { in AddConnect()
46 auto connect = std::make_shared<Connect>(callingTokenId, networkId, 1, listener); in AddConnect()
50 bool ConnectCount::CheckCount(const std::string &networkId) in CheckCount() argument
54 if (connect->networkId == networkId) { in CheckCount()
66 connect->listener->OnStatus(connect->networkId, ON_STATUS_OFFLINE); in RemoveAllConnect()
86 void ConnectCount::RemoveConnect(const std::string &networkId) in RemoveConnect() argument
90 if ((*iter)->networkId == networkId) { in RemoveConnect()
102 if ((*iter)->callingTokenId == callingTokenId && (*iter)->networkId == networkId) { in RemoveConnect()
116 networkIds.push_back(connect->networkId); in GetNetworkIds()
126 if (connect->networkId == networkId && connect->listener != nullptr) { in NotifyRemoteReverseObj()
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp126 if (std::string(deviceInfo.networkId) == networkId) { in CheckDeviceOnline()
144 int32_t ret = OpenSessionLocked(networkId); in OpenSession()
180 auto iter = sessions_.find(networkId); in FindConnection()
188 int32_t socket = FindConnection(networkId); in SendPacket()
278 std::string networkId = info.networkId; in OnBind() local
296 observer->OnBind(networkId); in OnBind()
313 std::string networkId = iter->first; in OnShutdown() local
322 observer->OnShutdown(networkId); in OnShutdown()
466 OnConnectedLocked(networkId); in OpenSessionLocked()
477 observer->OnConnected(networkId); in OnConnectedLocked()
[all …]
/ohos5.0/base/security/access_token/services/tokensyncmanager/src/remote/
H A Dsoft_bus_device_connection_listener.cpp50 std::string networkId = std::string(info.networkId); in OnDeviceOnline() local
51 std::string uuid = SoftBusManager::GetInstance().GetUniversallyUniqueIdByNodeId(networkId); in OnDeviceOnline()
52 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(networkId); in OnDeviceOnline()
56 ConstantCommon::EncryptDevId(networkId).c_str(), in OnDeviceOnline()
62 networkId, uuid, udid, info.deviceName, std::to_string(info.deviceTypeId)); in OnDeviceOnline()
85 std::string networkId = std::string(info.networkId); in OnDeviceOffline() local
87 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline()
94 ConstantCommon::EncryptDevId(networkId).c_str(), in OnDeviceOffline()
100 DeviceInfoManager::GetInstance().RemoveRemoteDeviceInfo(networkId, DeviceIdType::NETWORK_ID); in OnDeviceOffline()
122 std::string networkId = std::string(info.networkId); in OnDeviceReady() local
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Ddev_manager.cpp86 return GetDevInfoFromBucket(networkId).uuid; in ToUUID()
91 return GetDevInfoFromBucket(uuid).networkId; in ToNetworkId()
119 deviceInfos_.Set(detailInfo.networkId, detailInfo); in UpdateBucket()
135 auto networkId = std::string(info.networkId); in GetUnEncryptedUuid() local
136 if (networkId.empty()) { in GetUnEncryptedUuid()
149 StoreUtil::Anonymous(networkId).c_str()); in GetUnEncryptedUuid()
165 auto networkId = std::string(info.networkId); in GetLocalDevice() local
168 if (uuid.empty() || networkId.empty()) { in GetLocalDevice()
171 localInfo_.networkId = std::move(networkId); in GetLocalDevice()
193 auto networkId = std::string(device.networkId); in GetRemoteDevices() local
[all …]
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/device/
H A Ddm_adapter.cpp115 value->Online(deviceInfo.networkId); in Initialize()
120 value->OnReady(deviceInfo.networkId); in Initialize()
126 value->Offline(deviceInfo.networkId); in Initialize()
171 if (device.networkId == networkId) { in GetDeviceName()
184 auto networkId = std::string(info.networkId); in GetLocalNetworkId() local
186 if (ret == 0 && !networkId.empty()) { in GetLocalNetworkId()
187 return networkId; in GetLocalNetworkId()
198 if (device.networkId == networkId) { in GetRemoteDeviceInfo()
241 networkIds.emplace_back(item.networkId); in GetNetworkIds()
264 bool DMAdapter::IsSameAccount(const std::string &networkId) in IsSameAccount() argument
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c149 if (LnnUpdateLocalNetworkId(info.networkId) != SOFTBUS_OK) { in ProcessLocalDeviceInfo()
152 LnnNotifyNetworkIdChangeEvent(info.networkId); in ProcessLocalDeviceInfo()
230 if (networkId == NULL || info == NULL) { in LnnGetNodeKeyInfoLocal()
271 if (networkId == NULL || info == NULL) { in LnnGetNodeKeyInfoRemote()
312 if (networkId == NULL || info == NULL) { in LnnGetNodeKeyInfo()
332 if (networkId == NULL || info == NULL) { in LnnGetPrivateNodeKeyInfoLocal()
353 if (networkId == NULL || info == NULL) { in LnnGetPrivateNodeKeyInfoRemote()
374 if (networkId == NULL || info == NULL) { in LnnGetPrivateNodeKeyInfo()
398 if (networkId == NULL) { in LnnSetNodeDataChangeFlag()
646 if (LnnGetPrivateNodeKeyInfo(nodeInfo->networkId, BYTE_KEY_IRK, in SoftbusDumpPrintIrk()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/utils/
H A Ddh_context.cpp130 .networkId = networkId, in AddOnlineDevice()
146 if (iter->networkId == networkId) { in RemoveOnlineDeviceIdEntryByNetworkId()
181 std::string networkId = ""; in GetNetworkIdByUUID() local
184 networkId = iter->networkId; in GetNetworkIdByUUID()
188 return networkId; in GetNetworkIdByUUID()
200 networkId = iter->networkId; in GetNetworkIdByUDID()
204 return networkId; in GetNetworkIdByUDID()
231 if (iter->networkId == networkId) { in GetUUIDByNetworkId()
247 if (iter->networkId == networkId) { in GetUDIDByNetworkId()
280 networkId = iter->networkId; in GetNetworkIdByDeviceId()
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/devicemanager/
H A Ddp_device_manager.cpp130 std::string networkId = deviceInfo.networkId; in OnDeviceOnline() local
138 std::string networkId = deviceInfo.networkId; in OnDeviceOffline() local
167 remoteDeviceInfoMap_[networkId] = deviceInfo; in OnNodeOnline()
183 auto offlineNotifyTask = [this, networkId = std::move(networkId)]() { in OnNodeOffline()
186 remoteDeviceInfoMap_.erase(networkId); in OnNodeOffline()
288 std::string networkId = dmDeviceInfo.networkId; in RecoverDevicesIfNeeded() local
290 AddDeviceIds(networkId); in RecoverDevicesIfNeeded()
313 AddDeviceIds(dmInfo.networkId); in AddLocalDeviceIds()
321 if (GetUdidByNetworkId(networkId, udid)) { in AddDeviceIds()
325 if (GetUuidByNetworkId(networkId, uuid)) { in AddDeviceIds()
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/client/src/
H A Dcooperate_client.cpp221 eventListener_[networkId].find(listener) != eventListener_[networkId].end()) { in RegisterEventListener()
232 eventListener_[networkId].insert(listener); in RegisterEventListener()
247 eventListener_[networkId].find(listener) == eventListener_[networkId].end()) { in UnregisterEventListener()
252 eventListener_.erase(networkId); in UnregisterEventListener()
257 if (eventListener_[networkId].empty()) { in UnregisterEventListener()
258 eventListener_.erase(networkId); in UnregisterEventListener()
345 std::string networkId; in OnCoordinationListener() local
347 pkt >> userData >> networkId >> nType; in OnCoordinationListener()
370 std::string networkId; in OnCoordinationMessage() local
402 callback(networkId, msgInfo); in OnCooperateMessageEvent()
[all …]
/ohos5.0/base/msdp/device_status/intention/cooperate/client/src/
H A Dcooperate_client.cpp216 eventListener_[networkId].find(listener) != eventListener_[networkId].end()) { in RegisterEventListener()
227 eventListener_[networkId].insert(listener); in RegisterEventListener()
242 eventListener_[networkId].find(listener) == eventListener_[networkId].end()) { in UnregisterEventListener()
247 eventListener_.erase(networkId); in UnregisterEventListener()
252 if (eventListener_[networkId].empty()) { in UnregisterEventListener()
253 eventListener_.erase(networkId); in UnregisterEventListener()
344 std::string networkId; in OnCoordinationListener() local
346 pkt >> userData >> networkId >> nType; in OnCoordinationListener()
369 std::string networkId; in OnCoordinationMessage() local
401 callback(networkId, msgInfo); in OnCooperateMessageEvent()
[all …]

12345678910>>...59