Loading core/java/android/os/Binder.java +10 −3 Original line number Original line Diff line number Diff line Loading @@ -1262,8 +1262,15 @@ public class Binder implements IBinder { // Log any exceptions as warnings, don't silently suppress them. // Log any exceptions as warnings, don't silently suppress them. // If the call was {@link IBinder#FLAG_ONEWAY} then these exceptions // If the call was {@link IBinder#FLAG_ONEWAY} then these exceptions // disappear into the ether. // disappear into the ether. final boolean tracingEnabled = Trace.isTagEnabled(Trace.TRACE_TAG_AIDL) && final boolean tagEnabled = Trace.isTagEnabled(Trace.TRACE_TAG_AIDL); (Binder.isStackTrackingEnabled() || Binder.isTracingEnabled(callingUid)); final String transactionTraceName; if (tagEnabled) { transactionTraceName = getTransactionTraceName(code); } else { transactionTraceName = null; } final boolean tracingEnabled = tagEnabled && transactionTraceName != null; try { try { final BinderCallHeavyHitterWatcher heavyHitterWatcher = sHeavyHitterWatcher; final BinderCallHeavyHitterWatcher heavyHitterWatcher = sHeavyHitterWatcher; if (heavyHitterWatcher != null) { if (heavyHitterWatcher != null) { Loading @@ -1271,7 +1278,7 @@ public class Binder implements IBinder { heavyHitterWatcher.onTransaction(callingUid, getClass(), code); heavyHitterWatcher.onTransaction(callingUid, getClass(), code); } } if (tracingEnabled) { if (tracingEnabled) { Trace.traceBegin(Trace.TRACE_TAG_AIDL, getTransactionTraceName(code)); Trace.traceBegin(Trace.TRACE_TAG_AIDL, transactionTraceName); } } if ((flags & FLAG_COLLECT_NOTED_APP_OPS) != 0) { if ((flags & FLAG_COLLECT_NOTED_APP_OPS) != 0) { Loading Loading
core/java/android/os/Binder.java +10 −3 Original line number Original line Diff line number Diff line Loading @@ -1262,8 +1262,15 @@ public class Binder implements IBinder { // Log any exceptions as warnings, don't silently suppress them. // Log any exceptions as warnings, don't silently suppress them. // If the call was {@link IBinder#FLAG_ONEWAY} then these exceptions // If the call was {@link IBinder#FLAG_ONEWAY} then these exceptions // disappear into the ether. // disappear into the ether. final boolean tracingEnabled = Trace.isTagEnabled(Trace.TRACE_TAG_AIDL) && final boolean tagEnabled = Trace.isTagEnabled(Trace.TRACE_TAG_AIDL); (Binder.isStackTrackingEnabled() || Binder.isTracingEnabled(callingUid)); final String transactionTraceName; if (tagEnabled) { transactionTraceName = getTransactionTraceName(code); } else { transactionTraceName = null; } final boolean tracingEnabled = tagEnabled && transactionTraceName != null; try { try { final BinderCallHeavyHitterWatcher heavyHitterWatcher = sHeavyHitterWatcher; final BinderCallHeavyHitterWatcher heavyHitterWatcher = sHeavyHitterWatcher; if (heavyHitterWatcher != null) { if (heavyHitterWatcher != null) { Loading @@ -1271,7 +1278,7 @@ public class Binder implements IBinder { heavyHitterWatcher.onTransaction(callingUid, getClass(), code); heavyHitterWatcher.onTransaction(callingUid, getClass(), code); } } if (tracingEnabled) { if (tracingEnabled) { Trace.traceBegin(Trace.TRACE_TAG_AIDL, getTransactionTraceName(code)); Trace.traceBegin(Trace.TRACE_TAG_AIDL, transactionTraceName); } } if ((flags & FLAG_COLLECT_NOTED_APP_OPS) != 0) { if ((flags & FLAG_COLLECT_NOTED_APP_OPS) != 0) { Loading