summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/api/current.txt1
-rw-r--r--core/java/android/os/IBinder.java6
2 files changed, 5 insertions, 2 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 18286ebd7a66..2e0e6e571b87 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -30074,6 +30074,7 @@ package android.os {
public static interface IBinder.DeathRecipient {
method public void binderDied();
+ method public default void binderDied(@NonNull android.os.IBinder);
}
public interface IInterface {
diff --git a/core/java/android/os/IBinder.java b/core/java/android/os/IBinder.java
index 9e47a708162d..90e4b17250d8 100644
--- a/core/java/android/os/IBinder.java
+++ b/core/java/android/os/IBinder.java
@@ -311,9 +311,11 @@ public interface IBinder {
public void binderDied();
/**
- * @hide
+ * Interface for receiving a callback when the process hosting an IBinder
+ * has gone away.
+ * @param who The IBinder that has become invalid
*/
- default void binderDied(IBinder who) {
+ default void binderDied(@NonNull IBinder who) {
binderDied();
}
}