Home
last modified time | relevance | path

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

12345678910>>...14

/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/componentmanager/
Dcomponent_enable.cpp32 int32_t ComponentEnable::Enable(const std::string &networkId, const std::string &dhId, const Enable… in Enable() argument
35 DHLOGD("networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), dhId.c_str()); in Enable()
37 …DHLOGE("handler is null, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), dhId.c_str… in Enable()
41 auto ret = handler->RegisterDistributedHardware(networkId, dhId, param, shared_from_this()); in Enable()
43 …"RegisterDistributedHardware failed, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Enable()
53 …DHLOGE("enable timeout, networkId = %s dhId = %s", GetAnonyString(networkId).c_str(), dhId.c_str()… in Enable()
59 int32_t ComponentEnable::OnRegisterResult(const std::string &networkId, const std::string &dhId, in… in OnRegisterResult() argument
63 … DHLOGI("enable success, networkId = %s, dhId = %s, data = %s.", GetAnonyString(networkId).c_str(), in OnRegisterResult()
66 …ble failed, networkId = %s, dhId = %s, status = %d, data = %s.", GetAnonyString(networkId).c_str(), in OnRegisterResult()
Dcomponent_disable.cpp32 int32_t ComponentDisable::Disable(const std::string &networkId, const std::string &dhId, in Disable() argument
35 DHLOGD("networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), dhId.c_str()); in Disable()
37 …DHLOGE("handler is null, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), dhId.c_str… in Disable()
41 auto ret = handler->UnregisterDistributedHardware(networkId, dhId, shared_from_this()); in Disable()
43 …nregisterDistributedHardware failed, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), in Disable()
53 …DHLOGE("disable timeout, networkId = %s dhId = %s.", GetAnonyString(networkId).c_str(), dhId.c_str… in Disable()
59 int32_t ComponentDisable::OnUnregisterResult(const std::string &networkId, const std::string &dhId,… in OnUnregisterResult() argument
63 …DHLOGI("disable success, networkId = %s, dhId = %s, data = %s.", GetAnonyString(networkId).c_str(), in OnUnregisterResult()
66 …ble failed, networkId = %s, dhId = %s, status = %d, data = %s.", GetAnonyString(networkId).c_str(), in OnUnregisterResult()
/foundation/deviceprofile/device_profile_core/services/core/src/devicemanager/
Ddevice_manager.cpp68 … HILOGI("networkId = %{public}s", DeviceProfileUtils::AnonymizeDeviceId(info->networkId).c_str()); in OnNodeOnlineAdapter()
70 info->deviceName, info->networkId, info->deviceTypeId); in OnNodeOnlineAdapter()
81 std::string deviceId = info->networkId; in OnNodeOfflineAdapter()
88 std::string deviceId = info->networkId; in OnNodeBasicInfoChangedAdapter()
173 std::string networkId = nodeBasicInfo->networkId; in RecoverDevicesIfNeeded() local
175 DeviceProfileUtils::AnonymizeDeviceId(networkId).c_str()); in RecoverDevicesIfNeeded()
176 AddDeviceIds(networkId); in RecoverDevicesIfNeeded()
179 nodeBasicInfo->deviceName, networkId, nodeBasicInfo->deviceTypeId); in RecoverDevicesIfNeeded()
181 remoteDeviceInfoMap_.emplace(std::move(networkId), deviceInfo); in RecoverDevicesIfNeeded()
192 AddDeviceIds(info->networkId); in AddLocalDeviceIds()
[all …]
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkservice/src/accessmanager/
Daccess_manager.cpp119 auto networkId = std::string(deviceInfo.deviceId); // deviceId of DM actually is networkId in OnDeviceOnline() local
120 auto uuid = GetUUIDBySoftBus(networkId); in OnDeviceOnline()
122 …DistributedHardwareManagerFactory::GetInstance().SendOnLineEvent(networkId, uuid, deviceInfo.devic… in OnDeviceOnline()
123 DHLOGI("online result = %d, networkId = %s, uuid = %s", ret, GetAnonyString(networkId).c_str(), in OnDeviceOnline()
133 auto networkId = std::string(deviceInfo.deviceId); // deviceId of DM actually is networkId in OnDeviceOffline() local
134 auto uuid = GetUUIDBySoftBus(networkId); in OnDeviceOffline()
136 …DistributedHardwareManagerFactory::GetInstance().SendOffLineEvent(networkId, uuid, deviceInfo.devi… in OnDeviceOffline()
137 DHLOGI("offline result = %d, networkId = %s, uuid = %s", ret, GetAnonyString(networkId).c_str(), in OnDeviceOffline()
158 const auto networkId = std::string(deviceInfo.deviceId); in SendTrustedDeviceOnline() local
159 const auto uuid = GetUUIDBySoftBus(networkId); in SendTrustedDeviceOnline()
[all …]
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/
Ddistributed_hardware_manager.cpp84 int32_t DistributedHardwareManager::SendOnLineEvent(const std::string &networkId, const std::string… in SendOnLineEvent() argument
89 if (networkId.empty()) { in SendOnLineEvent()
94 DHLOGE("uuid is empty, networkId = %s", GetAnonyString(networkId).c_str()); in SendOnLineEvent()
98 …DHLOGI("networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str(… in SendOnLineEvent()
105 …auto task = TaskFactory::GetInstance().CreateTask(TaskType::ON_LINE, networkId, uuid, "", nullptr); in SendOnLineEvent()
107 DHContext::GetInstance().AddOnlineDevice(uuid, networkId); in SendOnLineEvent()
113 int32_t DistributedHardwareManager::SendOffLineEvent(const std::string &networkId, const std::strin… in SendOffLineEvent() argument
118 if (networkId.empty()) { in SendOffLineEvent()
125 std::string cacheUUID = DHContext::GetInstance().GetUUIDByNetworkId(networkId); in SendOffLineEvent()
127 DHLOGE("uuid is empty, networkId = %s", GetAnonyString(networkId).c_str()); in SendOffLineEvent()
[all …]
/foundation/communication/dsoftbus/core/bus_center/ipc/standard_system/src/
Dlnn_bus_center_ipc.cpp41 char networkId[NETWORK_ID_BUF_LEN]; member
81 static bool IsRepeatLeaveLNNRequest(const char *pkgName, const char *networkId) in IsRepeatLeaveLNNRequest() argument
88 if (strncmp(networkId, (*iter)->networkId, strlen(networkId)) == 0) { in IsRepeatLeaveLNNRequest()
95 static int32_t AddLeaveLNNInfo(const char *pkgName, const char *networkId) in AddLeaveLNNInfo() argument
103 if (strncpy_s(info->networkId, NETWORK_ID_BUF_LEN, networkId, strlen(networkId)) != EOK) { in AddLeaveLNNInfo()
166 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId) in LnnIpcServerLeave() argument
168 if (pkgName == nullptr || networkId == nullptr) { in LnnIpcServerLeave()
173 if (IsRepeatLeaveLNNRequest(pkgName, networkId)) { in LnnIpcServerLeave()
177 int32_t ret = LnnServerLeave(networkId); in LnnIpcServerLeave()
179 ret = AddLeaveLNNInfo(pkgName, networkId); in LnnIpcServerLeave()
[all …]
/foundation/communication/dsoftbus/core/bus_center/ipc/small_system/src/
Dlnn_bus_center_ipc.c43 char networkId[NETWORK_ID_BUF_LEN]; member
85 static LeaveLnnRequestInfo *FindLeaveLNNRequest(const char *networkId) in FindLeaveLNNRequest() argument
91 if (strncmp(networkId, info->networkId, strlen(networkId)) == 0) { in FindLeaveLNNRequest()
134 static bool IsRepeatLeaveLNNRequest(const char *pkgName, const char *networkId) in IsRepeatLeaveLNNRequest() argument
142 if (strncmp(networkId, info->networkId, strlen(networkId)) == 0) { in IsRepeatLeaveLNNRequest()
149 static int32_t AddLeaveLNNInfo(const char *pkgName, const char *networkId) in AddLeaveLNNInfo() argument
163 if (strncpy_s(info->networkId, NETWORK_ID_BUF_LEN, networkId, strlen(networkId)) != EOK) { in AddLeaveLNNInfo()
241 int32_t LnnIpcServerLeave(const char *pkgName, const char *networkId) in LnnIpcServerLeave() argument
243 if (pkgName == NULL || networkId == NULL) { in LnnIpcServerLeave()
258 if (IsRepeatLeaveLNNRequest(pkgName, networkId)) { in LnnIpcServerLeave()
[all …]
/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
Dsta_service.cpp116 netWorkId = tempDeviceConfig.networkId; in AddDeviceConfig()
127 tempDeviceConfig.networkId = netWorkId; in AddDeviceConfig()
149 ErrCode StaService::RemoveDevice(int networkId) const in RemoveDevice()
153 if (WifiStaHalInterface::GetInstance().RemoveDevice(networkId) != WIFI_IDL_OPT_OK) { in RemoveDevice()
163 if (WifiSettings::GetInstance().GetDeviceConfig(networkId, config) == 0) { in RemoveDevice()
167 WifiSettings::GetInstance().RemoveDevice(networkId); in RemoveDevice()
206 ErrCode StaService::ConnectToNetwork(int networkId) const in ConnectToNetwork()
208 LOGI("Enter StaService::ConnectToNetwork, networkId is %{public}d.\n", networkId); in ConnectToNetwork()
210 if (WifiSettings::GetInstance().GetDeviceConfig(networkId, config) != 0) { in ConnectToNetwork()
216 …pStaStateMachine->SendMessage(WIFI_SVR_CMD_STA_CONNECT_SAVED_NETWORK, networkId, NETWORK_SELECTED_… in ConnectToNetwork()
[all …]
/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
54 char *tmpNetworkId = info[i].networkId; in GetNetworkIdByP2pMac()
59 if (strcpy_s(networkId, len, tmpNetworkId) != EOK) { in GetNetworkIdByP2pMac()
82 char networkId[NETWORK_ID_BUF_LEN] = {0}; in OnP2pLinkDisconnected() local
83 if (GetNetworkIdByP2pMac(peerMac, networkId, sizeof(networkId)) != SOFTBUS_OK) { in OnP2pLinkDisconnected()
88 TransOnLinkDown(networkId, WIFI_P2P); in OnP2pLinkDisconnected()
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/task/
Dtask_factory.cpp32 std::shared_ptr<Task> TaskFactory::CreateTask(TaskType taskType, const std::string &networkId, cons… in CreateTask() argument
36 GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str(), dhId.c_str()); in CreateTask()
40 task = std::make_shared<EnableTask>(networkId, uuid, dhId); in CreateTask()
44 task = std::make_shared<DisableTask>(networkId, uuid, dhId); in CreateTask()
48 task = std::make_shared<OnLineTask>(networkId, uuid, dhId); in CreateTask()
52 task = std::make_shared<OffLineTask>(networkId, uuid, dhId); in CreateTask()
/foundation/communication/wifi/tests/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;
75 MOCK_METHOD1(Connect, WifiErrorNo(int networkId));
88 MOCK_METHOD1(RemoveDevice, WifiErrorNo(int networkId));
90 MOCK_METHOD1(GetNextNetworkId, WifiErrorNo(int &networkId));
91 MOCK_METHOD1(EnableNetwork, WifiErrorNo(int networkId));
[all …]
Dmock_wifi_settings.h29 virtual int RemoveDevice(int networkId) = 0;
32 virtual int GetDeviceConfig(const int &networkId, WifiDeviceConfig &config) = 0;
35 virtual int SetDeviceState(int networkId, int state, bool bSetOther = false) = 0;
47 virtual bool EnableNetwork(int networkId, bool disableOthers) = 0;
48 virtual void SetUserLastSelectedNetworkId(int networkId) = 0;
78 MOCK_METHOD1(RemoveDevice, int(int networkId));
81 MOCK_METHOD2(GetDeviceConfig, int(const int &networkId, WifiDeviceConfig &config));
84 MOCK_METHOD3(SetDeviceState, int(int networkId, int state, bool bSetOther));
96 MOCK_METHOD2(EnableNetwork, bool(int networkId, bool disableOthers));
97 MOCK_METHOD1(SetUserLastSelectedNetworkId, void(int networkId));
/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/idl_client/
Dwifi_sta_hal_interface.cpp50 WifiErrorNo WifiStaHalInterface::Connect(int networkId) in Connect() argument
52 return mIdlClient->ReqConnect(networkId); in Connect()
140 WifiErrorNo WifiStaHalInterface::RemoveDevice(int networkId) in RemoveDevice() argument
142 return mIdlClient->RemoveDevice(networkId); in RemoveDevice()
150 WifiErrorNo WifiStaHalInterface::GetNextNetworkId(int &networkId) in GetNextNetworkId() argument
152 return mIdlClient->GetNextNetworkId(networkId); in GetNextNetworkId()
155 WifiErrorNo WifiStaHalInterface::EnableNetwork(int networkId) in EnableNetwork() argument
157 return mIdlClient->ReqEnableNetwork(networkId); in EnableNetwork()
160 WifiErrorNo WifiStaHalInterface::DisableNetwork(int networkId) in DisableNetwork() argument
162 return mIdlClient->ReqDisableNetwork(networkId); in DisableNetwork()
[all …]
Dwifi_sta_hal_interface.h58 WifiErrorNo Connect(int networkId);
192 WifiErrorNo RemoveDevice(int networkId);
207 WifiErrorNo GetNextNetworkId(int &networkId);
215 WifiErrorNo EnableNetwork(int networkId);
223 WifiErrorNo DisableNetwork(int networkId);
232 WifiErrorNo SetDeviceConfig(int networkId, const WifiIdlDeviceConfig &config);
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
Dlnn_distributed_net_ledger.c35 #define RETURN_IF_GET_NODE_VALID(networkId, buf, info) do { \ argument
36 if ((networkId) == NULL || (buf) == NULL) { \
39 (info) = LnnGetNodeInfoById((networkId), (CATEGORY_NETWORK_ID)); \
237 …if (strncpy_s(basic->networkId, NETWORK_ID_BUF_LEN, info->networkId, strlen(info->networkId)) != E… in ConvertNodeInfoToBasicInfo()
302 if (strcmp(newInfo->networkId, oldInfo->networkId) == 0) { in IsNetworkIdChanged()
363 if (strcmp(info->networkId, id) == 0) { in LnnGetNodeInfoById()
402 static int32_t DlGetDeviceUuid(const char *networkId, void *buf, uint32_t len) in DlGetDeviceUuid() argument
405 RETURN_IF_GET_NODE_VALID(networkId, buf, info); in DlGetDeviceUuid()
413 static int32_t DlGetDeviceUdid(const char *networkId, void *buf, uint32_t len) in DlGetDeviceUdid() argument
417 RETURN_IF_GET_NODE_VALID(networkId, buf, info); in DlGetDeviceUdid()
[all …]
Dlnn_distributed_net_ledger_virtual.c31 int32_t LnnGetRemoteStrInfo(const char *networkId, InfoKey key, char *info, uint32_t len) in LnnGetRemoteStrInfo() argument
33 (void)networkId; in LnnGetRemoteStrInfo()
40 int32_t LnnGetDLNumInfo(const char *networkId, InfoKey key, int32_t *info) in LnnGetDLNumInfo() argument
42 (void)networkId; in LnnGetDLNumInfo()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
Dlnn_sync_info_manager.c51 char networkId[NETWORK_ID_BUF_LEN]; member
74 item->complete((LnnSyncInfoType)item->data, info->networkId, in ClearSyncInfoMsg()
93 static SyncChannelInfo *FindSyncChannelInfoByNetworkId(const char *networkId) in FindSyncChannelInfoByNetworkId() argument
98 if (strcmp(item->networkId, networkId) == 0) { in FindSyncChannelInfoByNetworkId()
117 static SyncChannelInfo *CreateSyncChannelInfo(const char *networkId) in CreateSyncChannelInfo() argument
126 if (strcpy_s(item->networkId, NETWORK_ID_BUF_LEN, networkId) != EOK) { in CreateSyncChannelInfo()
176 msg->complete((LnnSyncInfoType)msg->data, info->networkId, in SendSyncInfoMsg()
225 char networkId[NETWORK_ID_BUF_LEN]; in OnChannelOpened() local
231 …if (LnnConvertDlId(peerUuid, CATEGORY_UUID, CATEGORY_NETWORK_ID, networkId, NETWORK_ID_BUF_LEN) !=… in OnChannelOpened()
239 info = FindSyncChannelInfoByNetworkId(networkId); in OnChannelOpened()
[all …]
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
Dlnn_lane_link.c35 char networkId[NETWORK_ID_BUF_LEN]; member
59 static int32_t AddConnRequestItem(int32_t requestId, const char *networkId, int32_t pid) in AddConnRequestItem() argument
66 if (strcpy_s(item->networkId, sizeof(item->networkId), networkId) != EOK) { in AddConnRequestItem()
187 if (LnnGetRemoteStrInfo(item->networkId, STRING_KEY_P2P_MAC, mac, size) != SOFTBUS_OK) { in GetP2pMacAndPid()
323 static int32_t GetBrConnectionInfo(const char *networkId, AuthConnInfo *connInfo) in GetBrConnectionInfo() argument
332 ret = LnnGetRemoteNumInfo(networkId, NUM_KEY_NET_CAP, &remote); in GetBrConnectionInfo()
341 …if (LnnGetRemoteStrInfo(networkId, STRING_KEY_BT_MAC, connInfo->info.brInfo.brMac, BT_MAC_LEN) != … in GetBrConnectionInfo()
351 static int32_t GetPreferAuthConnInfo(const char *networkId, AuthConnInfo *connInfo) in GetPreferAuthConnInfo() argument
354 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_UUID, uuid, sizeof(uuid)) != SOFTBUS_OK) { in GetPreferAuthConnInfo()
362 return GetBrConnectionInfo(networkId, connInfo); in GetPreferAuthConnInfo()
[all …]
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/test/unittest/common/task/src/
Dmock_task_factory.cpp28 std::shared_ptr<Task> MockTaskFactory::CreateTask(TaskType taskType, const std::string &networkId, in CreateTask() argument
34 task = std::make_shared<MockEnableTask>(networkId, uuid, dhId); in CreateTask()
38 task = std::make_shared<MockDisableTask>(networkId, uuid, dhId); in CreateTask()
42 task = std::make_shared<MockOnLineTask>(networkId, uuid, dhId); in CreateTask()
46 task = std::make_shared<MockOffLineTask>(networkId, uuid, dhId); in CreateTask()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
Dlnn_heartbeat_fsm.c297 int32_t LnnHbProcessDeviceLost(const char *networkId, ConnectionAddrType addrType, uint64_t delayMi… in LnnHbProcessDeviceLost() argument
299 if (networkId == NULL || addrType > CONNECTION_ADDR_MAX || delayMillis < 0) { in LnnHbProcessDeviceLost()
308 if (strcpy_s(tempId, NETWORK_ID_BUF_LEN, networkId) != EOK) { in LnnHbProcessDeviceLost()
520 static bool HbHasActiveBrConnection(const char *networkId) in HbHasActiveBrConnection() argument
526 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_BT_MAC, brMac, sizeof(brMac)) != SOFTBUS_OK) { in HbHasActiveBrConnection()
540 static bool HbHasActiveBleConnection(const char *networkId) in HbHasActiveBleConnection() argument
547 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_DEV_UDID, udid, sizeof(udid)) != SOFTBUS_OK) { in HbHasActiveBleConnection()
566 static bool HbHasActiveP2pConnection(const char *networkId) in HbHasActiveP2pConnection() argument
571 … if (LnnGetRemoteStrInfo(networkId, STRING_KEY_P2P_MAC, peerMac, sizeof(peerMac)) != SOFTBUS_OK) { in HbHasActiveP2pConnection()
581 static bool HbHasActiveConnection(ConnectionAddrType addrType, const char *networkId) in HbHasActiveConnection() argument
[all …]
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/include/componentmanager/
Dcomponent_manager.h42 int32_t Enable(const std::string &networkId, const std::string &uuid, const std::string &dhId);
43 int32_t Disable(const std::string &networkId, const std::string &uuid, const std::string &dhId);
63 …int32_t GetEnableParam(const std::string &networkId, const std::string &uuid, const std::string &d…
65 … std::string GetSinkVersion(const std::string &networkId, const std::string &uuid, DHType dhType);
67 int32_t UpdateVersionCache(const std::string &networkId, const std::string &uuid);
68 sptr<IDistributedHardware> GetRemoteDHMS(const std::string &networkId) const;
/foundation/distributeddatamgr/objectstore/frameworks/jskitsimpl/src/adaptor/
Djs_notifier_impl.cpp55 const std::string &sessionId, const std::string &networkId, const std::string &onlineStatus) in OnChanged() argument
58 …"status changed %{public}s %{public}s %{public}s", sessionId.c_str(), networkId.c_str(), onlineSta… in OnChanged()
61 …"start emit %{public}s %{public}s %{public}s", sessionId.c_str(), networkId.c_str(), onlineStatus.… in OnChanged()
62 watchers_.at(sessionId)->Emit("status", sessionId, networkId, onlineStatus); in OnChanged()
64 …"end emit %{public}s %{public}s %{public}s", sessionId.c_str(), networkId.c_str(), onlineStatus.c_… in OnChanged()
/foundation/communication/wifi/services/wifi_standard/wifi_hal/
Dwifi_hal_sta_interface.h129 WifiErrorNo Connect(int networkId);
248 WifiErrorNo RemoveNetwork(int networkId);
256 WifiErrorNo AddNetwork(int *networkId);
264 WifiErrorNo EnableNetwork(int networkId);
272 WifiErrorNo DisableNetwork(int networkId);
282 WifiErrorNo SetNetwork(int networkId, const HidlSetNetworkConfig *confs, int size);
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/mission/
Ddistributed_data_storage.cpp239 bool DistributedDataStorage::Insert(const string& networkId, int32_t missionId, in Insert() argument
242 if (networkId.empty()) { in Insert()
250 string uuid = DtbschedmgrDeviceInfoStorage::GetInstance().GetUuidByNetworkId(networkId); in Insert()
291 bool DistributedDataStorage::Delete(const string& networkId, int32_t missionId) in Delete() argument
293 if (networkId.empty()) { in Delete()
301 string uuid = DtbschedmgrDeviceInfoStorage::GetInstance().GetUuidByNetworkId(networkId); in Delete()
339 bool DistributedDataStorage::FuzzyDelete(const string& networkId) in FuzzyDelete() argument
341 if (networkId.empty()) { in FuzzyDelete()
347 bool ret = FuzzyDeleteInnerLocked(networkId); in FuzzyDelete()
349 …uzzyDelete networkId = %{public}s failed!", DnetworkAdapter::AnonymizeDeviceId(networkId).c_str()); in FuzzyDelete()
[all …]
/foundation/distributedhardware/distributedhardwarefwk/services/distributedhardwarefwkserviceimpl/src/utils/
Ddh_context.cpp52 void DHContext::AddOnlineDevice(const std::string &uuid, const std::string &networkId) in AddOnlineDevice() argument
55 if (!uuid.empty() && !networkId.empty()) { in AddOnlineDevice()
56 onlineDeviceMap_[uuid] = networkId; in AddOnlineDevice()
93 std::string DHContext::GetUUIDByNetworkId(const std::string &networkId) { in GetUUIDByNetworkId() argument
96 [networkId](const auto &item) {return networkId.compare(item.second) == 0; }); in GetUUIDByNetworkId()
98 DHLOGE("Can not find uuid, networkId: %s", GetAnonyString(networkId).c_str()); in GetUUIDByNetworkId()

12345678910>>...14