/frameworks/native/services/surfaceflinger/Scheduler/src/ |
D | PresentLatencyTracker.cpp | 30 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/ |
D | FrameTimeline.cpp | 52 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 …]
|
D | FrameTimeline.h | 88 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/ |
D | FrameTimelineTest.cpp | 158 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 …]
|
D | LayerInfoTest.cpp | 81 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/ |
D | SpyInputEventSenderAndReceiver.kt | 62 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()
|
D | InputEventSenderAndReceiverTest.kt | 102 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/ |
D | InputEventSender.java | 126 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()
|
D | InputEventReceiver.java | 59 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/ |
D | LatencyAggregator.cpp | 155 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/ |
D | FrameTracker.cpp | 40 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/ |
D | TimeStats.cpp | 429 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 …]
|
D | TimeStats.h | 96 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/ |
D | android_view_InputEventReceiver.cpp | 96 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/ |
D | LayerInfo.cpp | 71 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()
|
D | LayerHistory.h | 70 void record(int32_t id, const LayerProps& props, nsecs_t presentTime, nsecs_t now,
|
D | EventThread.cpp | 400 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()
|
D | LayerHistory.cpp | 134 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()
|
D | Scheduler.h | 226 void recordLayerHistory(int32_t id, const LayerProps& layerProps, nsecs_t presentTime, 282 bool onCompositionPresented(nsecs_t presentTime);
|
D | Scheduler.cpp | 678 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()
|
D | LayerInfo.h | 244 nsecs_t presentTime; // desiredPresentTime, if provided member
|
/frameworks/native/libs/input/ |
D | InputConsumerNoResampling.cpp | 161 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/ |
D | InputConsumerNoResampling.h | 75 void reportTimeline(int32_t inputEventId, nsecs_t gpuCompletedTime, nsecs_t presentTime);
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumerNoResampling_test.cpp | 328 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/ |
D | CanvasContext.cpp | 830 nsecs_t presentTime = 0; in reportMetricsWithPresentTime() local 835 nullptr /*outGpuCompositionDoneTime*/, &presentTime, nullptr /*outDequeueReadyTime*/, in reportMetricsWithPresentTime() 838 forthBehind->set(FrameInfoIndex::DisplayPresentTime) = presentTime; in reportMetricsWithPresentTime()
|