From 86df7e4214a208632b1be0882e00b7d0a70ec317 Mon Sep 17 00:00:00 2001 From: Jim Blackler Date: Wed, 1 Sep 2021 16:24:23 +0100 Subject: Give access to the native InputQueue to all native applications. Bug: 116830907 Test: atest android.view.cts.InputQueueTest#testNativeInputQueue Change-Id: Ia7741ac4922afeeca334266caef3331b521f87e4 --- native/android/input.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'native/android/input.cpp') 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(event); iq->finishEvent(e, handled != 0); } + +AInputQueue* AInputQueue_fromJava(jobject inputQueue) { + return android::android_view_InputQueue_getNativePtr(inputQueue); +} -- cgit v1.2.3-59-g8ed1b