Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c91c644c authored by Arpit Singh's avatar Arpit Singh
Browse files

Update documentation for AInputEvent_toJava

As AInputEvent_toJava makes JNI calls, the caller must ensure there are
no pending JNI exceptions as it may result in undefined behaviour. This
needs to be explicitly documented.
Refer: https://developer.android.com/training/articles/perf-jni#exceptions

Bug: 324375527
Test: atest MotionEventTest KeyEventTest
Change-Id: If9f40ba1ee2cb091514fb3baae28f2ca7520727e
parent add5fdd1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1492,7 +1492,10 @@ const AInputEvent* AMotionEvent_fromJava(JNIEnv* env, jobject motionEvent) __INT

/**
 * Creates a java android.view.InputEvent object that is a copy of the specified native
 * {@link AInputEvent}. Returns null on error
 * {@link AInputEvent}.
 *
 * Specified {@link AInputEvent} is require to be a valid {@link MotionEvent} or {@link KeyEvent}
 * object.
 *
 *  Available since API level 35.
 */