IInputFlinger: setInputWindows is one-way
Since we call from SurfaceFlinger to the system-server we
want to avoid blocking.
Bug: 120225258
Test: Existing tests pass.
Change-Id: I7ef47bff5bb583798efbcb3753158d9520de52b0
(cherry picked from commit 2ccbd6eed75bed7b5ae4db478ffe4e36d067cc88)
diff --git a/libs/input/IInputFlinger.cpp b/libs/input/IInputFlinger.cpp
index 477e54e..139570a 100644
--- a/libs/input/IInputFlinger.cpp
+++ b/libs/input/IInputFlinger.cpp
@@ -38,7 +38,8 @@
for (const auto& info : inputInfo) {
info.write(data);
}
- remote()->transact(BnInputFlinger::SET_INPUT_WINDOWS_TRANSACTION, data, &reply);
+ remote()->transact(BnInputFlinger::SET_INPUT_WINDOWS_TRANSACTION, data, &reply,
+ IBinder::FLAG_ONEWAY);
}
virtual void registerInputChannel(const sp<InputChannel>& channel) {