Home
last modified time | relevance | path

Searched refs:presentTime (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/native/services/surfaceflinger/Scheduler/src/
DPresentLatencyTracker.cpp30 const auto presentTime = in trackPendingFrame() local
33 if (presentTime == TimePoint::fromNs(Fence::SIGNAL_TIME_PENDING)) { in trackPendingFrame()
37 if (presentTime == TimePoint::fromNs(Fence::SIGNAL_TIME_INVALID)) { in trackPendingFrame()
40 presentLatency = presentTime - pendingFrame.compositeTime; in trackPendingFrame()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp52 std::chrono::nanoseconds presentTime(predictions.presentTime - baseTime); in dumpTable() local
56 std::chrono::duration<double, std::milli>(presentTime).count()); in dumpTable()
76 if (actuals.presentTime == 0) { in dumpTable()
79 std::chrono::nanoseconds presentTime(std::max<nsecs_t>(0, actuals.presentTime - baseTime)); in dumpTable() local
81 std::chrono::duration<double, std::milli>(presentTime).count()); in dumpTable()
314 if (actuals.presentTime != 0) { in getMinTime()
315 minTime = std::min(minTime, actuals.presentTime); in getMinTime()
414 if (mActuals.presentTime == 0) { in getJankType()
423 if (mActuals.presentTime == 0) { in getJankSeverityType()
521 nsecs_t presentDelta = mActuals.presentTime - mPredictions.presentTime; in dump()
[all …]
DFrameTimeline.h88 const nsecs_t presentTime = 0)
89 : startTime(startTime), endTime(endTime), presentTime(presentTime) {} in startTime()
93 nsecs_t presentTime; member
97 presentTime == other.presentTime;
204 void onPresent(nsecs_t presentTime, int32_t displayFrameJankType, Fps refreshRate,
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTimelineTest.cpp158 a.presentTime == b.presentTime; in compareTimelineItems()
296 EXPECT_EQ(droppedSurfaceFrame.getActuals().presentTime, 0); in TEST_F()
328 EXPECT_EQ(displayFrame->getActuals().presentTime, 0); in TEST_F()
329 EXPECT_EQ(presentedSurfaceFrame1.getActuals().presentTime, 0); in TEST_F()
330 EXPECT_EQ(presentedSurfaceFrame2.getActuals().presentTime, 0); in TEST_F()
335 EXPECT_EQ(displayFrame->getActuals().presentTime, 42); in TEST_F()
336 EXPECT_EQ(presentedSurfaceFrame1.getActuals().presentTime, 42); in TEST_F()
337 EXPECT_EQ(presentedSurfaceFrame2.getActuals().presentTime, 42); in TEST_F()
367 EXPECT_EQ(surfaceFrame1->getActuals().presentTime, 30); in TEST_F()
383 EXPECT_EQ(displayFrame->getActuals().presentTime, 0); in TEST_F()
[all …]
DLayerInfoTest.cpp81 frameTimes.push_back(FrameTimeData{.presentTime = kPeriod * i, in TEST_F()
97 frameTimes.push_back(FrameTimeData{.presentTime = 0, in TEST_F()
113 frameTimesWithoutConfigChange.push_back(FrameTimeData{.presentTime = period * i, in TEST_F()
155 frameTimes.push_back(FrameTimeData{.presentTime = kExpectedPeriod * i, in TEST_F()
160 frameTimes.push_back(FrameTimeData{.presentTime = kExpectedPeriod * i + kSmallPeriod, in TEST_F()
180 FrameTimeData{.presentTime = time, .queueTime = 0, .pendingModeChange = false}); in TEST_F()
/frameworks/base/tests/Input/src/com/android/test/input/
DSpyInputEventSenderAndReceiver.kt62 data class Timeline(val inputEventId: Int, val gpuCompletedTime: Long, val presentTime: Long) constant in Timeline
71 override fun onTimelineReported(inputEventId: Int, gpuCompletedTime: Long, presentTime: Long) { in onTimelineReported()
72 mTimelines.put(Timeline(inputEventId, gpuCompletedTime, presentTime)) in onTimelineReported()
DInputEventSenderAndReceiverTest.kt102 inputEventId = 1, gpuCompletedTime = 2, presentTime = 3) in testSendAndReceiveTimeline()
103 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveTimeline()
114 inputEventId = 1, gpuCompletedTime = 3, presentTime = 2) in testSendAndReceiveInvalidTimeline()
115 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveInvalidTimeline()
/frameworks/base/core/java/android/view/
DInputEventSender.java126 public void onTimelineReported(int inputEventId, long gpuCompletedTime, long presentTime) { in onTimelineReported() argument
187 int inputEventId, long gpuCompletedTime, long presentTime) { in dispatchTimelineReported() argument
188 onTimelineReported(inputEventId, gpuCompletedTime, presentTime); in dispatchTimelineReported()
DInputEventReceiver.java59 long gpuCompletedTime, long presentTime); in nativeReportTimeline() argument
236 public final void reportTimeline(int inputEventId, long gpuCompletedTime, long presentTime) { in reportTimeline() argument
238 nativeReportTimeline(mReceiverPtr, inputEventId, gpuCompletedTime, presentTime); in reportTimeline()
/frameworks/native/services/inputflinger/dispatcher/
DLatencyAggregator.cpp155 const nsecs_t presentTime = in processStatistics() local
158 const nsecs_t gpuCompleteToPresent = presentTime - gpuCompletedTime; in processStatistics()
159 const nsecs_t endToEnd = presentTime - timeline.eventTime; in processStatistics()
219 const nsecs_t presentTime = in processSlowEvent() local
222 std::chrono::nanoseconds(presentTime - timeline.eventTime); in processSlowEvent()
243 const nsecs_t gpuCompleteToPresent = presentTime - gpuCompletedTime; in processSlowEvent()
/frameworks/native/services/surfaceflinger/
DFrameTracker.cpp40 void FrameTracker::setDesiredPresentTime(nsecs_t presentTime) { in setDesiredPresentTime() argument
42 mFrameRecords[mOffset].desiredPresentTime = presentTime; in setDesiredPresentTime()
57 void FrameTracker::setActualPresentTime(nsecs_t presentTime) { in setActualPresentTime() argument
59 mFrameRecords[mOffset].actualPresentTime = presentTime; in setActualPresentTime()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp429 timeRecord->frameTime.presentTime = timeRecord->presentFence->getSignalTime(); in recordReadyLocked()
463 timeRecords[0].frameTime.frameNumber, timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
503 timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
509 timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
515 timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
521 timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
526 const int32_t presentToPresentMs = msBetween(prevTimeRecord.frameTime.presentTime, in flushAvailableRecordsToStatsLocked()
527 timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
716 void TimeStats::setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime, in setPresentTime() argument
722 ALOGV("[%d]-[%" PRIu64 "]-PresentTime[%" PRId64 "]", layerId, frameNumber, presentTime); in setPresentTime()
[all …]
DTimeStats.h96 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
197 nsecs_t presentTime = 0; member
268 void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp96 status_t reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
185 nsecs_t presentTime) { in reportTimeline() argument
191 graphicsTimeline[GraphicsTimeline::PRESENT_TIME] = presentTime; in reportTimeline()
575 jlong gpuCompletedTime, jlong presentTime) { in nativeReportTimeline() argument
582 status_t status = receiver->reportTimeline(inputEventId, gpuCompletedTime, presentTime); in nativeReportTimeline()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerInfo.cpp71 FrameTimeData frameTime = {.presentTime = lastPresentTime, in setLastPresentTime()
120 if (mFrameTimes[n - i].presentTime == 0 && mFrameTimes[n - i].isSmallDirty) { in isFrequent()
214 [](auto frame) { return frame.presentTime == 0; }); in calculateAverageFrameTime()
230 : [](FrameTimeData data) { return data.presentTime; }; in calculateAverageFrameTime()
DLayerHistory.h70 void record(int32_t id, const LayerProps& props, nsecs_t presentTime, nsecs_t now,
DEventThread.cpp400 const auto [presentTime, deadline] = [&]() -> std::pair<nsecs_t, nsecs_t> { in getLatestVsyncEventData()
406 generateFrameTimeline(vsyncEventData, frameInterval.ns(), now, presentTime, deadline); in getLatestVsyncEventData()
408 mCallback.onExpectedPresentTimePosted(TimePoint::fromNs(presentTime)); in getLatestVsyncEventData()
DLayerHistory.cpp134 void LayerHistory::record(int32_t id, const LayerProps& layerProps, nsecs_t presentTime, in record() argument
145 info->setLastPresentTime(presentTime, now, updateType, mModeChangePending, layerProps); in record()
DScheduler.h226 void recordLayerHistory(int32_t id, const LayerProps& layerProps, nsecs_t presentTime,
282 bool onCompositionPresented(nsecs_t presentTime);
DScheduler.cpp678 void Scheduler::recordLayerHistory(int32_t id, const LayerProps& layerProps, nsecs_t presentTime, in recordLayerHistory() argument
681 mLayerHistory.record(id, layerProps, presentTime, now, updateType); in recordLayerHistory()
1224 bool Scheduler::onCompositionPresented(nsecs_t presentTime) { in onCompositionPresented() argument
1227 if (presentTime < mLastVsyncPeriodChangeTimeline->refreshTimeNanos) { in onCompositionPresented()
DLayerInfo.h244 nsecs_t presentTime; // desiredPresentTime, if provided member
/frameworks/native/libs/input/
DInputConsumerNoResampling.cpp161 nsecs_t presentTime) { in createTimelineMessage() argument
167 msg.body.timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME] = presentTime; in createTimelineMessage()
285 nsecs_t presentTime) { in reportTimeline() argument
287 mOutboundQueue.push(createTimelineMessage(inputEventId, gpuCompletedTime, presentTime)); in reportTimeline()
/frameworks/native/include/input/
DInputConsumerNoResampling.h75 void reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumerNoResampling_test.cpp328 nsecs_t presentTime; member
417 args->presentTime); in handleMessage()
682 const nsecs_t presentTime = 40; in TEST_F() local
684 mReportTimelineArgs.emplace(inputEventId, gpuCompletedTime, presentTime); in TEST_F()
693 ASSERT_EQ(presentTime, timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME]); in TEST_F()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp830 nsecs_t presentTime = 0; in reportMetricsWithPresentTime() local
835 nullptr /*outGpuCompositionDoneTime*/, &presentTime, nullptr /*outDequeueReadyTime*/, in reportMetricsWithPresentTime()
838 forthBehind->set(FrameInfoIndex::DisplayPresentTime) = presentTime; in reportMetricsWithPresentTime()

12