diff options
author | Olivier Gaillard <gaillard@google.com> | 2018-07-10 01:50:30 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-10 01:50:30 -0700 |
commit | 06aa142232b118f4e5c4d7b0889c000164bcb4ea (patch) | |
tree | 53bfb34c83cfea5e5d04069e0d907db5c66bb2ac | |
parent | 9fada2364fa5f80d22ff6ec8a193d55b6040cd10 (diff) | |
parent | 079f03f584e24915a296aaa4d8512ca1a7111e09 (diff) |
Merge "Add a getTransactionName method to Binder."
am: 079f03f584
Change-Id: Ie157d490cf074d5b015406cb9739366cc4d46b87
-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 8e8565c3574c..709ad147d997 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -551,6 +551,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[])}. */ @@ -607,7 +621,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. |