Loading core/java/android/view/BatchedInputEventReceiver.java +8 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ public class BatchedInputEventReceiver extends InputEventReceiver { private Choreographer mChoreographer; private boolean mBatchingEnabled; private boolean mBatchedInputScheduled; private final String mTag; private final Handler mHandler; private final Runnable mConsumeBatchedInputEvents = new Runnable() { @Override Loading @@ -43,6 +44,7 @@ public class BatchedInputEventReceiver extends InputEventReceiver { super(inputChannel, looper); mChoreographer = choreographer; mBatchingEnabled = true; mTag = inputChannel.getName(); traceBoolVariable("mBatchingEnabled", mBatchingEnabled); traceBoolVariable("mBatchedInputScheduled", mBatchedInputScheduled); mHandler = new Handler(looper); Loading Loading @@ -123,7 +125,12 @@ public class BatchedInputEventReceiver extends InputEventReceiver { private final class BatchedInputRunnable implements Runnable { @Override public void run() { try { Trace.traceBegin(Trace.TRACE_TAG_INPUT, mTag); doConsumeBatchedInput(mChoreographer.getFrameTimeNanos()); } finally { Trace.traceEnd(Trace.TRACE_TAG_INPUT); } } } private final BatchedInputRunnable mBatchedInputRunnable = new BatchedInputRunnable(); Loading core/java/android/view/ViewRootImpl.java +12 −7 Original line number Diff line number Diff line Loading @@ -10173,6 +10173,8 @@ public final class ViewRootImpl implements ViewParent, final class ConsumeBatchedInputRunnable implements Runnable { @Override public void run() { Trace.traceBegin(TRACE_TAG_VIEW, mTag); try { mConsumeBatchedInputScheduled = false; if (doConsumeBatchedInput(mChoreographer.getFrameTimeNanos())) { // If we consumed a batch here, we want to go ahead and schedule the Loading @@ -10181,6 +10183,9 @@ public final class ViewRootImpl implements ViewParent, // things occurring in the process. scheduleConsumeBatchedInput(); } } finally { Trace.traceEnd(TRACE_TAG_VIEW); } } } final ConsumeBatchedInputRunnable mConsumedBatchedInputRunnable = Loading Loading
core/java/android/view/BatchedInputEventReceiver.java +8 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ public class BatchedInputEventReceiver extends InputEventReceiver { private Choreographer mChoreographer; private boolean mBatchingEnabled; private boolean mBatchedInputScheduled; private final String mTag; private final Handler mHandler; private final Runnable mConsumeBatchedInputEvents = new Runnable() { @Override Loading @@ -43,6 +44,7 @@ public class BatchedInputEventReceiver extends InputEventReceiver { super(inputChannel, looper); mChoreographer = choreographer; mBatchingEnabled = true; mTag = inputChannel.getName(); traceBoolVariable("mBatchingEnabled", mBatchingEnabled); traceBoolVariable("mBatchedInputScheduled", mBatchedInputScheduled); mHandler = new Handler(looper); Loading Loading @@ -123,7 +125,12 @@ public class BatchedInputEventReceiver extends InputEventReceiver { private final class BatchedInputRunnable implements Runnable { @Override public void run() { try { Trace.traceBegin(Trace.TRACE_TAG_INPUT, mTag); doConsumeBatchedInput(mChoreographer.getFrameTimeNanos()); } finally { Trace.traceEnd(Trace.TRACE_TAG_INPUT); } } } private final BatchedInputRunnable mBatchedInputRunnable = new BatchedInputRunnable(); Loading
core/java/android/view/ViewRootImpl.java +12 −7 Original line number Diff line number Diff line Loading @@ -10173,6 +10173,8 @@ public final class ViewRootImpl implements ViewParent, final class ConsumeBatchedInputRunnable implements Runnable { @Override public void run() { Trace.traceBegin(TRACE_TAG_VIEW, mTag); try { mConsumeBatchedInputScheduled = false; if (doConsumeBatchedInput(mChoreographer.getFrameTimeNanos())) { // If we consumed a batch here, we want to go ahead and schedule the Loading @@ -10181,6 +10183,9 @@ public final class ViewRootImpl implements ViewParent, // things occurring in the process. scheduleConsumeBatchedInput(); } } finally { Trace.traceEnd(TRACE_TAG_VIEW); } } } final ConsumeBatchedInputRunnable mConsumedBatchedInputRunnable = Loading