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

Commit 52929c49 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "javaObjectForIBinder: warn rets global and local" am: bbcefaed am:...

Merge "javaObjectForIBinder: warn rets global and local" am: bbcefaed am: ee64ad8c am: 7bdf6fe5 am: 31b2bd11

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2068010



Change-Id: Ife7704a26938fa58cc6ff8f2d5df80c219054b67
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7b409c2c 31b2bd11
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -56,6 +56,12 @@ __attribute__((warn_unused_result)) AIBinder* AIBinder_fromJavaBinder(JNIEnv* en
 * If the binder is null, null is returned. If this binder object was originally an IBinder object,
 * the original java object will be returned.
 *
 * WARNING: this function returns global and local references. This can be
 * figured out using GetObjectRefType. Though, when this function is called
 * from within a Java context, the local ref will automatically be cleaned
 * up. If this is called outside of a Java frame,
 * PushObjectFrame/PopObjectFrame can simulate this automatic cleanup.
 *
 * Available since API level 29.
 *
 * \param env Java environment. Must not be null.