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

Commit 525caa44 authored by Jagadeesh Pakaravoor's avatar Jagadeesh Pakaravoor
Browse files

Add traces in ViewRootImpl handler

Add traces to show what messages are currently being handled inside
ViewRootImpl's handler.

bug: 184951839
Test: presubmit
Change-Id: I00c04250b3ea00fb32473d9fa35390510e8692c5
parent bffbdd18
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -5189,6 +5189,17 @@ public final class ViewRootImpl implements ViewParent,

        @Override
        public void handleMessage(Message msg) {
            if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) {
                Trace.traceBegin(Trace.TRACE_TAG_VIEW, getMessageName(msg));
            }
            try {
                handleMessageImpl(msg);
            } finally {
                Trace.traceEnd(Trace.TRACE_TAG_VIEW);
            }
        }

        private void handleMessageImpl(Message msg) {
            switch (msg.what) {
                case MSG_INVALIDATE:
                    ((View) msg.obj).invalidate();