Lines Matching refs:notice

103 void MouseLocation::OnSoftbusSessionClosed(const DSoftbusSessionClosed &notice)
107 FI_HILOGI("Session to %{public}s closed", Utility::Anonymize(notice.networkId).c_str());
108 if (remoteSubscribers_.find(notice.networkId) != remoteSubscribers_.end()) {
109 remoteSubscribers_.erase(notice.networkId);
110 FI_HILOGI("Remove remote subscribers from %{public}s", Utility::Anonymize(notice.networkId).c_str());
112 if (listeners_.find(notice.networkId) != listeners_.end()) {
113 listeners_.erase(notice.networkId);
114 FI_HILOGI("Remove listeners listen to %{public}s", Utility::Anonymize(notice.networkId).c_str());
118 void MouseLocation::OnSubscribeMouseLocation(const DSoftbusSubscribeMouseLocation &notice)
123 remoteSubscribers_.insert(notice.networkId);
124 FI_HILOGI("Add subscriber for networkId:%{public}s successfully", Utility::Anonymize(notice.networkId).c_str());
126 .networkId = notice.remoteNetworkId,
127 .remoteNetworkId = notice.networkId,
135 void MouseLocation::OnUnSubscribeMouseLocation(const DSoftbusUnSubscribeMouseLocation &notice)
140 if (remoteSubscribers_.find(notice.networkId) == remoteSubscribers_.end()) {
142 Utility::Anonymize(notice.networkId).c_str());
145 remoteSubscribers_.erase(notice.networkId);
147 .networkId = notice.remoteNetworkId,
148 .remoteNetworkId = notice.networkId,
156 void MouseLocation::OnReplySubscribeMouseLocation(const DSoftbusReplySubscribeMouseLocation &notice)
160 if (notice.result) {
162 Utility::Anonymize(notice.networkId).c_str(), Utility::Anonymize(notice.remoteNetworkId).c_str());
165 Utility::Anonymize(notice.networkId).c_str(), Utility::Anonymize(notice.remoteNetworkId).c_str());
169 void MouseLocation::OnReplyUnSubscribeMouseLocation(const DSoftbusReplyUnSubscribeMouseLocation &notice)
173 if (notice.result) {
175 Utility::Anonymize(notice.networkId).c_str(), Utility::Anonymize(notice.remoteNetworkId).c_str());
178 Utility::Anonymize(notice.networkId).c_str(), Utility::Anonymize(notice.remoteNetworkId).c_str());
182 void MouseLocation::OnRemoteMouseLocation(const DSoftbusSyncMouseLocation &notice)
186 if (listeners_.find(notice.networkId) == listeners_.end()) {
188 Utility::Anonymize(notice.networkId).c_str());
192 .displayX = notice.mouseLocation.displayX,
193 .displayY = notice.mouseLocation.displayY,
194 .displayWidth = notice.mouseLocation.displayWidth,
195 .displayHeight = notice.mouseLocation.displayHeight
197 for (auto pid : listeners_[notice.networkId]) {
198 ReportMouseLocationToListener(notice.networkId, locationInfo, pid);