Merge "Add a getTransactionName method to Binder."
am: 079f03f584
Change-Id: Ie157d490cf074d5b015406cb9739366cc4d46b87
This commit is contained in:
@@ -550,6 +550,20 @@ public class Binder implements IBinder {
|
||||
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
|
||||
* {@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.
|
||||
|
||||
Reference in New Issue
Block a user