summaryrefslogtreecommitdiff
path: root/native/android/input.cpp
diff options
context:
space:
mode:
author Jim Blackler <jimblackler@google.com> 2021-09-01 16:24:23 +0100
committer Jim Blackler <jimblackler@google.com> 2021-11-01 13:22:27 +0000
commit86df7e4214a208632b1be0882e00b7d0a70ec317 (patch)
tree0c3f9dc95f01f2c278f0008d0139639810747a95 /native/android/input.cpp
parente461cc6e67edd823e6a51b0487bc69e99bec93cd (diff)
Give access to the native InputQueue to all native applications.
Bug: 116830907 Test: atest android.view.cts.InputQueueTest#testNativeInputQueue Change-Id: Ia7741ac4922afeeca334266caef3331b521f87e4
Diffstat (limited to 'native/android/input.cpp')
-rw-r--r--native/android/input.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/android/input.cpp b/native/android/input.cpp
index 8eeb9555c51c..4de2c23e62b8 100644
--- a/native/android/input.cpp
+++ b/native/android/input.cpp
@@ -329,3 +329,7 @@ void AInputQueue_finishEvent(AInputQueue* queue, AInputEvent* event, int handled
InputEvent* e = static_cast<InputEvent*>(event);
iq->finishEvent(e, handled != 0);
}
+
+AInputQueue* AInputQueue_fromJava(jobject inputQueue) {
+ return android::android_view_InputQueue_getNativePtr(inputQueue);
+}