/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | dsoftbus_handler.cpp | 40 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler() 41 this->OnStartCooperate(networkId, packet);}}, in DSoftbusHandler() 43 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler() 44 this->OnStopCooperate(networkId, packet);}}, in DSoftbusHandler() 46 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler() 47 this->OnComeBack(networkId, packet);}}, in DSoftbusHandler() 49 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler() 50 this->OnRelayCooperate(networkId, packet);}}, in DSoftbusHandler() 52 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler() 53 this->OnRelayCooperateFinish(networkId, packe in DSoftbusHandler() 94 OpenSession(const std::string &networkId) OpenSession() argument 105 CloseSession(const std::string &networkId) CloseSession() argument 117 StartCooperate(const std::string &networkId, const DSoftbusStartCooperate &event) StartCooperate() argument 134 StopCooperate(const std::string &networkId, const DSoftbusStopCooperate &event) StopCooperate() argument 145 ComeBack(const std::string &networkId, const DSoftbusComeBack &event) ComeBack() argument 161 RelayCooperate(const std::string &networkId, const DSoftbusRelayCooperate &event) RelayCooperate() argument 177 RelayCooperateFinish(const std::string &networkId, const DSoftbusRelayCooperateFinished &event) RelayCooperateFinish() argument 198 OnBind(const std::string &networkId) OnBind() argument 208 OnShutdown(const std::string &networkId) OnShutdown() argument 218 OnConnected(const std::string &networkId) OnConnected() argument 228 OnPacket(const std::string &networkId, NetPacket &packet) OnPacket() argument 251 OnCommunicationFailure(const std::string &networkId) OnCommunicationFailure() argument 262 OnStartCooperate(const std::string &networkId, NetPacket &packet) OnStartCooperate() argument 283 OnStopCooperate(const std::string &networkId, NetPacket &packet) OnStopCooperate() argument 295 OnComeBack(const std::string &networkId, NetPacket &packet) OnComeBack() argument 316 OnRelayCooperate(const std::string &networkId, NetPacket &packet) OnRelayCooperate() argument 333 OnRelayCooperateFinish(const std::string &networkId, NetPacket &packet) OnRelayCooperateFinish() argument 420 OnRemoteInputDevice(const std::string& networkId, NetPacket &packet) OnRemoteInputDevice() argument 445 OnRemoteHotPlug(const std::string &networkId, NetPacket &packet) OnRemoteHotPlug() argument [all...] |
H A D | input_device_mgr.cpp | 55 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() 85 void InputDeviceMgr::AddVirtualInputDevice(const std::string &networkId) in AddVirtualInputDevice() argument 88 FI_HILOGI("Add virtual device from %{public}s", Utility::Anonymize(networkId).c_str()); in AddVirtualInputDevice() 89 for (const auto &device : remoteDevices_[networkId]) { in AddVirtualInputDevice() 91 AddVirtualInputDevice(networkId, device->GetId()); in AddVirtualInputDevice() 95 void InputDeviceMgr::RemoveVirtualInputDevice(const std::string &networkId) in RemoveVirtualInputDevice() argument 180 RemoveRemoteInputDevice(const std::string &networkId, std::shared_ptr<IDevice> device) RemoveRemoteInputDevice() argument 191 AddRemoteInputDevice(const std::string &networkId, std::shared_ptr<IDevice> device) AddRemoteInputDevice() argument 203 RemoveAllRemoteInputDevice(const std::string &networkId) RemoveAllRemoteInputDevice() argument 229 DumpRemoteInputDevice(const std::string &networkId) DumpRemoteInputDevice() argument 279 AddVirtualInputDevice(const std::string &networkId, int32_t remoteDeviceId) AddVirtualInputDevice() argument 300 RemoveVirtualInputDevice(const std::string &networkId, int32_t remoteDeviceId) RemoveVirtualInputDevice() argument 318 GetRemoteDeviceById(const std::string &networkId, int32_t remoteDeviceId) GetRemoteDeviceById() argument [all...] |
H A D | mouse_location.cpp | 37 if (event.networkId == localNetworkId_) { in AddListener() 42 FI_HILOGI("Add remote mouse location listener, networkId:%{public}s", Utility::Anonymize(event.networkId).c_str()); in AddListener() 44 .networkId = localNetworkId_, in AddListener() 45 .remoteNetworkId = event.networkId, in AddListener() 48 FI_HILOGE("SubscribeMouseLocation failed, networkId:%{public}s", Utility::Anonymize(event.networkId).c_str()); in AddListener() 51 listeners_[event.networkId].insert(event.pid); in AddListener() 59 if (event.networkId == localNetworkId_) { in RemoveListener() 65 .networkId in RemoveListener() 324 ReportMouseLocationToListener(const std::string &networkId, const LocationInfo &locationInfo, int32_t pid) ReportMouseLocationToListener() argument [all...] |
/base/msdp/device_status/intention/cooperate/plugin/include/ |
H A D | dsoftbus_handler.h | 35 void OnBind(const std::string &networkId) override 37 parent_.OnBind(networkId); 40 void OnShutdown(const std::string &networkId) override 42 parent_.OnShutdown(networkId); 45 void OnConnected(const std::string &networkId) override 47 parent_.OnConnected(networkId); 50 bool OnPacket(const std::string &networkId, NetPacket &packet) override 52 return parent_.OnPacket(networkId, packet); 55 bool OnRawData(const std::string &networkId, const void *data, uint32_t dataLen) override 70 int32_t OpenSession(const std::string &networkId); [all...] |
H A D | input_device_mgr.h | 47 void AddVirtualInputDevice(const std::string &networkId); 48 void RemoveVirtualInputDevice(const std::string &networkId); 56 void AddRemoteInputDevice(const std::string &networkId, std::shared_ptr<IDevice> device); 57 void RemoveRemoteInputDevice(const std::string &networkId, std::shared_ptr<IDevice> device); 58 void RemoveAllRemoteInputDevice(const std::string &networkId); 59 void DumpRemoteInputDevice(const std::string &networkId); 62 void AddVirtualInputDevice(const std::string &networkId, int32_t remoteDeviceId); 63 void RemoveVirtualInputDevice(const std::string &networkId, int32_t remoteDeviceId); 65 std::shared_ptr<IDevice> GetRemoteDeviceById(const std::string &networkId, int32_t remoteDeviceId);
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
H A D | soft_bus_device_connection_listener.cpp | 49 std::string networkId = std::string(info.networkId);
in OnDeviceOnline() local 50 std::string uuid = SoftBusManager::GetInstance().GetUniversallyUniqueIdByNodeId(networkId);
in OnDeviceOnline() 51 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(networkId);
in OnDeviceOnline() 54 "networkId: %{public}s, uuid: %{public}s, udid: %{public}s",
in OnDeviceOnline() 55 ConstantCommon::EncryptDevId(networkId).c_str(),
in OnDeviceOnline() 61 networkId, uuid, udid, info.deviceName, std::to_string(info.deviceTypeId));
in OnDeviceOnline() 84 std::string networkId = std::string(info.networkId);
in OnDeviceOffline() local 85 std::string uuid = DeviceInfoManager::GetInstance().ConvertToUniversallyUniqueIdOrFetch(networkId);
in OnDeviceOffline() 121 std::string networkId = std::string(info.networkId); OnDeviceReady() local 127 std::string networkId = std::string(info.networkId); OnDeviceChanged() local [all...] |
H A D | soft_bus_socket_listener.cpp | 46 std::string peerNetworkId(info.networkId); in OnBind() 73 bool SoftBusSocketListener::GetNetworkIdBySocket(const int32_t socket, std::string& networkId) in GetNetworkIdBySocket() argument 83 networkId = iter->second; in GetNetworkIdBySocket() 99 std::string networkId; in OnClientBytes() local 100 if (!GetNetworkIdBySocket(socket, networkId)) { in OnClientBytes() 106 auto channel = RemoteCommandManager::GetInstance().GetExecutorChannel(networkId); in OnClientBytes() 124 std::string networkId; in OnServiceBytes() local 125 if (SoftBusManager::GetInstance().GetNetworkIdBySocket(socket, networkId)) { in OnServiceBytes() 127 auto channel = RemoteCommandManager::GetInstance().GetExecutorChannel(networkId); in OnServiceBytes()
|
H A D | soft_bus_manager.cpp | 101 DistributedHardware::DeviceManager::GetInstance().GetUuidByNetworkId(TOKEN_SYNC_PACKAGE_NAME, device.networkId,
in AddTrustedDeviceInfo() 103 DistributedHardware::DeviceManager::GetInstance().GetUdidByNetworkId(TOKEN_SYNC_PACKAGE_NAME, device.networkId,
in AddTrustedDeviceInfo() 111 DeviceInfoManager::GetInstance().AddDeviceInfo(device.networkId, uuid, udid, device.deviceName,
in AddTrustedDeviceInfo() 330 int32_t SoftBusManager::InitSocketAndListener(const std::string& networkId, ISocketListener& listener)
in InitSocketAndListener() argument 332 std::string clientName = TOKEN_SYNC_SOCKET_NAME + networkId;
in InitSocketAndListener() 345 if (!CheckAndCopyStr(peerNetworkId, SOCKET_NAME_MAX_LEN, networkId)) {
in InitSocketAndListener() 382 std::string networkId = info.deviceId.networkId;
in BindService() local 385 int32_t socketFd = InitSocketAndListener(networkId, listener);
in BindService() 395 clientSocketMap_.insert(std::pair<int32_t, std::string>(socketFd, networkId));
in BindService() 449 GetNetworkIdBySocket(const int32_t socket, std::string& networkId) GetNetworkIdBySocket() argument 460 GetUniversallyUniqueIdByNodeId(const std::string &networkId) GetUniversallyUniqueIdByNodeId() argument 492 GetUniqueDeviceIdByNodeId(const std::string &networkId) GetUniqueDeviceIdByNodeId() argument 531 std::string networkId = std::string(deviceInfo.networkId); FulfillLocalDeviceInfo() local [all...] |
/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/ |
H A D | dsoftbus_adapter.cpp | 43 int32_t DSoftbusAdapter::OpenSession(const std::string &networkId) in OpenSession() argument 45 return DSoftbusAdapterImpl::GetInstance()->OpenSession(networkId); in OpenSession() 48 void DSoftbusAdapter::CloseSession(const std::string &networkId) in CloseSession() argument 50 DSoftbusAdapterImpl::GetInstance()->CloseSession(networkId); in CloseSession() 58 int32_t DSoftbusAdapter::SendPacket(const std::string &networkId, NetPacket &packet) in SendPacket() argument 60 return DSoftbusAdapterImpl::GetInstance()->SendPacket(networkId, packet); in SendPacket() 63 int32_t DSoftbusAdapter::SendParcel(const std::string &networkId, Parcel &parcel) in SendParcel() argument 65 return DSoftbusAdapterImpl::GetInstance()->SendParcel(networkId, parcel); in SendParcel() 73 bool DSoftbusAdapter::HasSessionExisted(const std::string &networkId) in HasSessionExisted() argument 75 return DSoftbusAdapterImpl::GetInstance()->HasSessionExisted(networkId); in HasSessionExisted() [all...] |
H A D | dsoftbus_adapter_impl.cpp | 115 bool DSoftbusAdapterImpl::CheckDeviceOnline(const std::string &networkId) in CheckDeviceOnline() argument 128 if (std::string(deviceInfo.networkId) == networkId) { in CheckDeviceOnline() 135 int32_t DSoftbusAdapterImpl::OpenSession(const std::string &networkId) in OpenSession() argument 142 if (!DSoftbusAdapterImpl::CheckDeviceOnline(networkId)) { in OpenSession() 143 FI_HILOGE("CheckDeviceOnline failed, networkId:%{public}s", Utility::Anonymize(networkId).c_str()); in OpenSession() 146 int32_t ret = OpenSessionLocked(networkId); in OpenSession() 164 void DSoftbusAdapterImpl::CloseSession(const std::string &networkId) in CloseSession() argument 168 if (auto iter = sessions_.find(networkId); ite in CloseSession() 183 FindConnection(const std::string &networkId) FindConnection() argument 190 SendPacket(const std::string &networkId, NetPacket &packet) SendPacket() argument 216 SendParcel(const std::string &networkId, Parcel &parcel) SendParcel() argument 265 HasSessionExisted(const std::string &networkId) HasSessionExisted() argument 291 std::string networkId = info.networkId; OnBind() local 326 std::string networkId = iter->first; OnShutdown() local 352 const std::string networkId = iter->first; OnBytes() local 438 OpenSessionLocked(const std::string &networkId) OpenSessionLocked() argument 483 OnConnectedLocked(const std::string &networkId) OnConnectedLocked() argument 549 HandleSessionData(const std::string &networkId, CircleStreamBuffer &circleBuffer) HandleSessionData() argument 576 HandlePacket(const std::string &networkId, NetPacket &packet) HandlePacket() argument 588 HandleRawData(const std::string &networkId, const void *data, uint32_t dataLen) HandleRawData() argument [all...] |
/base/msdp/device_status/intention/prototype/include/ |
H A D | i_dsoftbus_adapter.h | 33 virtual void OnBind(const std::string &networkId) = 0; 34 virtual void OnShutdown(const std::string &networkId) = 0; 35 virtual void OnConnected(const std::string &networkId) = 0; 36 virtual bool OnPacket(const std::string &networkId, NetPacket &packet) = 0; 37 virtual bool OnRawData(const std::string &networkId, const void *data, uint32_t dataLen) = 0; 51 virtual int32_t OpenSession(const std::string &networkId) = 0; 52 virtual void CloseSession(const std::string &networkId) = 0; 55 virtual int32_t SendPacket(const std::string &networkId, NetPacket &packet) = 0; 56 virtual int32_t SendParcel(const std::string &networkId, Parcel &parcel) = 0; 58 virtual bool HasSessionExisted(const std::string &networkId) [all...] |
/base/useriam/user_auth_framework/services/remote_connect/src/ |
H A D | device_manager_util.cpp | 38 bool DeviceManagerUtil::GetUdidByNetworkId(const std::string &networkId, std::string &udid) in GetUdidByNetworkId() argument 40 int32_t ret = DeviceManager::GetInstance().GetUdidByNetworkId(USER_AUTH_PACKAGE_NAME, networkId, udid); in GetUdidByNetworkId() 47 bool DeviceManagerUtil::GetLocalDeviceNetWorkId(std::string &networkId) in GetLocalDeviceNetWorkId() argument 49 int32_t ret = DeviceManager::GetInstance().GetLocalDeviceNetWorkId(USER_AUTH_PACKAGE_NAME, networkId); in GetLocalDeviceNetWorkId() 51 IF_FALSE_LOGE_AND_RETURN_VAL(!networkId.empty(), false); in GetLocalDeviceNetWorkId() 77 bool DeviceManagerUtil::GetNetworkIdByUdid(const std::string &udid, std::string &networkId) in GetNetworkIdByUdid() argument 83 networkId = ""; in GetNetworkIdByUdid() 87 networkId = std::string(device.networkId); in GetNetworkIdByUdid() 91 if (networkId in GetNetworkIdByUdid() [all...] |
/base/msdp/device_status/test/fuzztest/dsoftbusadapter_fuzzer/ |
H A D | dsoftbusadapter_fuzzer.cpp | 81 void OnBind(const std::string &networkId) {} in OnBind() argument 82 void OnShutdown(const std::string &networkId) {} in OnShutdown() argument 83 void OnConnected(const std::string &networkId) {} in OnConnected() argument 84 bool OnPacket(const std::string &networkId, NetPacket &packet) in OnPacket() argument 88 bool OnRawData(const std::string &networkId, const void *data, uint32_t dataLen) in OnRawData() argument 130 std::string networkId = GetStringFromData(STR_LEN); in CheckDeviceOnlineFuzzTest() local 133 DSoftbusAdapterImpl::GetInstance()->CheckDeviceOnline(networkId); in CheckDeviceOnlineFuzzTest() 134 DSoftbusAdapterImpl::GetInstance()->CloseSession(networkId); in CheckDeviceOnlineFuzzTest() 135 DSoftbusAdapterImpl::GetInstance()->HandleSessionData(networkId, circleBuffer); in CheckDeviceOnlineFuzzTest() 136 DSoftbusAdapterImpl::GetInstance()->OpenSessionLocked(networkId); in CheckDeviceOnlineFuzzTest() 148 std::string networkId = GetStringFromData(STR_LEN); OpenSessionFuzzTest() local 166 std::string networkId = GetStringFromData(STR_LEN); SendPacketFuzzTest() local 183 std::string networkId = GetStringFromData(STR_LEN); InitSocketFuzzTest() local [all...] |
/base/msdp/device_status/test/unittest/frameworks/src/ |
H A D | mouse_location_listener_test.cpp | 94 FI_HILOGD("LocalNetworkId:%{public}s", Utility::Anonymize(dmDeviceInfo.networkId).c_str()); in GetLocalNetworkId() 95 return dmDeviceInfo.networkId; in GetLocalNetworkId() 99 void OnMouseLocationEvent(const std::string &networkId, const Event &event) override; 102 void EventListener::OnMouseLocationEvent(const std::string &networkId, const Event &event) in OnMouseLocationEvent() argument 105 "displayWidth:%{public}d, displayHeight:%{public}d", Utility::Anonymize(networkId).c_str(), in OnMouseLocationEvent() 118 std::string networkId { "Default" }; in HWTEST_F() 120 int32_t ret = InteractionManager::GetInstance()->RegisterEventListener(networkId, listener); in HWTEST_F() 137 std::string networkId { "Default" }; in HWTEST_F() 138 int32_t ret = InteractionManager::GetInstance()->RegisterEventListener(networkId, nullptr); in HWTEST_F() 155 std::string networkId { "Defaul in HWTEST_F() [all...] |
/base/msdp/device_status/intention/adapters/dsoftbus_adapter/include/ |
H A D | dsoftbus_adapter_impl.h | 79 int32_t OpenSession(const std::string &networkId) override; 80 void CloseSession(const std::string &networkId) override; 83 int32_t SendPacket(const std::string &networkId, NetPacket &packet) override; 84 int32_t SendParcel(const std::string &networkId, Parcel &parcel) override; 86 bool HasSessionExisted(const std::string &networkId) override; 99 int32_t OpenSessionLocked(const std::string &networkId); 101 void OnConnectedLocked(const std::string &networkId); 103 int32_t FindConnection(const std::string &networkId); 104 void HandleSessionData(const std::string &networkId, CircleStreamBuffer &circleBuffer); 105 void HandlePacket(const std::string &networkId, NetPacke [all...] |
H A D | dsoftbus_adapter.h | 38 int32_t OpenSession(const std::string &networkId) override; 39 void CloseSession(const std::string &networkId) override; 42 int32_t SendPacket(const std::string &networkId, NetPacket &packet) override; 43 int32_t SendParcel(const std::string &networkId, Parcel &parcel) override; 45 bool HasSessionExisted(const std::string &networkId) override;
|
/base/msdp/device_status/test/unittest/intention/adapters/src/ |
H A D | dsoftbus_adapter_test.cpp | 115 void OnBind(const std::string &networkId) {} in OnBind() argument 116 void OnShutdown(const std::string &networkId) {} in OnShutdown() argument 117 void OnConnected(const std::string &networkId) {} in OnConnected() argument 118 bool OnPacket(const std::string &networkId, NetPacket &packet) in OnPacket() argument 122 bool OnRawData(const std::string &networkId, const void *data, uint32_t dataLen) in OnRawData() argument 136 FI_HILOGD("LocalNetworkId:%{public}s", Utility::Anonymize(dmDeviceInfo.networkId).c_str()); in GetLocalNetworkId() 137 return dmDeviceInfo.networkId; in GetLocalNetworkId() 217 std::string networkId("softbus"); in HWTEST_F() 218 int32_t ret = dSoftbusAdapter.OpenSession(networkId); in HWTEST_F() 234 std::string networkId("softbu in HWTEST_F() 529 std::string networkId = GetLocalNetworkId(); HWTEST_F() local [all...] |
/base/msdp/device_status/intention/cooperate/data/src/ |
H A D | cooperate_params.cpp | 70 GetCooperateStateParam::GetCooperateStateParam(int32_t userData, const std::string &networkId, bool checkPermission) in GetCooperateStateParam() argument 71 : networkId(networkId), userData(userData), checkPermission(checkPermission) in GetCooperateStateParam() 78 parcel.WriteString(networkId) && in Marshalling() 87 parcel.ReadString(networkId) && in Unmarshalling() 92 RegisterEventListenerParam::RegisterEventListenerParam(const std::string &networkId) : networkId(networkId) in RegisterEventListenerParam() argument 97 return parcel.WriteString(networkId); in Marshalling() 102 return parcel.ReadString(networkId); in Unmarshalling() [all...] |
/base/msdp/device_status/intention/adapters/ddm_adapter/src/ |
H A D | ddm_adapter_impl.cpp | 127 bool DDMAdapterImpl::CheckSameAccountToLocal(const std::string &networkId) in CheckSameAccountToLocal() argument 144 .networkId = IDSoftbusAdapter::GetLocalNetworkId(), in CheckSameAccountToLocal() 149 .networkId = networkId, in CheckSameAccountToLocal() 159 void DDMAdapterImpl::OnBoardOnline(const std::string &networkId) in OnBoardOnline() argument 163 FI_HILOGI("Board \'%{public}s\' is online", Utility::Anonymize(networkId).c_str()); in OnBoardOnline() 165 [&networkId](const auto &item) { in OnBoardOnline() 167 observer->OnBoardOnline(networkId); in OnBoardOnline() 172 void DDMAdapterImpl::OnBoardOffline(const std::string &networkId) in OnBoardOffline() argument 176 FI_HILOGI("Board \'%{public}s\' is offline", Utility::Anonymize(networkId) in OnBoardOffline() [all...] |
/base/msdp/device_status/intention/cooperate/client/src/ |
H A D | cooperate_client.cpp | 191 const std::string &networkId, CooperateStateCallback callback, bool isCheckPermission) in GetCooperateState() 196 GetCooperateStateParam param { GenerateRequestID(), networkId, isCheckPermission }; in GetCooperateState() 225 const std::string &networkId, MouseLocationListenerPtr listener) in RegisterEventListener() 230 if (eventListener_.find(networkId) != eventListener_.end() && in RegisterEventListener() 231 eventListener_[networkId].find(listener) != eventListener_[networkId].end()) { in RegisterEventListener() 232 FI_HILOGE("This listener for networkId:%{public}s already exists", Utility::Anonymize(networkId).c_str()); in RegisterEventListener() 235 RegisterEventListenerParam param { networkId }; in RegisterEventListener() 242 eventListener_[networkId] in RegisterEventListener() 190 GetCooperateState(ITunnelClient &tunnel, const std::string &networkId, CooperateStateCallback callback, bool isCheckPermission) GetCooperateState() argument 224 RegisterEventListener(ITunnelClient &tunnel, const std::string &networkId, MouseLocationListenerPtr listener) RegisterEventListener() argument 247 UnregisterEventListener(ITunnelClient &tunnel, const std::string &networkId, MouseLocationListenerPtr listener) UnregisterEventListener() argument 372 std::string networkId; OnCoordinationListener() local 384 OnDevCooperateListener(const std::string &networkId, CoordinationMessage msg) OnDevCooperateListener() argument 397 std::string networkId; OnCoordinationMessage() local 417 OnCooperateMessageEvent(int32_t userData, const std::string &networkId, const CoordinationMsgInfo &msgInfo) OnCooperateMessageEvent() argument 484 std::string networkId; OnMouseLocationListener() local 505 OnDevMouseLocationListener(const std::string &networkId, const Event &event) OnDevMouseLocationListener() argument [all...] |
/base/security/access_token/services/tokensyncmanager/test/coverage/ |
H A D | token_sync_service_coverage_test.cpp | 64 .networkId = "deviceid-1" 132 std::string networkId = info.networkId; in OnDeviceOffline() local 133 std::string uuid = DeviceInfoManager::GetInstance().ConvertToUniversallyUniqueIdOrFetch(networkId); in OnDeviceOffline() 134 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline() 137 "networkId: %{public}s, uuid: %{public}s, udid: %{public}s", in OnDeviceOffline() 138 networkId.c_str(), in OnDeviceOffline() 145 DeviceInfoManager::GetInstance().RemoveRemoteDeviceInfo(networkId, DeviceIdType::NETWORK_ID); in OnDeviceOffline() 173 std::string networkId; in HWTEST_F() local 174 ASSERT_FALSE(SoftBusManager::GetInstance().GetNetworkIdBySocket(OUT_OF_MAP_SOCKET, networkId)); in HWTEST_F() [all...] |
/base/security/device_security_level/test/dslm_unit_test/ |
H A D | device_manager_mock.cpp | 36 DmDeviceInfo info1 {.networkId = {'a', 0}, .extraData = "{}"}; in DeviceManagerMock() 37 DmDeviceInfo info2 {.networkId = {'b', 0}, .extraData = "{}"}; in DeviceManagerMock() 38 DmDeviceInfo info3 {.networkId = {'c', 0}}; in DeviceManagerMock() 39 DmDeviceInfo info4 {.networkId = {'d', 0}}; in DeviceManagerMock() 48 DmDeviceInfo info1 {.networkId = {'a', 0}}; in DeviceManagerMock()
|
/base/security/access_token/services/tokensyncmanager/src/device/ |
H A D | device_info_repository.cpp | 87 std::string deviceInfoKey = deviceId.networkId + deviceId.universallyUniqueId + deviceId.uniqueDeviceId;
in FindDeviceInfoByDeviceIdLocked() 95 bool DeviceInfoRepository::FindDeviceIdByNetworkIdLocked(const std::string &networkId, DeviceId &deviceId) const
in FindDeviceIdByNetworkIdLocked() argument 97 if (deviceIdMapByNetworkId_.count(networkId) > 0) {
in FindDeviceIdByNetworkIdLocked() 98 deviceId = deviceIdMapByNetworkId_.at(networkId);
in FindDeviceIdByNetworkIdLocked() 143 deviceId.networkId, deviceId.universallyUniqueId, deviceId.uniqueDeviceId, deviceName, deviceType);
in SaveDeviceInfo() 146 void DeviceInfoRepository::SaveDeviceInfo(const std::string &networkId, const std::string &universallyUniqueId,
in SaveDeviceInfo() argument 151 DeleteDeviceInfo(networkId, DeviceIdType::NETWORK_ID);
in SaveDeviceInfo() 156 deviceId.networkId = networkId;
in SaveDeviceInfo() 165 const std::string deviceInfoKey = networkId in SaveDeviceInfo() [all...] |
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/include/ |
H A D | js_event_target.h | 46 static void EmitJsPrepare(sptr<JsUtil::CallbackInfo> cb, const std::string &networkId,
50 static void EmitJsDeactivate(sptr<JsUtil::CallbackInfo> cb, const std::string &networkId,
55 void AddListener(napi_env env, const std::string &type, const std::string &networkId, napi_value handle);
56 void RemoveListener(napi_env env, const std::string &type, const std::string &networkId, napi_value handle);
60 void OnCoordinationMessage(const std::string &networkId, CoordinationMessage msg) override;
61 void OnMouseLocationEvent(const std::string &networkId, const Event &event) override;
74 bool IsHandleExist(napi_env env, const std::string &networkId, napi_value handle);
79 std::string networkId;
member
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
H A D | js_coordination_manager.cpp | 35 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) {
in Prepare() 36 this->EmitJsPrepare(cb, networkId, msgInfo);
in Prepare() 52 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) {
in Unprepare() 53 this->EmitJsPrepare(cb, networkId, msgInfo);
in Unprepare() 89 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) {
in Deactivate() 90 this->EmitJsDeactivate(cb, networkId, msgInfo);
in Deactivate() 101 const std::string &networkId, bool isCompatible, napi_value handle)
in GetCrossingSwitchState() 110 int32_t errCode = INTERACTION_MGR->GetCoordinationState(networkId, callback, isCompatible);
in GetCrossingSwitchState() 130 void JsCoordinationManager::RegisterListener(napi_env env, const std::string &type, const std::string &networkId,
in RegisterListener() argument 134 AddListener(env, type, networkId, handl in RegisterListener() 100 GetCrossingSwitchState(napi_env env, const std::string &networkId, bool isCompatible, napi_value handle) GetCrossingSwitchState() argument 137 UnregisterListener(napi_env env, const std::string &type, const std::string &networkId, napi_value handle) UnregisterListener() argument [all...] |