summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Olivier Gaillard <gaillard@google.com> 2018-07-10 02:08:40 -0700
committer android-build-merger <android-build-merger@google.com> 2018-07-10 02:08:40 -0700
commite7325a018922402599c5594ce9518f63c46e710e (patch)
treebc509e477e1f593ae92a57b13b00c87cd6e290b8
parenta800f9ab6bf515f0a43dd2ce949e67c76afa4f85 (diff)
parent0600f8d76f4279d701ee00c02e370cd6b03d2cba (diff)
Merge "Add a getTransactionName method to Binder." am: 079f03f584 am: 06aa142232
am: 0600f8d76f Change-Id: I9c86300654d3ecd9ea745b7997ed35f605452e9d
-rw-r--r--core/java/android/os/Binder.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index f31130f8645d..ab2cf86fab29 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -552,6 +552,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[])}.
*/