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

Commit 31b2bd11 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

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



Change-Id: I66f10cbdf19b89f498d5892e0b890e358c4cd438
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7c5a3ba6 7bdf6fe5
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.