Revert "Fix input infos are inconsistent between WMS and InputFlinger (2/2)"
This reverts commit 2d112c5f625d09bb703b8909289d11f02ee44398.
Reason for revert: Inject event may take too long if no animation.
Change-Id: Ie101f881363cf088a73a8b106fd242c15c7788bf
diff --git a/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp b/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp
index 7c5c9c5..3b18813 100644
--- a/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp
+++ b/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp
@@ -252,7 +252,7 @@
sp<FakeApplicationHandle> application = new FakeApplicationHandle();
sp<FakeWindowHandle> window = new FakeWindowHandle(application, dispatcher, "Fake Window");
- dispatcher->setInputWindows({{ADISPLAY_ID_DEFAULT, {window}}});
+ dispatcher->setInputWindows({window}, ADISPLAY_ID_DEFAULT);
NotifyMotionArgs motionArgs = generateMotionArgs();
@@ -288,7 +288,7 @@
sp<FakeApplicationHandle> application = new FakeApplicationHandle();
sp<FakeWindowHandle> window = new FakeWindowHandle(application, dispatcher, "Fake Window");
- dispatcher->setInputWindows({{ADISPLAY_ID_DEFAULT, {window}}});
+ dispatcher->setInputWindows({window}, ADISPLAY_ID_DEFAULT);
for (auto _ : state) {
MotionEvent event = generateMotionEvent();