Lines Matching defs:summary
69 auto summary = handler.second;
75 (summary.eventType & HANDLE_EVENT_TYPE_POINTER) != HANDLE_EVENT_TYPE_POINTER) {
82 ((deviceTags & summary.deviceTags) == summary.deviceTags) &&
83 !EventInterceptorHandler::CheckInputDeviceSource(event, summary.deviceTags)) {
87 CHKPV(summary.cb);
88 if (summary.mode == HandlerMode::SYNC) {
89 summary.cb(event);
91 if (OnPostSyncTask(std::bind(summary.cb, event)) != RET_OK) {
92 MMI_HILOGE("Failed to execute the task(%{public}s)", summary.handlerName.c_str());
98 int32_t DelegateInterface::AddHandler(InputHandlerType type, const HandlerSummary &summary)
100 CHKPR(summary.cb, ERROR_NULL_POINTER);
102 if (HasHandler(summary.handlerName)) {
103 MMI_HILOGW("The current handler(%{public}s) already exists", summary.handlerName.c_str());
108 handlers.emplace(type, summary);
110 if (currentType != newType || ((currentTags & summary.deviceTags) != summary.deviceTags)) {
117 newType, summary.priority, allDeviceTags, nullptr);
129 RemoveLocal(type, summary.handlerName, currentTags);