Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47050bb8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Unify binder txn trace name"

parents 72b0ad54 762a8b30
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -911,11 +911,15 @@ public class Binder implements IBinder {
            final String transactionName = getTransactionName(transactionCode);
            final StringBuffer buf = new StringBuffer();

            // Keep trace name consistent with cpp trace name in:
            // system/tools/aidl/generate_cpp.cpp
            buf.append("AIDL::java::");
            if (transactionName != null) {
                buf.append(mSimpleDescriptor).append(":").append(transactionName);
                buf.append(mSimpleDescriptor).append("::").append(transactionName);
            } else {
                buf.append(mSimpleDescriptor).append("#").append(transactionCode);
                buf.append(mSimpleDescriptor).append("::#").append(transactionCode);
            }
            buf.append("::server");

            transactionTraceName = buf.toString();
            mTransactionTraceNames.setRelease(index, transactionTraceName);