diff options
author | 2024-10-04 01:35:09 +0000 | |
---|---|---|
committer | 2024-10-04 01:35:09 +0000 | |
commit | 1a508c50a1bf13a841012eb2b7a9802c765ca9c8 (patch) | |
tree | 9c6967534eeb2de064869e21b1004dea029eb648 | |
parent | a07461581f08f7378d4aea527cf16fb74dc73a98 (diff) | |
parent | 5735b08506ecd30741ac1427228714e76100ca50 (diff) |
Merge "Add notes comment for isBinderAlive API, to warn developers who use this should know the limit of this API." into main am: 2f274768b0 am: 5735b08506
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3281391
Change-Id: I85e5046038a0c1f079a6826af13deff6f7272d03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | core/java/android/os/BinderProxy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/os/BinderProxy.java b/core/java/android/os/BinderProxy.java index 80546cd6770f..3b5a99ed089a 100644 --- a/core/java/android/os/BinderProxy.java +++ b/core/java/android/os/BinderProxy.java @@ -493,6 +493,11 @@ public final class BinderProxy implements IBinder { public native boolean pingBinder(); /** + * Check to see if the process that the binder is in is still alive. + * + * Note, this only reflects the last known death state, if the object + * is linked to death or has made a transactions since the death occurs. + * * @return false if the hosting process is gone */ public native boolean isBinderAlive(); |