diff options
| author | 2018-07-10 07:23:14 +0000 | |
|---|---|---|
| committer | 2018-07-10 07:23:14 +0000 | |
| commit | 079f03f584e24915a296aaa4d8512ca1a7111e09 (patch) | |
| tree | fb907dd942592000c0513e50c93e6d2322873490 | |
| parent | 0faecf7b89baf5acce025601e6dd58e773ea12fd (diff) | |
| parent | d3d065dc426633e7d235cf160db4f25309a79631 (diff) | |
Merge "Add a getTransactionName method to Binder."
| -rw-r--r-- | core/java/android/os/Binder.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index 5652d6dec8a5..a81d16a6c562 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -536,6 +536,20 @@ public class Binder implements IBinder { } /** + * Resolves a transaction code to a human readable name. + * + * <p>Default implementation is a stub that returns null. + * <p>AIDL generated code will return the original method name. + * + * @param transactionCode The code to resolve. + * @return A human readable name. + * @hide + */ + public @Nullable String getTransactionName(int transactionCode) { + return null; + } + + /** * Implemented to call the more convenient version * {@link #dump(FileDescriptor, PrintWriter, String[])}. */ @@ -592,7 +606,7 @@ public class Binder implements IBinder { /** * Print the object's state into the given stream. - * + * * @param fd The raw file descriptor that the dump is being sent to. * @param fout The file to which you should dump your state. This will be * closed for you after you return. |