Lines Matching refs:notice
169 DSoftbusComeBack notice {
174 context.OnStartCooperate(notice.extra);
175 if (context.dsoftbus_.ComeBack(context.Peer(), notice) != RET_OK) {
176 notice.success = false;
177 notice.errCode = static_cast<int32_t>(CoordinationErrCode::SEND_PACKET_FAILED);
179 context.eventMgr_.StartCooperateFinish(notice);
206 DSoftbusStopCooperateFinished notice {
209 context.eventMgr_.StopCooperateFinish(notice);
217 DSoftbusStartCooperate notice = std::get<DSoftbusStartCooperate>(event.event);
219 if (context.IsPeer(notice.networkId) || context.IsLocal(notice.networkId)) {
222 context.OnRemoteStartCooperate(notice.extra);
223 context.eventMgr_.RemoteStart(notice);
228 context.RemoteStartSuccess(notice);
230 context.eventMgr_.RemoteStartFinish(notice);
237 DSoftbusStopCooperate notice = std::get<DSoftbusStopCooperate>(event.event);
239 if (!context.IsPeer(notice.networkId)) {
242 FI_HILOGI("[remote stop] Notification from \'%{public}s\'", Utility::Anonymize(notice.networkId).c_str());
243 context.eventMgr_.RemoteStop(notice);
245 context.eventMgr_.RemoteStopFinish(notice);
261 InputPointerEvent notice = std::get<InputPointerEvent>(event.event);
263 if ((notice.sourceType != MMI::PointerEvent::SOURCE_TYPE_MOUSE) ||
264 (filterPointerActions_.find(notice.pointerAction) != filterPointerActions_.end()) ||
265 !InputEventBuilder::IsLocalEvent(notice)) {
269 context.OnPointerEvent(notice);
275 DDMBoardOfflineEvent notice = std::get<DDMBoardOfflineEvent>(event.event);
277 if (!context.IsPeer(notice.networkId)) {
280 FI_HILOGI("[board offline] Peer(\'%{public}s\') is offline", Utility::Anonymize(notice.networkId).c_str());
286 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event);
288 if (!context.IsPeer(notice.networkId) || notice.normal) {
291 FI_HILOGI("[switch off] Peer(\'%{public}s\') switch off", Utility::Anonymize(notice.networkId).c_str());
297 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event);
299 if (!context.IsPeer(notice.networkId)) {
303 Utility::Anonymize(notice.networkId).c_str());
305 context.eventMgr_.OnSoftbusSessionClosed(notice);
311 DSoftbusSyncInputDevice notice = std::get<DSoftbusSyncInputDevice>(event.event);
312 if (!context.IsPeer(notice.networkId)) {
315 FI_HILOGI("Remote input device from \'%{public}s\'", Utility::Anonymize(notice.networkId).c_str());
316 context.inputDevMgr_.AddVirtualInputDevice(notice.networkId);
321 DSoftbusHotPlugEvent notice = std::get<DSoftbusHotPlugEvent>(event.event);
322 if (!context.IsPeer(notice.networkId)) {
325 FI_HILOGI("Remote hot plug event from \'%{public}s\'", Utility::Anonymize(notice.networkId).c_str());
330 UpdateCooperateFlagEvent notice = std::get<UpdateCooperateFlagEvent>(event.event);
331 uint32_t changed = (notice.mask & (context.CooperateFlag() ^ notice.flag));
332 context.UpdateCooperateFlag(notice);
336 if (notice.flag & COOPERATE_FLAG_FREEZE_CURSOR) {
412 DSoftbusStartCooperate notice = std::get<DSoftbusStartCooperate>(event.event);
414 if (context.IsPeer(notice.networkId) || context.IsLocal(notice.networkId)) {
417 FI_HILOGI("[remote start] Notification from %{public}s", Utility::Anonymize(notice.networkId).c_str());
418 if (parent_.process_.IsPeer(notice.networkId)) {
437 DSoftbusStopCooperate notice = std::get<DSoftbusStopCooperate>(event.event);
439 if (!context.IsPeer(notice.networkId)) {
442 FI_HILOGI("[remote stop] Notification from %{public}s", Utility::Anonymize(notice.networkId).c_str());
461 InputPointerEvent notice = std::get<InputPointerEvent>(event.event);
463 if ((notice.sourceType != MMI::PointerEvent::SOURCE_TYPE_MOUSE) ||
464 !InputEventBuilder::IsLocalEvent(notice)) {
468 context.OnPointerEvent(notice);
475 DDMBoardOfflineEvent notice = std::get<DDMBoardOfflineEvent>(event.event);
477 if (!context.IsPeer(notice.networkId) && !parent_.process_.IsPeer(notice.networkId)) {
480 FI_HILOGI("[relay cooperate] Peer(%{public}s) is offline", Utility::Anonymize(notice.networkId).c_str());
481 if (context.IsPeer(notice.networkId)) {
489 DDPCooperateSwitchChanged notice = std::get<DDPCooperateSwitchChanged>(event.event);
491 if (notice.normal ||
492 (!context.IsPeer(notice.networkId) &&
493 !parent_.process_.IsPeer(notice.networkId))) {
496 FI_HILOGI("[relay cooperate] Peer(\'%{public}s\') switch off", Utility::Anonymize(notice.networkId).c_str());
497 if (context.IsPeer(notice.networkId)) {
505 DSoftbusSessionClosed notice = std::get<DSoftbusSessionClosed>(event.event);
507 if (!context.IsPeer(notice.networkId) && !parent_.process_.IsPeer(notice.networkId)) {
510 FI_HILOGI("[relay cooperate] Disconnected with \'%{public}s\'", Utility::Anonymize(notice.networkId).c_str());
511 if (context.IsPeer(notice.networkId)) {
519 DSoftbusRelayCooperateFinished notice = std::get<DSoftbusRelayCooperateFinished>(event.event);
521 if (!context.IsPeer(notice.networkId)) {
524 FI_HILOGI("[relay cooperate] \'%{public}s\' respond", Utility::Anonymize(notice.networkId).c_str());
526 if (notice.normal) {
540 DSoftbusStartCooperate notice {
545 context.OnStartCooperate(notice.extra);
546 context.dsoftbus_.StartCooperate(parent_.process_.Peer(), notice);
548 context.eventMgr_.StartCooperateFinish(notice);
565 DSoftbusRelayCooperate notice {
568 context.dsoftbus_.RelayCooperate(context.Peer(), notice);
601 DSoftbusStopCooperate notice {};
602 context.dsoftbus_.StopCooperate(context.Peer(), notice);