Loading core/java/android/view/EventLogTags.logtags +5 −0 Original line number Diff line number Diff line Loading @@ -59,5 +59,10 @@ option java_package android.view # Enqueue Input Event 62002 view_enqueue_input_event (eventType|3),(action|3) # following other view events defined in system/logging/logcat/event.logtags # ViewRoot Draw Events 60004 viewroot_draw_event (window|3),(event|3) # NOTE - the range 1000000-2000000 is reserved for partners and others who # want to define their own log tags without conflicting with the core platform. No newline at end of file core/java/android/view/ViewRootImpl.java +6 −8 Original line number Diff line number Diff line Loading @@ -287,6 +287,7 @@ public final class ViewRootImpl implements ViewParent, private static final boolean DEBUG_TOUCH_NAVIGATION = false || LOCAL_LOGV; private static final boolean DEBUG_BLAST = false || LOCAL_LOGV; private static final int LOGTAG_INPUT_FOCUS = 62001; private static final int LOGTAG_VIEWROOT_DRAW_EVENT = 60004; /** * Set to false if we do not want to use the multi threaded renderer even though Loading Loading @@ -4753,13 +4754,7 @@ public final class ViewRootImpl implements ViewParent, } private void reportDrawFinished(@Nullable Transaction t, int seqId) { if (DEBUG_BLAST) { Log.d(mTag, "reportDrawFinished"); } if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { Trace.instant(Trace.TRACE_TAG_VIEW, "reportDrawFinished " + mTag + " seqId=" + seqId); } logAndTrace("reportDrawFinished seqId=" + seqId); try { mWindowSession.finishDrawing(mWindow, t, seqId); } catch (RemoteException e) { Loading Loading @@ -12198,8 +12193,11 @@ public final class ViewRootImpl implements ViewParent, if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { Trace.instant(Trace.TRACE_TAG_VIEW, mTag + "-" + msg); } if (DEBUG_BLAST) { Log.d(mTag, msg); } EventLog.writeEvent(LOGTAG_VIEWROOT_DRAW_EVENT, mTag, msg); } private void setPreferredFrameRateCategory(int preferredFrameRateCategory) { if (!shouldSetFrameRateCategory()) { Loading Loading
core/java/android/view/EventLogTags.logtags +5 −0 Original line number Diff line number Diff line Loading @@ -59,5 +59,10 @@ option java_package android.view # Enqueue Input Event 62002 view_enqueue_input_event (eventType|3),(action|3) # following other view events defined in system/logging/logcat/event.logtags # ViewRoot Draw Events 60004 viewroot_draw_event (window|3),(event|3) # NOTE - the range 1000000-2000000 is reserved for partners and others who # want to define their own log tags without conflicting with the core platform. No newline at end of file
core/java/android/view/ViewRootImpl.java +6 −8 Original line number Diff line number Diff line Loading @@ -287,6 +287,7 @@ public final class ViewRootImpl implements ViewParent, private static final boolean DEBUG_TOUCH_NAVIGATION = false || LOCAL_LOGV; private static final boolean DEBUG_BLAST = false || LOCAL_LOGV; private static final int LOGTAG_INPUT_FOCUS = 62001; private static final int LOGTAG_VIEWROOT_DRAW_EVENT = 60004; /** * Set to false if we do not want to use the multi threaded renderer even though Loading Loading @@ -4753,13 +4754,7 @@ public final class ViewRootImpl implements ViewParent, } private void reportDrawFinished(@Nullable Transaction t, int seqId) { if (DEBUG_BLAST) { Log.d(mTag, "reportDrawFinished"); } if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { Trace.instant(Trace.TRACE_TAG_VIEW, "reportDrawFinished " + mTag + " seqId=" + seqId); } logAndTrace("reportDrawFinished seqId=" + seqId); try { mWindowSession.finishDrawing(mWindow, t, seqId); } catch (RemoteException e) { Loading Loading @@ -12198,8 +12193,11 @@ public final class ViewRootImpl implements ViewParent, if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) { Trace.instant(Trace.TRACE_TAG_VIEW, mTag + "-" + msg); } if (DEBUG_BLAST) { Log.d(mTag, msg); } EventLog.writeEvent(LOGTAG_VIEWROOT_DRAW_EVENT, mTag, msg); } private void setPreferredFrameRateCategory(int preferredFrameRateCategory) { if (!shouldSetFrameRateCategory()) { Loading