Merge "Add a getTransactionName method to Binder." am: 079f03f584

am: 06aa142232

Change-Id: I4695382d0c3e6489428a3178326630c655c3f0d5
This commit is contained in:
Olivier Gaillard
2018-07-10 01:59:32 -07:00
committed by android-build-merger

View File

@@ -550,6 +550,20 @@ public class Binder implements IBinder {
return false; return false;
} }
/**
* 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 * Implemented to call the more convenient version
* {@link #dump(FileDescriptor, PrintWriter, String[])}. * {@link #dump(FileDescriptor, PrintWriter, String[])}.