• Home
  • Raw
  • Download

Lines Matching full:networkid

178 …ITunnelClient &tunnel, const std::string &networkId, CooperateStateCallback callback, bool isCheck…  in GetCooperateState()  argument
183 GetCooperateStateParam param { GenerateRequestID(), networkId, isCheckPermission }; in GetCooperateState()
212 ITunnelClient &tunnel, const std::string &networkId, MouseLocationListenerPtr listener) in RegisterEventListener() argument
217 if (eventListener_.find(networkId) != eventListener_.end() && in RegisterEventListener()
218 eventListener_[networkId].find(listener) != eventListener_[networkId].end()) { in RegisterEventListener()
219 …FI_HILOGE("This listener for networkId:%{public}s already exists", Utility::Anonymize(networkId).c… in RegisterEventListener()
222 RegisterEventListenerParam param { networkId }; in RegisterEventListener()
229 eventListener_[networkId].insert(listener); in RegisterEventListener()
230 …FI_HILOGI("Add listener for networkId:%{public}s successfully", Utility::Anonymize(networkId).c_st… in RegisterEventListener()
235 ITunnelClient &tunnel, const std::string &networkId, MouseLocationListenerPtr listener) in UnregisterEventListener() argument
239 if (eventListener_.find(networkId) == eventListener_.end()) { in UnregisterEventListener()
240 …FI_HILOGE("No listener for networkId:%{public}s is registered", Utility::Anonymize(networkId).c_st… in UnregisterEventListener()
243 if (eventListener_.find(networkId) != eventListener_.end() && listener != nullptr && in UnregisterEventListener()
244 eventListener_[networkId].find(listener) == eventListener_[networkId].end()) { in UnregisterEventListener()
245 …FI_HILOGE("Current listener for networkId:%{public}s is not registered", Utility::Anonymize(networ… in UnregisterEventListener()
249 eventListener_.erase(networkId); in UnregisterEventListener()
250 … FI_HILOGI("Remove all listener for networkId:%{public}s", Utility::Anonymize(networkId).c_str()); in UnregisterEventListener()
252 eventListener_[networkId].erase(listener); in UnregisterEventListener()
253 … FI_HILOGI("Remove listener for networkId:%{public}s", Utility::Anonymize(networkId).c_str()); in UnregisterEventListener()
254 if (eventListener_[networkId].empty()) { in UnregisterEventListener()
255 eventListener_.erase(networkId); in UnregisterEventListener()
257 …"No listener for networkId:%{public}s, clean current networkId", Utility::Anonymize(networkId).c_s… in UnregisterEventListener()
260 if (eventListener_.find(networkId) != eventListener_.end()) { in UnregisterEventListener()
262 …"UnregisterEventListener for networkId:%{public}s successfully", Utility::Anonymize(networkId).c_s… in UnregisterEventListener()
265 UnregisterEventListenerParam param { networkId }; in UnregisterEventListener()
273 …FI_HILOGD("Unregister all Listener for networkId:%{public}s successfully", Utility::Anonymize(netw… in UnregisterEventListener()
346 std::string networkId; in OnCoordinationListener() local
348 pkt >> userData >> networkId >> nType; in OnCoordinationListener()
353 … FI_HILOGI("NetworkId:%{public}s, nType:%{public}d", Utility::Anonymize(networkId).c_str(), nType); in OnCoordinationListener()
354 OnDevCooperateListener(networkId, CoordinationMessage(nType)); in OnCoordinationListener()
358 void CooperateClient::OnDevCooperateListener(const std::string &networkId, CoordinationMessage msg) in OnDevCooperateListener() argument
363 item->OnCoordinationMessage(networkId, msg); in OnDevCooperateListener()
371 std::string networkId; in OnCoordinationMessage() local
374 pkt >> userData >> networkId >> nType >> errCode; in OnCoordinationMessage()
382 … FI_HILOGI("NetworkId:%{public}s, nType:%{public}d", Utility::Anonymize(networkId).c_str(), nType); in OnCoordinationMessage()
384 OnCooperateMessageEvent(userData, networkId, msgInfo); in OnCoordinationMessage()
389 int32_t userData, const std::string &networkId, const CoordinationMsgInfo &msgInfo) in OnCooperateMessageEvent() argument
400 callback(networkId, msgInfo); in OnCooperateMessageEvent()
455 std::string networkId; in OnMouseLocationListener() local
457 … pkt >> networkId >> event.displayX >> event.displayY >> event.displayWidth >> event.displayHeight; in OnMouseLocationListener()
462 OnDevMouseLocationListener(networkId, event); in OnMouseLocationListener()
475 void CooperateClient::OnDevMouseLocationListener(const std::string &networkId, const Event &event) in OnDevMouseLocationListener() argument
479 if (eventListener_.find(networkId) == eventListener_.end()) { in OnDevMouseLocationListener()
480 …FI_HILOGI("No listener for networkId:%{public}s is registered", Utility::Anonymize(networkId).c_st… in OnDevMouseLocationListener()
483 for (const auto &listener : eventListener_[networkId]) { in OnDevMouseLocationListener()
485 listener->OnMouseLocationEvent(networkId, event); in OnDevMouseLocationListener()
486 FI_HILOGD("Trigger listener for networkId:%{public}s," in OnDevMouseLocationListener()
488 … Utility::Anonymize(networkId).c_str(), event.displayX, event.displayY, event.displayWidth, in OnDevMouseLocationListener()