Loading services/inputflinger/dispatcher/InputDispatcher.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -1326,6 +1326,9 @@ void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason switch (entry.type) { switch (entry.type) { case EventEntry::Type::KEY: { case EventEntry::Type::KEY: { CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); const KeyEntry& keyEntry = static_cast<const KeyEntry&>(entry); options.displayId = keyEntry.displayId; options.deviceId = keyEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); break; break; } } Loading @@ -1333,10 +1336,14 @@ void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); if (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER) { if (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER) { CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS, reason); CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS, reason); options.displayId = motionEntry.displayId; options.deviceId = motionEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); } else { } else { CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); reason); options.displayId = motionEntry.displayId; options.deviceId = motionEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); } } break; break; Loading Loading
services/inputflinger/dispatcher/InputDispatcher.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -1326,6 +1326,9 @@ void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason switch (entry.type) { switch (entry.type) { case EventEntry::Type::KEY: { case EventEntry::Type::KEY: { CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); const KeyEntry& keyEntry = static_cast<const KeyEntry&>(entry); options.displayId = keyEntry.displayId; options.deviceId = keyEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); break; break; } } Loading @@ -1333,10 +1336,14 @@ void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); if (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER) { if (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER) { CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS, reason); CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS, reason); options.displayId = motionEntry.displayId; options.deviceId = motionEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); } else { } else { CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, CancelationOptions options(CancelationOptions::Mode::CANCEL_NON_POINTER_EVENTS, reason); reason); options.displayId = motionEntry.displayId; options.deviceId = motionEntry.deviceId; synthesizeCancelationEventsForAllConnectionsLocked(options); synthesizeCancelationEventsForAllConnectionsLocked(options); } } break; break; Loading