Home
last modified time | relevance | path

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

12345678910>>...23

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
Ddev_manager.cpp47 devManager_.Online(deviceInfo.networkId); in OnDeviceOnline()
52 devManager_.Offline(deviceInfo.networkId); in OnDeviceOffline()
57 devManager_.OnChanged(deviceInfo.networkId); in OnDeviceChanged()
62 devManager_.OnReady(deviceInfo.networkId); in OnDeviceReady()
123 std::string DevManager::ToUUID(const std::string &networkId) in ToUUID() argument
125 return GetDvInfoFromBucket(networkId).uuid; in ToUUID()
130 return GetDvInfoFromBucket(uuid).networkId; in ToNetworkId()
154 if (dtInfo.uuid.empty() || dtInfo.networkId.empty()) { in UpdateBucket()
158 deviceInfos_.Set(dtInfo.networkId, dtInfo); in UpdateBucket()
174 auto networkId = std::string(info.networkId); in GetLocalDevice() local
[all …]
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
Dlnn_select_rule.c49 static bool GetNetCap(const char *networkId, int32_t *local, int32_t *remote) in GetNetCap() argument
56 ret = LnnGetRemoteNumInfo(networkId, NUM_KEY_NET_CAP, remote); in GetNetCap()
64 static bool IsEnableWlan2P4G(const char *networkId) in IsEnableWlan2P4G() argument
72 if (!GetNetCap(networkId, &local, &remote)) { in IsEnableWlan2P4G()
84 static bool IsEnableWlan5G(const char *networkId) in IsEnableWlan5G() argument
92 if (!GetNetCap(networkId, &local, &remote)) { in IsEnableWlan5G()
104 static bool IsEnableBr(const char *networkId) in IsEnableBr() argument
107 if (!GetNetCap(networkId, &local, &remote)) { in IsEnableBr()
118 static bool IsEnableP2p(const char *networkId) in IsEnableP2p() argument
121 if (!GetNetCap(networkId, &local, &remote)) { in IsEnableP2p()
[all …]
Dlnn_lane_select.c99 static bool IsValidLane(const char *networkId, LaneLinkType linkType, uint32_t expectedBw) in IsValidLane() argument
108 if (linkAttr->IsEnable(networkId) != true) { in IsValidLane()
112 if (linkAttr->GetLinkScore(networkId, expectedBw) <= UNACCEPT_SCORE) { in IsValidLane()
119 static void SelectByPreferredLink(const char *networkId, const LaneSelectParam *request, in SelectByPreferredLink() argument
126 if (!IsValidLane(networkId, preferredList[i], request->expectedBw)) { in SelectByPreferredLink()
134 static void SelectByDefaultLink(const char *networkId, const LaneSelectParam *request, in SelectByDefaultLink() argument
146 if (!IsValidLane(networkId, optionalLink[i], request->expectedBw)) { in SelectByDefaultLink()
153 static int32_t PreProcLaneSelect(const char *networkId, const LaneSelectParam *request, in PreProcLaneSelect() argument
156 if ((networkId == NULL) || (request == NULL) || (recommendList == NULL) || (listNum == NULL)) { in PreProcLaneSelect()
160 if (!LnnGetOnlineStateById(networkId, CATEGORY_NETWORK_ID)) { in PreProcLaneSelect()
[all …]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
Dlnn_net_ledger.c74 static int32_t LnnGetNodeKeyInfoLocal(const char *networkId, int key, uint8_t *info, uint32_t infoL… in LnnGetNodeKeyInfoLocal() argument
76 if (networkId == NULL || info == NULL) { in LnnGetNodeKeyInfoLocal()
107 static int32_t LnnGetNodeKeyInfoRemote(const char *networkId, int key, uint8_t *info, uint32_t info… in LnnGetNodeKeyInfoRemote() argument
109 if (networkId == NULL || info == NULL) { in LnnGetNodeKeyInfoRemote()
115 return LnnGetRemoteStrInfo(networkId, STRING_KEY_DEV_UDID, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
117 return LnnGetRemoteStrInfo(networkId, STRING_KEY_UUID, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
119 return LnnGetRemoteStrInfo(networkId, STRING_KEY_BT_MAC, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
121 return LnnGetRemoteStrInfo(networkId, STRING_KEY_WLAN_IP, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
123 return LnnGetRemoteStrInfo(networkId, STRING_KEY_DEV_NAME, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
125 return LnnGetRemoteStrInfo(networkId, STRING_KEY_OFFLINE_CODE, (char *)info, infoLen); in LnnGetNodeKeyInfoRemote()
[all …]
/foundation/communication/dsoftbus/core/bus_center/ipc/standard/src/
Dlnn_bus_center_ipc.cpp43 char networkId[NETWORK_ID_BUF_LEN]; member
119 static bool IsRepeatLeaveLNNRequest(const char *pkgName, const char *networkId) in IsRepeatLeaveLNNRequest() argument
126 if (strncmp(networkId, (*iter)->networkId, strlen(networkId)) == 0) { in IsRepeatLeaveLNNRequest()
133 static bool IsRepeatLeaveMetaNodeRequest(const char *pkgName, const char *networkId) in IsRepeatLeaveMetaNodeRequest() argument
140 if (strncmp(networkId, (*iter)->networkId, strlen(networkId)) == 0) { in IsRepeatLeaveMetaNodeRequest()
147 static int32_t AddLeaveLNNInfo(const char *pkgName, const char *networkId) in AddLeaveLNNInfo() argument
158 if (strncpy_s(info->networkId, NETWORK_ID_BUF_LEN, networkId, strlen(networkId)) != EOK) { in AddLeaveLNNInfo()
167 static int32_t AddLeaveMetaNodeInfo(const char *pkgName, const char *networkId) in AddLeaveMetaNodeInfo() argument
178 if (strncpy_s(info->networkId, NETWORK_ID_BUF_LEN, networkId, strlen(networkId)) != EOK) { in AddLeaveMetaNodeInfo()
241 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId) in LnnIpcServerLeave() argument
[all …]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/accessmanager/
Daccess_manager.cpp133 auto networkId = std::string(deviceInfo.deviceId); // deviceId of DM actually is networkId in OnDeviceOffline() local
134 if (networkId.size() == 0 || networkId.size() > MAX_ID_LEN) { in OnDeviceOffline()
138 auto uuid = GetUUIDBySoftBus(networkId); in OnDeviceOffline()
142 uuid = uuid.empty() ? DHContext::GetInstance().GetUUIDByNetworkId(networkId) : uuid; in OnDeviceOffline()
149 …DistributedHardwareManagerFactory::GetInstance().SendOffLineEvent(networkId, uuid, deviceInfo.devi… in OnDeviceOffline()
150 DHLOGI("offline result = %d, networkId = %s, uuid = %s", ret, GetAnonyString(networkId).c_str(), in OnDeviceOffline()
160 auto networkId = std::string(deviceInfo.deviceId); in OnDeviceReady() local
161 if (networkId.size() == 0 || networkId.size() > MAX_ID_LEN) { in OnDeviceReady()
165 auto uuid = GetUUIDBySoftBus(networkId); in OnDeviceReady()
171 …DistributedHardwareManagerFactory::GetInstance().SendOnLineEvent(networkId, uuid, deviceInfo.devic… in OnDeviceReady()
[all …]
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_link_listener_test/
Dtrans_link_listener_test.cpp80 char networkId[NETWORK_ID_BUF_LEN] = {0}; variable
83 int32_t ret = GetNetworkIdByP2pMac(peerMac, networkId, sizeof(networkId));
96 char networkId[NETWORK_ID_BUF_LEN] = {0}; variable
99 int32_t ret = GetNetworkIdByP2pMac(peerMac, networkId, sizeof(networkId));
103 ret = GetNetworkIdByP2pMac(peerMac, networkId, sizeof(networkId));
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/
Ddistributed_hardware_manager_factory.cpp85 const auto networkId = std::string(deviceInfo.deviceId); in CheckExitSAOrNot() local
86 const auto uuid = GetUUIDBySoftBus(networkId); in CheckExitSAOrNot()
87 … DHLOGI("Send trusted device online, networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(), in CheckExitSAOrNot()
89 std::thread(&DistributedHardwareManagerFactory::SendOnLineEvent, this, networkId, uuid, in CheckExitSAOrNot()
99 int32_t DistributedHardwareManagerFactory::SendOnLineEvent(const std::string &networkId, const std:… in SendOnLineEvent() argument
102 …if (networkId.size() == 0 || networkId.size() > MAX_ID_LEN || uuid.size() == 0 || uuid.size() > MA… in SendOnLineEvent()
112 DHContext::GetInstance().AddOnlineDevice(uuid, networkId); in SendOnLineEvent()
119 …auto onlineResult = DistributedHardwareManager::GetInstance().SendOnLineEvent(networkId, uuid, dev… in SendOnLineEvent()
127 int32_t DistributedHardwareManagerFactory::SendOffLineEvent(const std::string &networkId, const std… in SendOffLineEvent() argument
130 …if (networkId.empty() || networkId.size() > MAX_ID_LEN || uuid.empty() || uuid.size() > MAX_ID_LEN… in SendOffLineEvent()
[all …]
Ddistributed_hardware_manager.cpp83 int32_t DistributedHardwareManager::SendOnLineEvent(const std::string &networkId, const std::string… in SendOnLineEvent() argument
88 …if (networkId.size() == 0 || networkId.size() > MAX_ID_LEN || uuid.size() == 0 || uuid.size() > MA… in SendOnLineEvent()
93 …DHLOGI("networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str(… in SendOnLineEvent()
96 .networkId = networkId, in SendOnLineEvent()
110 int32_t DistributedHardwareManager::SendOffLineEvent(const std::string &networkId, const std::strin… in SendOffLineEvent() argument
115 …if (networkId.empty() || networkId.size() > MAX_ID_LEN || uuid.empty() || uuid.size() > MAX_ID_LEN… in SendOffLineEvent()
120 …DHLOGI("networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str(… in SendOffLineEvent()
123 .networkId = networkId, in SendOffLineEvent()
133 Publisher::GetInstance().PublishMessage(DHTopic::TOPIC_DEV_OFFLINE, networkId); in SendOffLineEvent()
136 GetAnonyString(networkId), "dhfwk device offline event."); in SendOffLineEvent()
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
Ddev_manager.cpp65 std::string DevManager::ToUUID(const std::string &networkId) const in ToUUID()
74 return deviceInfo.networkId; in ToNetworkId()
80 deviceInfos_.Set(info.networkId, info); in ToNetworkId()
81 return info.networkId; in ToNetworkId()
86 return (localInfo_.uuid == uuid) ? localInfo_.networkId : ""; in ToNetworkId()
100 void DevManager::Online(const std::string &networkId) in Online() argument
105 void DevManager::Offline(const std::string &networkId) in Offline() argument
108 if (deviceInfos_.Get(networkId, deviceInfo)) { in Offline()
109 deviceInfos_.Delete(networkId); in Offline()
114 void DevManager::OnChanged(const std::string &networkId) in OnChanged() argument
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/distributed_media_library/device_manage/
Dmedialibrary_device.cpp102 …MediaLibraryDevice::TryToGetTargetDevMLInfos(const std::string &udid, const std::string &networkId) in TryToGetTargetDevMLInfos() argument
113 devsInfoInter_->SyncMLDeviceInfos(udid, networkId); in TryToGetTargetDevMLInfos()
132 deviceInfoMap_[networkId].versionId = version; in TryToGetTargetDevMLInfos()
134 networkId.substr(0, TRIM_LENGTH).c_str(), version.c_str()); in TryToGetTargetDevMLInfos()
183 deviceInfoMap_[mldevInfo.networkId] = mldevInfo; in OnGetDevSecLevel()
195 deviceInfoMap_[devInfo.networkId] = mldevInfo; in DevOnlineProcess()
203 std::vector<std::string> devices = { mldevInfo.networkId }; in DevOnlineProcess()
207 this, mldevInfo.deviceUdid, mldevInfo.networkId); in DevOnlineProcess()
213 MEDIA_INFO_LOG("dev online network id %{private}s", deviceInfo.networkId); in OnDeviceOnline()
218 MEDIA_INFO_LOG("OnDeviceOffline networkId = %{private}s", deviceInfo.networkId); in OnDeviceOffline()
[all …]
/foundation/communication/dsoftbus/core/bus_center/ipc/small/src/
Dlnn_bus_center_ipc.c45 char networkId[NETWORK_ID_BUF_LEN]; member
88 static LeaveLnnRequestInfo *FindLeaveLNNRequest(const char *networkId) in FindLeaveLNNRequest() argument
94 if (strncmp(networkId, info->networkId, strlen(networkId)) == 0) { in FindLeaveLNNRequest()
137 static bool IsRepeatLeaveLNNRequest(const char *pkgName, const char *networkId) in IsRepeatLeaveLNNRequest() argument
145 if (strncmp(networkId, info->networkId, strlen(networkId)) == 0) { in IsRepeatLeaveLNNRequest()
152 static int32_t AddLeaveLNNInfo(const char *pkgName, const char *networkId) in AddLeaveLNNInfo() argument
166 if (strncpy_s(info->networkId, NETWORK_ID_BUF_LEN, networkId, strlen(networkId)) != EOK) { in AddLeaveLNNInfo()
223 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId) in LnnIpcServerLeave() argument
225 if (pkgName == NULL || networkId == NULL) { in LnnIpcServerLeave()
240 if (IsRepeatLeaveLNNRequest(pkgName, networkId)) { in LnnIpcServerLeave()
[all …]
/foundation/communication/dsoftbus/core/bus_center/ipc/mini/
Dlnn_bus_center_ipc.c58 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId) in LnnIpcServerLeave() argument
61 return LnnServerLeave(networkId); in LnnIpcServerLeave()
81 int32_t LnnIpcGetNodeKeyInfo(const char *pkgName, const char *networkId, int key, unsigned char *bu… in LnnIpcGetNodeKeyInfo() argument
84 return LnnGetNodeKeyInfo(networkId, key, buf, len); in LnnIpcGetNodeKeyInfo()
87 int32_t LnnIpcSetNodeDataChangeFlag(const char *pkgName, const char *networkId, uint16_t dataChange… in LnnIpcSetNodeDataChangeFlag() argument
90 return LnnSetNodeDataChangeFlag(networkId, dataChangeFlag); in LnnIpcSetNodeDataChangeFlag()
157 int32_t LnnIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId, int32_t ret… in LnnIpcNotifyJoinResult() argument
160 return LnnOnJoinResult(addr, networkId, retCode); in LnnIpcNotifyJoinResult()
163 int32_t MetaNodeIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId, int32_… in MetaNodeIpcNotifyJoinResult() argument
167 (void)networkId; in MetaNodeIpcNotifyJoinResult()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/
Ddev_manager.h27 std::string networkId; member
32 std::string ToUUID(const std::string &networkId);
40 virtual void Online(const std::string &networkId) = 0;
41 virtual void Offline(const std::string &networkId) = 0;
52 void Online(const std::string &networkId);
53 void Offline(const std::string &networkId);
54 void OnChanged(const std::string &networkId);
55 void OnReady(const std::string &networkId);
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
Dbus_center_sdk_test.cpp129 static void OnJoinLNNDone(ConnectionAddr *addr, const char *networkId, int32_t retCode) in OnJoinLNNDone() argument
132 (void)networkId; in OnJoinLNNDone()
136 static void OnLeaveLNNDone(const char *networkId, int32_t retCode) in OnLeaveLNNDone() argument
138 (void)networkId; in OnLeaveLNNDone()
200 char networkId[] = "0123456789987654321001234567899876543210012345678998765432100123"; variable
202 EXPECT_TRUE(LeaveLNN(nullptr, networkId, OnLeaveLNNDone) != SOFTBUS_OK);
204 EXPECT_TRUE(LeaveLNN(TEST_PKG_NAME, networkId, nullptr) != SOFTBUS_OK);
268 EXPECT_TRUE(strlen(info.networkId) == (NETWORK_ID_BUF_LEN - 1));
293 EXPECT_TRUE(GetNodeKeyInfo(TEST_PKG_NAME, info.networkId, NODE_KEY_UDID,
295 EXPECT_TRUE(GetNodeKeyInfo(TEST_PKG_NAME, info.networkId, NODE_KEY_UUID,
[all …]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/
Dcomponent_disable.cpp33 int32_t ComponentDisable::Disable(const std::string &networkId, const std::string &dhId, in Disable() argument
36 …DHLOGD("networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str(… in Disable()
38 DHLOGE("handler is null, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Disable()
43 auto ret = handler->UnregisterDistributedHardware(networkId, dhId, shared_from_this()); in Disable()
45 …nregisterDistributedHardware failed, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Disable()
57 DHLOGE("disable timeout, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Disable()
67 int32_t ComponentDisable::OnUnregisterResult(const std::string &networkId, const std::string &dhId,… in OnUnregisterResult() argument
71 DHLOGI("disable success, networkId = %s, dhId = %s.", GetAnonyString(networkId).c_str(), in OnUnregisterResult()
74 …DHLOGE("disable failed, networkId = %s, dhId = %s, status = %d.", GetAnonyString(networkId).c_str(… in OnUnregisterResult()
Dcomponent_enable.cpp33 int32_t ComponentEnable::Enable(const std::string &networkId, const std::string &dhId, const Enable… in Enable() argument
36 …DHLOGD("networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), GetAnonyString(dhId).c_str(… in Enable()
38 DHLOGE("handler is null, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Enable()
43 auto ret = handler->RegisterDistributedHardware(networkId, dhId, param, shared_from_this()); in Enable()
45 …"RegisterDistributedHardware failed, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Enable()
57 DHLOGE("enable timeout, networkId = %s dhId = %s", GetAnonyString(networkId).c_str(), in Enable()
67 int32_t ComponentEnable::OnRegisterResult(const std::string &networkId, const std::string &dhId, in… in OnRegisterResult() argument
71 DHLOGI("enable success, networkId = %s, dhId = %s.", GetAnonyString(networkId).c_str(), in OnRegisterResult()
74 …DHLOGE("enable failed, networkId = %s, dhId = %s, status = %d.", GetAnonyString(networkId).c_str(), in OnRegisterResult()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
Dmock_wifi_sta_hal_interface.h35 virtual WifiErrorNo Connect(int networkId) = 0;
48 virtual WifiErrorNo RemoveDevice(int networkId) = 0;
50 virtual WifiErrorNo GetNextNetworkId(int &networkId) = 0;
51 virtual WifiErrorNo EnableNetwork(int networkId) = 0;
52 virtual WifiErrorNo DisableNetwork(int networkId) = 0;
53 virtual WifiErrorNo SetDeviceConfig(int networkId, const WifiIdlDeviceConfig &config) = 0;
66 virtual WifiErrorNo SetWpsBssid(int networkId, const std::string &bssid) = 0;
76 MOCK_METHOD1(Connect, WifiErrorNo(int networkId));
89 MOCK_METHOD1(RemoveDevice, WifiErrorNo(int networkId));
91 MOCK_METHOD1(GetNextNetworkId, WifiErrorNo(int &networkId));
[all …]
Dmock_wifi_settings.h31 virtual int RemoveDevice(int networkId) = 0;
34 virtual int GetDeviceConfig(const int &networkId, WifiDeviceConfig &config) = 0;
37 virtual int SetDeviceState(int networkId, int state, bool bSetOther = false) = 0;
49 virtual bool EnableNetwork(int networkId, bool disableOthers) = 0;
50 virtual void SetUserLastSelectedNetworkId(int networkId) = 0;
72 virtual int SetDeviceAfterConnect(int networkId) = 0;
73 … virtual int GetCandidateConfig(const int uid, const int &networkId, WifiDeviceConfig &config) = 0;
86 MOCK_METHOD1(RemoveDevice, int(int networkId));
89 MOCK_METHOD2(GetDeviceConfig, int(const int &networkId, WifiDeviceConfig &config));
92 MOCK_METHOD3(SetDeviceState, int(int networkId, int state, bool bSetOther));
[all …]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/
Ddevice_manager_adapter.cpp281 std::string networkId = std::string(dmInfo.networkId); in GetDeviceInfo() local
282 if (networkId.empty()) { in GetDeviceInfo()
285 auto uuid = GetUuidByNetworkId(networkId); in GetDeviceInfo()
286 auto udid = GetUdidByNetworkId(networkId); in GetDeviceInfo()
290 dvInfo = { uuid, udid, networkId, std::string(dmInfo.deviceName), dmInfo.deviceTypeId }; in GetDeviceInfo()
298 deviceInfos_.Set(dvInfo.networkId, dvInfo); in SaveDeviceInfo()
304 deviceInfos_.Delete(dvInfo.networkId); in SaveDeviceInfo()
329 auto networkId = std::string(info.networkId); in GetLocalDevice() local
330 auto uuid = GetUuidByNetworkId(networkId); in GetLocalDevice()
331 auto udid = GetUdidByNetworkId(networkId); in GetLocalDevice()
[all …]
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
Dlnn_heartbeat_utils.c78 static bool HbHasActiveBrConnection(const char *networkId) in HbHasActiveBrConnection() argument
84 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_BT_MAC, brMac, sizeof(brMac)) != SOFTBUS_OK) { in HbHasActiveBrConnection()
98 static bool HbHasActiveBleConnection(const char *networkId) in HbHasActiveBleConnection() argument
105 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_DEV_UDID, udid, sizeof(udid)) != SOFTBUS_OK) { in HbHasActiveBleConnection()
124 static bool HbHasActiveP2pConnection(const char *networkId) in HbHasActiveP2pConnection() argument
129 … if (LnnGetRemoteStrInfo(networkId, STRING_KEY_P2P_MAC, peerMac, sizeof(peerMac)) != SOFTBUS_OK) { in HbHasActiveP2pConnection()
139 bool LnnHasActiveConnection(const char *networkId, ConnectionAddrType addrType) in LnnHasActiveConnection() argument
143 if (networkId == NULL || addrType >= CONNECTION_ADDR_MAX) { in LnnHasActiveConnection()
153 ret = HbHasActiveBrConnection(networkId) || HbHasActiveBleConnection(networkId) || in LnnHasActiveConnection()
154 HbHasActiveP2pConnection(networkId); in LnnHasActiveConnection()
[all …]
/foundation/communication/dsoftbus/tools/device_info/
Dget_device_info.c27 printf("NetworkId = %s\n", nodeInfo->networkId); in PrintNodeProperty()
31 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodeProperty()
39 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodeProperty()
47 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodeProperty()
55 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodeProperty()
63 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodeProperty()
76 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodePropertyNum()
84 if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, in PrintNodePropertyNum()
/foundation/communication/dsoftbus/core/bus_center/ipc/include/
Dlnn_bus_center_ipc.h31 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId);
32 int32_t MetaNodeIpcServerLeave(const char *pkgName, const char *networkId);
35 int32_t LnnIpcGetNodeKeyInfo(const char *pkgName, const char *networkId, int key, unsigned char *bu…
36 int32_t LnnIpcSetNodeDataChangeFlag(const char *pkgName, const char *networkId, uint16_t dataChange…
48 int32_t LnnIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId, int32_t ret…
49 int32_t MetaNodeIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId, int32_…
50 int32_t LnnIpcNotifyLeaveResult(const char *networkId, int32_t retCode);
51 int32_t MetaNodeIpcNotifyLeaveResult(const char *networkId, int32_t retCode);
/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
Dtrans_link_listener.c37 static int32_t GetNetworkIdByP2pMac(const char *peerMac, char *networkId, int32_t len) in GetNetworkIdByP2pMac() argument
55 char *tmpNetworkId = info[i].networkId; in GetNetworkIdByP2pMac()
60 if (strcpy_s(networkId, len, tmpNetworkId) != EOK) { in GetNetworkIdByP2pMac()
83 char networkId[NETWORK_ID_BUF_LEN] = {0}; in OnP2pLinkDisconnected() local
84 if (GetNetworkIdByP2pMac(peerMac, networkId, sizeof(networkId)) != SOFTBUS_OK) { in OnP2pLinkDisconnected()
89 TransOnLinkDown(networkId, WIFI_P2P); in OnP2pLinkDisconnected()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/
Ddev_manager_test.cpp64 EXPECT_NE(devInfo.networkId, "");
80 EXPECT_NE(devInfo.networkId, "");
81 std::string uuid = devManager.ToUUID(devInfo.networkId);
98 auto networkId = dvMgr.ToNetworkId(dvInfo.uuid); variable
99 EXPECT_NE(networkId, "");
100 EXPECT_EQ(networkId, dvInfo.networkId);

12345678910>>...23