Home
last modified time | relevance | path

Searched refs:peerUdid (Results 1 - 25 of 105) sorted by relevance

12345

/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_topo_manager.c41 #define JSON_KEY_PEER_UDID "peerUdid"
77 char peerUdid[UDID_BUF_LEN]; member
143 if (strcpy_s(info->peerUdid, UDID_BUF_LEN, udid) != EOK || in CreateTopoInfo()
164 static int32_t FindTopoInfo(const char *udid, const char *peerUdid, TopoTableItem **item, TopoInfo **info) in FindTopoInfo() argument
168 const char *compareUdid = peerUdid; in FindTopoInfo()
172 topoItem = FindTopoItem(peerUdid); in FindTopoInfo()
183 if (strcmp(compareUdid, topoInfo->peerUdid) == 0) { in FindTopoInfo()
205 Anonymize(info->peerUdid, &anonyPeerUdid); in ClearTopoTable()
258 static int32_t PackTopoInfo(cJSON *info, const char *udid, const char *peerUdid, in PackTopoInfo() argument
271 !AddStringToJsonObject(item, JSON_KEY_PEER_UDID, peerUdid)) { in PackTopoInfo()
288 PackOneLnnRelation(const char *udid, const char *peerUdid, const uint8_t *relation, uint32_t len) PackOneLnnRelation() argument
310 AddTopoInfo(const char *udid, const char *peerUdid, const uint8_t *relation, uint32_t len) AddTopoInfo() argument
346 UpdateLocalTopo(const char *udid, const char *peerUdid, const uint8_t *relation, uint32_t len) UpdateLocalTopo() argument
422 TryCorrectRelation(const char *networkId, const char *udid, const char *peerUdid, const uint8_t *relation, uint32_t len) TryCorrectRelation() argument
458 char udid[UDID_BUF_LEN], peerUdid[UDID_BUF_LEN]; ProcessTopoUpdateInfo() local
696 LnnGetRelation(const char *udid, const char *peerUdid, uint8_t *relation, uint32_t len) LnnGetRelation() argument
[all...]
H A Dlnn_net_builder_init.c414 const char *peerUdid = LnnConvertDLidToUdid(networkId, CATEGORY_NETWORK_ID); in TryElectAsMasterState() local
415 if (peerUdid == NULL) { in TryElectAsMasterState()
418 LNN_LOGE(LNN_BUILDER, "get invalid peerUdid, networkId=%{public}s", AnonymizeWrapper(anonyNetworkId)); in TryElectAsMasterState()
422 if (strcmp(masterUdid, peerUdid) != 0) { in TryElectAsMasterState()
425 Anonymize(peerUdid, &anonyPeerUdid); in TryElectAsMasterState()
427 LNN_LOGD(LNN_BUILDER, "offline node is not master node. peerUdid=%{public}s, masterUdid=%{public}s", in TryElectAsMasterState()
628 static void OnDeviceNotTrusted(const char *peerUdid) in OnDeviceNotTrusted() argument
630 if (peerUdid == NULL) { in OnDeviceNotTrusted()
634 uint32_t udidLen = strlen(peerUdid) + 1; in OnDeviceNotTrusted()
639 if (DeletePcNodeInfo(peerUdid)) { in OnDeviceNotTrusted()
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane_listener/
H A Dlnn_lane_listener_deps_mock.cpp49 int32_t PostLaneStateChangeMessage(LaneState state, const char *peerUdid, const LaneLinkInfo *laneLinkInfo) in PostLaneStateChangeMessage() argument
51 return GetLaneListenerDepsInterface()->PostLaneStateChangeMessage(state, peerUdid, laneLinkInfo); in PostLaneStateChangeMessage()
64 int32_t FindLaneResourceByLinkType(const char *peerUdid, LaneLinkType type, LaneResource *resource) in FindLaneResourceByLinkType() argument
66 return GetLaneListenerDepsInterface()->FindLaneResourceByLinkType(peerUdid, type, resource); in FindLaneResourceByLinkType()
H A Dlnn_lane_listener_deps_mock.h34 virtual int32_t PostLaneStateChangeMessage(LaneState state, const char *peerUdid,
38 virtual int32_t FindLaneResourceByLinkType(const char *peerUdid, LaneLinkType type, LaneResource *resource) = 0;
55 MOCK_METHOD3(PostLaneStateChangeMessage, int32_t (LaneState state, const char *peerUdid,
59 MOCK_METHOD3(FindLaneResourceByLinkType, int32_t (const char *peerUdid, LaneLinkType type, LaneResource *resource));
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/trans_lane/
H A Dlnn_trans_lane_deps_mock.cpp129 int32_t LaneLinkupNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) in LaneLinkupNotify() argument
131 return GetTransLaneIf()->LaneLinkupNotify(peerUdid, laneLinkInfo); in LaneLinkupNotify()
134 int32_t LaneLinkdownNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) in LaneLinkdownNotify() argument
136 return GetTransLaneIf()->LaneLinkdownNotify(peerUdid, laneLinkInfo); in LaneLinkdownNotify()
154 int32_t CheckLaneResourceNumByLinkType(const char *peerUdid, LaneLinkType type, int32_t *laneNum) in CheckLaneResourceNumByLinkType() argument
156 return GetTransLaneIf()->CheckLaneResourceNumByLinkType(peerUdid, type, laneNum); in CheckLaneResourceNumByLinkType()
H A Dlnn_trans_lane_deps_mock.h50 virtual int32_t LaneLinkupNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) = 0;
51 virtual int32_t LaneLinkdownNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) = 0;
55 virtual int32_t CheckLaneResourceNumByLinkType(const char *peerUdid, LaneLinkType type, int32_t *laneNum) = 0;
76 MOCK_METHOD2(LaneLinkupNotify, int32_t (const char *peerUdid, const LaneLinkInfo *laneLinkInfo));
77 MOCK_METHOD2(LaneLinkdownNotify, int32_t (const char *peerUdid, const LaneLinkInfo *laneLinkInfo));
81 MOCK_METHOD3(CheckLaneResourceNumByLinkType, int32_t (const char *peerUdid, LaneLinkType type, int32_t *laneNum));
/foundation/distributedhardware/device_manager/radar/include/
H A Ddm_radar_helper.h142 std::string peerUdid; member
159 virtual bool ReportAuthStart(const std::string &peerUdid, const std::string &pkgName) = 0;
177 int32_t channelId, std::string peerUdid, int32_t errCode, int32_t stageRes) = 0;
179 std::string peerUdid, int32_t errCode, int32_t stageRes) = 0;
180 virtual void ReportSendOrReceiveHolderMsg(int32_t bizStage, std::string funcName, std::string peerUdid) = 0;
195 bool ReportAuthStart(const std::string &peerUdid, const std::string &pkgName) override;
213 int32_t channelId, std::string peerUdid, int32_t errCode, int32_t stageRes) override;
215 std::string peerUdid, int32_t errCode, int32_t stageRes) override;
216 void ReportSendOrReceiveHolderMsg(int32_t bizStage, std::string funcName, std::string peerUdid) override;
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_topo_manager.h29 char peerUdid[UDID_BUF_LEN]; member
44 int32_t LnnGetRelation(const char *udid, const char *peerUdid, uint8_t *relation, uint32_t len);
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_link.c176 strncmp(item->link.peerUdid, linkInfoItem->peerUdid, UDID_BUF_LEN) == 0 && in GetValidLaneResource()
418 Anonymize(linkInfo->peerUdid, &anonyRemoteUdid); in AddNetworkResourceInner()
422 if (anonyRemoteUdid == NULL || strcpy_s(networkResource->peerUdid, NETWORK_ID_BUF_LEN, anonyRemoteUdid) != EOK) { in AddNetworkResourceInner()
423 LNN_LOGE(LNN_LANE, "strcpy peerUdid fail"); in AddNetworkResourceInner()
523 Anonymize(resource->peerUdid, &anonyPeerUdid); in DumpWifiDirectInfo()
524 LNN_LOGI(LNN_LANE, "peerUdid=%{public}s, linkType=%{public}s, channel=%{public}d", AnonymizeWrapper(anonyPeerUdid), in DumpWifiDirectInfo()
634 int32_t FindLaneResourceByLinkType(const char *peerUdid, LaneLinkType type, LaneResource *resource) in FindLaneResourceByLinkType() argument
636 if (peerUdid == NULL || type >= LANE_LINK_TYPE_BUTT || resource == NULL) { in FindLaneResourceByLinkType()
646 if (strcmp(peerUdid, ite in FindLaneResourceByLinkType()
716 UpdateLaneResourceLaneId(uint64_t oldLaneId, uint64_t newLaneId, const char *peerUdid) UpdateLaneResourceLaneId() argument
747 CheckLaneResourceNumByLinkType(const char *peerUdid, LaneLinkType type, int32_t *laneNum) CheckLaneResourceNumByLinkType() argument
846 ConvertUdidToHexStr(const char *peerUdid, char *udidHashStr, uint32_t hashStrLen) ConvertUdidToHexStr() argument
872 char peerUdid[UDID_BUF_LEN] = {0}; FetchLaneResourceByDevId() local
1267 char peerUdid[UDID_BUF_LEN] = {0}; LaneLinkOfBle() local
1550 char peerUdid[UDID_BUF_LEN] = {0}; LaneLinkOfCoc() local
[all...]
H A Dlnn_lane_listener.c202 uint64_t laneId = GenerateLaneId(localUdid, laneLinkInfo->peerUdid, laneLinkInfo->type); in FindLaneBusinessInfoByLinkInfo()
262 int32_t LaneLinkupNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) in LaneLinkupNotify() argument
264 if (peerUdid == NULL || laneLinkInfo == NULL) { in LaneLinkupNotify()
294 uint64_t laneId = GenerateLaneId(localUdid, peerUdid, laneLinkInfo->type); in LaneLinkupNotify()
298 listenerList[i].listener.onLaneLinkup(laneId, peerUdid, &laneConnInfo); in LaneLinkupNotify()
304 int32_t LaneLinkdownNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo) in LaneLinkdownNotify() argument
306 if (peerUdid == NULL || laneLinkInfo == NULL) { in LaneLinkdownNotify()
312 if (FindLaneResourceByLinkType(peerUdid, laneLinkInfo->type, &resourceItem) == SOFTBUS_OK) { in LaneLinkdownNotify()
320 FindLaneResourceByLinkType(peerUdid, LANE_HML_RAW, &resourceItem) == SOFTBUS_OK) { in LaneLinkdownNotify()
349 laneListener.listener.onLaneLinkdown(laneBusinessInfo[i].laneId, peerUdid, in LaneLinkdownNotify()
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_wifi_adpter_mock.cpp67 char peerUdid[] = "222222222222222222"; in ActionOfLnnConnectP2p() local
71 if (strncpy_s(linkInfo.peerUdid, UDID_BUF_LEN, peerUdid, strlen(peerUdid)) != EOK) { in ActionOfLnnConnectP2p()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/
H A Dlnn_lane_link.h95 char peerUdid[UDID_BUF_LEN]; member
136 int32_t FindLaneResourceByLinkType(const char *peerUdid, LaneLinkType type, LaneResource *resource);
137 int32_t CheckLaneResourceNumByLinkType(const char *peerUdid, LaneLinkType type, int32_t *laneNum);
141 int32_t UpdateLaneResourceLaneId(uint64_t oldLaneId, uint64_t newLaneId, const char *peerUdid);
H A Dlnn_lane_listener.h33 int32_t LaneLinkupNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo);
34 int32_t LaneLinkdownNotify(const char *peerUdid, const LaneLinkInfo *laneLinkInfo);
/foundation/deviceprofile/device_info_manager/services/core/include/
H A Di_dp_sync_adapter.h31 virtual int32_t NotOHBaseDeviceOnline(const std::string& peerUdid, const std::string& peerNetworkId,
33 virtual int32_t SyncProfile(const std::string& peerUdid, const std::string& peerNetworkId,
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_device.c327 void AuthDeviceNotTrust(const char *peerUdid) in AuthDeviceNotTrust() argument
329 if (peerUdid == NULL || strlen(peerUdid) == 0) { in AuthDeviceNotTrust()
334 if (LnnGetNetworkIdByUdid(peerUdid, networkId, sizeof(networkId)) != SOFTBUS_OK) { in AuthDeviceNotTrust()
338 RemoveNotPassedAuthManagerByUdid(peerUdid); in AuthDeviceNotTrust()
339 AuthSessionHandleDeviceNotTrusted(peerUdid); in AuthDeviceNotTrust()
340 LnnDeleteSpecificTrustedDevInfo(peerUdid); in AuthDeviceNotTrust()
342 AuthRemoveDeviceKeyByUdid(peerUdid); in AuthDeviceNotTrust()
383 static void OnDeviceNotTrusted(const char *peerUdid) in OnDeviceNotTrusted() argument
385 RemoveNotPassedAuthManagerByUdid(peerUdid); in OnDeviceNotTrusted()
[all...]
/foundation/distributedhardware/device_manager/radar/src/lite/
H A Ddm_radar_helper.cpp44 bool DmRadarHelper::ReportAuthStart(const std::string &peerUdid, const std::string &pkgName) in ReportAuthStart() argument
126 int32_t channelId, std::string peerUdid, int32_t errCode, int32_t stageRes) in ReportCreatePinHolder()
132 std::string peerUdid, int32_t errCode, int32_t stageRes) in ReportDestroyPinHolder()
137 void DmRadarHelper::ReportSendOrReceiveHolderMsg(int32_t bizStage, std::string funcName, std::string peerUdid) in ReportSendOrReceiveHolderMsg() argument
125 ReportCreatePinHolder(std::string hostName, int32_t channelId, std::string peerUdid, int32_t errCode, int32_t stageRes) ReportCreatePinHolder() argument
131 ReportDestroyPinHolder(std::string hostName, std::string peerUdid, int32_t errCode, int32_t stageRes) ReportDestroyPinHolder() argument
/foundation/distributedhardware/device_manager/radar/src/
H A Ddm_radar_helper.cpp94 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportDiscoverResCallback()
111 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportDiscoverResCallback()
176 bool DmRadarHelper::ReportAuthStart(const std::string &peerUdid, const std::string &pkgName) in ReportAuthStart() argument
191 "PEER_UDID", GetAnonyUdid(peerUdid), in ReportAuthStart()
213 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportAuthOpenSession()
231 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportAuthOpenSession()
258 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportAuthSessionOpenCb()
478 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportAuthAddGroup()
491 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportAuthAddGroup()
552 "PEER_UDID", GetAnonyUdid(info.peerUdid), in ReportNetworkOnline()
609 ReportCreatePinHolder(std::string hostName, int32_t channelId, std::string peerUdid, int32_t errCode, int32_t stageRes) ReportCreatePinHolder() argument
660 ReportDestroyPinHolder(std::string hostName, std::string peerUdid, int32_t errCode, int32_t stageRes) ReportDestroyPinHolder() argument
708 ReportSendOrReceiveHolderMsg(int32_t bizStage, std::string funcName, std::string peerUdid) ReportSendOrReceiveHolderMsg() argument
[all...]
/foundation/communication/dsoftbus/core/common/dfx/interface/include/form/
H A Dlnn_event_form.h121 const char *peerUdid; // PEER_UDID member
140 char peerUdid[UDID_BUF_LEN]; // PEER_UDID member
215 const char peerUdid[UDID_BUF_LEN]; // PEER_UDID member
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_listener.c126 TransGetRemoteDeviceVersion(extra->peerUdid, CATEGORY_UDID, (char *)(appInfo->peerVersion), in FillExtraByProxyChannelErrorEnd()
167 extra.peerUdid = appInfo->peerUdid; in OnProxyChannelOpened()
170 extra.peerUdid = appInfo->appType == APP_TYPE_AUTH ? appInfo->peerData.deviceId : extra.peerUdid; in OnProxyChannelOpened()
281 .peerUdid = appInfo->appType == APP_TYPE_AUTH ? appInfo->peerData.deviceId : appInfo->peerUdid, in TransProxyReportOpenChannelFailEvent()
287 TransGetRemoteDeviceVersion(extra.peerUdid, CATEGORY_UDID, (char *)(appInfo->peerVersion), in TransProxyReportOpenChannelFailEvent()
396 GetRemoteUdidWithNetworkId(peerNetworkId, appInfo->peerUdid, sizeof(appInfo->peerUdid)); in TransProxyGetAppInfo()
[all...]
/foundation/communication/dsoftbus/tests/core/common/dfx/event/unittest/src/
H A Dlnn_event_test.cpp89 .peerUdid = "a8ynvpdaihw1f6nknjd2hkfhxljxypkr6kvjsbhnhpp16974uo4fvsrpfa6t50fm", in HWTEST_F()
143 .peerUdid = "", in HWTEST_F()
210 .peerUdid = "aassddffgghhhh", in HWTEST_F()
H A Dconn_event_test.cpp88 .peerUdid = "testPeerUdid",
148 .peerUdid = "\0",
215 .peerUdid = "aassddffggh565",
/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
H A Dtrans_channel_callback.c66 char peerUdid[DEVICE_ID_SIZE_MAX] = { 0 }; in TransServerOnChannelOpened() local
68 GetRemoteUdidWithNetworkId(channel->peerDeviceId, peerUdid, sizeof(peerUdid)); in TransServerOnChannelOpened()
91 .peerUdid = channel->isEncrypt ? peerUdid : channel->peerDeviceId in TransServerOnChannelOpened()
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/
H A Dstatic_profile_manager.cpp223 void StaticProfileManager::ClearDataWithPeerLogout(const std::string& peerUdid, const std::string& peerUuid) in ClearDataWithPeerLogout() argument
225 if (peerUdid.empty() || peerUuid.empty()) { in ClearDataWithPeerLogout()
226 HILOGE("peerUdid or peerUuid is empty!"); in ClearDataWithPeerLogout()
235 if (staticProfileStore_->GetByPrefix(CHAR_PREFIX + SEPARATOR + peerUdid, values) != DP_SUCCESS) { in ClearDataWithPeerLogout()
236 HILOGE("Get char profile by prefix fail, peerUdid=%{public}s", ProfileUtils::GetAnonyString(peerUdid).c_str()); in ClearDataWithPeerLogout()
248 HILOGE("DeleteBatchByKeys fail, peerUdid=%{public}s", ProfileUtils::GetAnonyString(peerUdid).c_str()); in ClearDataWithPeerLogout()
/foundation/distributedhardware/device_manager/test/unittest/mock/
H A Ddevice_auth.h43 #define FIELD_PEER_UDID "peerUdid"
134 void (*onDeviceBound)(const char *peerUdid, const char *groupInfo);
135 void (*onDeviceUnBound)(const char *peerUdid, const char *groupInfo);
136 void (*onDeviceNotTrusted)(const char *peerUdid);
137 void (*onLastGroupDeleted)(const char *peerUdid, int groupType);
154 int32_t (*getAuthState)(int64_t authReqId, const char *groupId, const char *peerUdid,
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/
H A Dlane_test.cpp429 EXPECT_EQ(strncpy_s(linkInfo.peerUdid, UDID_BUF_LEN, NODE_UDID, UDID_BUF_LEN), EOK); in HWTEST_F()
456 const char *peerUdid = "123456ABCDEF"; in HWTEST_F() local
459 EXPECT_EQ(CheckLaneResourceNumByLinkType(peerUdid, LANE_HML, &laneNum), SOFTBUS_NOT_FIND); in HWTEST_F()
461 EXPECT_EQ(CheckLaneResourceNumByLinkType(peerUdid, LANE_LINK_TYPE_BUTT, &laneNum), SOFTBUS_INVALID_PARAM); in HWTEST_F()
462 EXPECT_EQ(CheckLaneResourceNumByLinkType(peerUdid, LANE_HML_RAW, &laneNum), SOFTBUS_NOT_FIND); in HWTEST_F()
475 const char *peerUdid = "123456ABCDEF"; in HWTEST_F() local
477 EXPECT_EQ(UpdateLaneResourceLaneId(oldLaneId, newLaneId, peerUdid), SOFTBUS_NOT_FIND); in HWTEST_F()

Completed in 14 milliseconds

12345