Move drag event to InputDispatcher (1.1/n)
Bug: 141749603
Test: m Bug-11573980932; adb push ...;
adb shell chmod +x /data/Bug-11573980932;
adb shell /data/Bug-11573980932;
Change-Id: Ie757642bd905d87ec2808fd5db2aa4535a609696
diff --git a/hostsidetests/securitybulletin/securityPatch/Bug-115739809/poc.cpp b/hostsidetests/securitybulletin/securityPatch/Bug-115739809/poc.cpp
index 16bafe7..f9d9f63 100755
--- a/hostsidetests/securitybulletin/securityPatch/Bug-115739809/poc.cpp
+++ b/hostsidetests/securitybulletin/securityPatch/Bug-115739809/poc.cpp
@@ -160,6 +160,13 @@
outMsg->body.capture.pointerCaptureEnabled = msg.body.capture.pointerCaptureEnabled;
break;
}
+ case InputMessage::Type::DRAG: {
+ outMsg->body.capture.eventId = msg.body.capture.eventId;
+ outMsg->body.drag.isExiting = msg.body.drag.isExiting;
+ outMsg->body.drag.x = msg.body.drag.x;
+ outMsg->body.drag.y = msg.body.drag.y;
+ break;
+ }
}
}
@@ -223,7 +230,7 @@
InputMessage::Type types[] = {
InputMessage::Type::KEY, InputMessage::Type::MOTION, InputMessage::Type::FINISHED,
- InputMessage::Type::FOCUS, InputMessage::Type::CAPTURE,
+ InputMessage::Type::FOCUS, InputMessage::Type::CAPTURE, InputMessage::Type::DRAG,
};
for (InputMessage::Type type : types) {
bool success = checkMessage(*server, *client, type);