From f4d7318b17fbee00ddf290d17659525c418fe1d2 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Tue, 2 Mar 2021 21:10:28 +0000 Subject: Send input timeline from app to InputDispatcher InputDispatcher will receive the timing information from the app. This timing information will contain: 1) inputEventId : the input event id that corresponds to the current set of times 2) gpuCompletedTime : the time at which gpu has finished processing the frame and the buffer is getting sent from the app to surfaceflinger 3) presentTime : time time at which the frame was displayed Bug: 169866723 Test: tested by printing the data that was passed Test: atest InputEventSenderAndReceiverTest Change-Id: I9bf38473d07c7bd4df3de6bc77b0173faa257f06 --- core/java/android/view/ViewRootImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/view/ViewRootImpl.java') diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index dbccf10822cd..982918d52f4b 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -8601,7 +8601,7 @@ public final class ViewRootImpl implements ViewParent, return; } final long gpuCompletedTime = data[FrameMetrics.Index.GPU_COMPLETED]; - mReceiver.reportLatencyInfo(inputEventId, gpuCompletedTime, presentTime); + mReceiver.reportTimeline(inputEventId, gpuCompletedTime, presentTime); } } HardwareRendererObserver mHardwareRendererObserver; -- cgit v1.2.3