Lines Matching refs:networkId

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, packet);}}, in DSoftbusHandler()
55 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
56 this->OnSubscribeMouseLocation(networkId, packet);}}, in DSoftbusHandler()
58 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
59 this->OnUnSubscribeMouseLocation(networkId, packet);}}, in DSoftbusHandler()
61 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
62 this->OnReplySubscribeLocation(networkId, packet);}}, in DSoftbusHandler()
64 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
65 this->OnReplyUnSubscribeLocation(networkId, packet);}}, in DSoftbusHandler()
67 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
68 this->OnRemoteMouseLocation(networkId, packet);}}, in DSoftbusHandler()
70 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
71 this->OnRemoteInputDevice(networkId, packet);}}, in DSoftbusHandler()
73 [this] (const std::string &networkId, NetPacket &packet) { in DSoftbusHandler()
74 this->OnRemoteHotPlug(networkId, packet);}} in DSoftbusHandler()
94 int32_t DSoftbusHandler::OpenSession(const std::string &networkId) in OpenSession() argument
102 return env_->GetDSoftbus().OpenSession(networkId); in OpenSession()
105 void DSoftbusHandler::CloseSession(const std::string &networkId) in CloseSession() argument
108 env_->GetDSoftbus().CloseSession(networkId); in CloseSession()
117 int32_t DSoftbusHandler::StartCooperate(const std::string &networkId, const DSoftbusStartCooperate … in StartCooperate() argument
127 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet); in StartCooperate()
129 OnCommunicationFailure(networkId); in StartCooperate()
134 int32_t DSoftbusHandler::StopCooperate(const std::string &networkId, const DSoftbusStopCooperate &e… in StopCooperate() argument
138 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet); in StopCooperate()
140 OnCommunicationFailure(networkId); in StopCooperate()
145 int32_t DSoftbusHandler::ComeBack(const std::string &networkId, const DSoftbusComeBack &event) in ComeBack() argument
154 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet); in ComeBack()
156 OnCommunicationFailure(networkId); in ComeBack()
161 int32_t DSoftbusHandler::RelayCooperate(const std::string &networkId, const DSoftbusRelayCooperate … in RelayCooperate() argument
170 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet); in RelayCooperate()
172 OnCommunicationFailure(networkId); in RelayCooperate()
177 int32_t DSoftbusHandler::RelayCooperateFinish(const std::string &networkId, const DSoftbusRelayCoop… in RelayCooperateFinish() argument
186 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet); in RelayCooperateFinish()
188 OnCommunicationFailure(networkId); in RelayCooperateFinish()
198 void DSoftbusHandler::OnBind(const std::string &networkId) in OnBind() argument
200 FI_HILOGI("Bind to \'%{public}s\'", Utility::Anonymize(networkId).c_str()); in OnBind()
204 .networkId = networkId in OnBind()
208 void DSoftbusHandler::OnShutdown(const std::string &networkId) in OnShutdown() argument
210 FI_HILOGI("Connection with \'%{public}s\' shutdown", Utility::Anonymize(networkId).c_str()); in OnShutdown()
214 .networkId = networkId in OnShutdown()
218 void DSoftbusHandler::OnConnected(const std::string &networkId) in OnConnected() argument
220 FI_HILOGI("Connection to \'%{public}s\' successfully", Utility::Anonymize(networkId).c_str()); in OnConnected()
224 .networkId = networkId in OnConnected()
228 bool DSoftbusHandler::OnPacket(const std::string &networkId, NetPacket &packet) in OnPacket() argument
234 (it->second)(networkId, packet); in OnPacket()
238 Utility::Anonymize(networkId).c_str()); in OnPacket()
251 void DSoftbusHandler::OnCommunicationFailure(const std::string &networkId) in OnCommunicationFailure() argument
253 env_->GetDSoftbus().CloseSession(networkId); in OnCommunicationFailure()
254 …FI_HILOGI("Notify communication failure with peer(%{public}s)", Utility::Anonymize(networkId).c_st… in OnCommunicationFailure()
258 .networkId = networkId in OnCommunicationFailure()
262 void DSoftbusHandler::OnStartCooperate(const std::string &networkId, NetPacket &packet) in OnStartCooperate() argument
266 .networkId = networkId, in OnStartCooperate()
283 void DSoftbusHandler::OnStopCooperate(const std::string &networkId, NetPacket &packet) in OnStopCooperate() argument
287 .networkId = networkId, in OnStopCooperate()
295 void DSoftbusHandler::OnComeBack(const std::string &networkId, NetPacket &packet) in OnComeBack() argument
299 .networkId = networkId, in OnComeBack()
316 void DSoftbusHandler::OnRelayCooperate(const std::string &networkId, NetPacket &packet) in OnRelayCooperate() argument
320 .networkId = networkId, in OnRelayCooperate()
333 void DSoftbusHandler::OnRelayCooperateFinish(const std::string &networkId, NetPacket &packet) in OnRelayCooperateFinish() argument
337 .networkId = networkId, in OnRelayCooperateFinish()
353 packet >> event.networkId >> event.remoteNetworkId; in OnSubscribeMouseLocation()
367 packet >> event.networkId >> event.remoteNetworkId; in OnUnSubscribeMouseLocation()
381 packet >> event.networkId >> event.remoteNetworkId >> event.result; in OnReplySubscribeLocation()
395 packet >> event.networkId >> event.remoteNetworkId >> event.result; in OnReplyUnSubscribeLocation()
409 packet >> event.networkId >> event.remoteNetworkId >> event.mouseLocation.displayX >> in OnRemoteMouseLocation()
420 void DSoftbusHandler::OnRemoteInputDevice(const std::string& networkId, NetPacket &packet) in OnRemoteInputDevice() argument
426 event.networkId = networkId; in OnRemoteInputDevice()
445 void DSoftbusHandler::OnRemoteHotPlug(const std::string &networkId, NetPacket &packet) in OnRemoteHotPlug() argument