/frameworks/native/services/inputflinger/tests/ |
D | LatencyTracker_test.cpp | 97 void assertReceivedTimeline(const InputEventTimeline& timeline); 106 void processTimeline(const InputEventTimeline& timeline) override { in processTimeline() argument 107 mReceivedTimelines.push_back(timeline); in processTimeline() 124 void LatencyTrackerTest::assertReceivedTimeline(const InputEventTimeline& timeline) { in assertReceivedTimeline() argument 127 ASSERT_EQ(timeline, t); in assertReceivedTimeline() 298 InputEventTimeline timeline = getTestTimeline(); in TEST_F() local 300 const ConnectionTimeline& expectedCT = timeline.connectionTimelines.begin()->second; in TEST_F() 301 const sp<IBinder>& token = timeline.connectionTimelines.begin()->first; in TEST_F() 304 mTracker->trackListener(/*inputEventId=*/i, timeline.isDown, timeline.eventTime, in TEST_F() 305 timeline.readTime, /*deviceId=*/DEVICE_ID, in TEST_F() [all …]
|
D | FakeWindows.h | 79 void sendTimeline(int32_t inputEventId, std::array<nsecs_t, GraphicsTimeline::SIZE> timeline); 370 std::array<nsecs_t, GraphicsTimeline::SIZE> timeline) { in sendTimeline() argument 372 mInputReceiver->sendTimeline(inputEventId, timeline); in sendTimeline()
|
D | FakeWindows.cpp | 78 std::array<nsecs_t, GraphicsTimeline::SIZE> timeline) { in sendTimeline() argument 79 const status_t status = mConsumer.sendTimeline(inputEventId, timeline); in sendTimeline()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | LatencyTracker.cpp | 121 InputEventTimeline& timeline = it->second; in trackFinishedEvent() local 122 const auto connectionIt = timeline.connectionTimelines.find(connectionToken); in trackFinishedEvent() 123 if (connectionIt == timeline.connectionTimelines.end()) { in trackFinishedEvent() 125 timeline.connectionTimelines.emplace(connectionToken, in trackFinishedEvent() 136 timeline.connectionTimelines.erase(connectionIt); in trackFinishedEvent() 152 InputEventTimeline& timeline = it->second; in trackGraphicsLatency() local 153 const auto connectionIt = timeline.connectionTimelines.find(connectionToken); in trackGraphicsLatency() 154 if (connectionIt == timeline.connectionTimelines.end()) { in trackGraphicsLatency() 155 timeline.connectionTimelines.emplace(connectionToken, std::move(graphicsTimeline)); in trackGraphicsLatency() 163 timeline.connectionTimelines.erase(connectionIt); in trackGraphicsLatency() [all …]
|
D | LatencyAggregator.cpp | 123 void LatencyAggregator::processTimeline(const InputEventTimeline& timeline) { in processTimeline() argument 124 processStatistics(timeline); in processTimeline() 125 processSlowEvent(timeline); in processTimeline() 128 void LatencyAggregator::processStatistics(const InputEventTimeline& timeline) { in processStatistics() argument 137 timeline.isDown ? mDownSketches : mMoveSketches; in processStatistics() 140 const nsecs_t eventToRead = timeline.readTime - timeline.eventTime; in processStatistics() 144 for (const auto& [connectionToken, connectionTimeline] : timeline.connectionTimelines) { in processStatistics() 148 const nsecs_t readToDeliver = connectionTimeline.deliveryTime - timeline.readTime; in processStatistics() 159 const nsecs_t endToEnd = presentTime - timeline.eventTime; in processStatistics() 210 void LatencyAggregator::processSlowEvent(const InputEventTimeline& timeline) { in processSlowEvent() argument [all …]
|
D | LatencyAggregator.h | 58 void processTimeline(const InputEventTimeline& timeline) override; 73 void processSlowEvent(const InputEventTimeline& timeline); 84 void processStatistics(const InputEventTimeline& timeline);
|
D | InputEventTimeline.cpp | 49 bool ConnectionTimeline::setGraphicsTimeline(std::array<nsecs_t, GraphicsTimeline::SIZE> timeline) { in setGraphicsTimeline() argument 53 graphicsTimeline = std::move(timeline); in setGraphicsTimeline()
|
D | LatencyTracker.h | 60 std::array<nsecs_t, GraphicsTimeline::SIZE> timeline);
|
D | InputEventTimeline.h | 107 virtual void processTimeline(const InputEventTimeline& timeline) = 0;
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayModeControllerTest.cpp | 84 hal::VsyncPeriodChangeTimeline& timeline, in expectModeSet() argument 106 .WillOnce(DoAll(SetArgPointee<3>(timeline), Return(hal::V2_4::Error::NONE))); in expectModeSet() 183 hal::VsyncPeriodChangeTimeline timeline; in TEST_F() local 184 const auto constraints = expectModeSet(modeRequest, timeline); in TEST_F() 186 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F() 210 hal::VsyncPeriodChangeTimeline timeline; in TEST_F() local 211 auto constraints = expectModeSet(modeRequest, timeline); in TEST_F() 213 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F() 224 constraints = expectModeSet(modeRequest, timeline, kSubsequent); in TEST_F() 226 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F()
|
D | SurfaceFlinger_DisplayModeSwitching.cpp | 37 .WillOnce(DoAll(SetArgPointee<3>(timeline), Return(Error::NONE))) 188 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local 226 const VsyncPeriodChangeTimeline timeline{.refreshRequired = false}; in TEST_F() local 252 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local 293 const VsyncPeriodChangeTimeline timeline{.refreshRequired = false}; in TEST_F() local 395 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local 468 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local 497 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local 549 const VsyncPeriodChangeTimeline timeline{.refreshRequired = true}; in TEST_F() local
|
/frameworks/base/core/jni/ |
D | android_view_InputEventReceiver.cpp | 112 std::array<nsecs_t, GraphicsTimeline::SIZE> timeline; member 192 Timeline timeline{ in reportTimeline() local 194 .timeline = graphicsTimeline, in reportTimeline() 196 mOutboundQueue.push_back(timeline); in reportTimeline() 238 const Timeline& timeline = std::get<Timeline>(outbound); in processOutboundEvents() local 239 status = mInputConsumer.sendTimeline(timeline.inputEventId, timeline.timeline); in processOutboundEvents() 500 const Timeline& timeline = std::get<Timeline>(outbound); in dump() local 504 timeline.inputEventId, in dump() 505 timeline.timeline[GraphicsTimeline::GPU_COMPLETED_TIME], in dump() 506 timeline.timeline[GraphicsTimeline::PRESENT_TIME]); in dump()
|
D | android_view_InputEventSender.cpp | 255 const InputPublisher::Timeline& timeline = std::get<InputPublisher::Timeline>(response); in notifyConsumerResponse() local 259 << "' ~ Received timeline, inputEventId=" << timeline.inputEventId in notifyConsumerResponse() 261 << timeline.graphicsTimeline[GraphicsTimeline::GPU_COMPLETED_TIME] in notifyConsumerResponse() 263 << timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME]; in notifyConsumerResponse() 269 << timeline.inputEventId; in notifyConsumerResponse() 274 timeline.inputEventId, timeline.graphicsTimeline); in notifyConsumerResponse() 276 LOG(ERROR) << "Exception dispatching timeline, inputEventId=" << timeline.inputEventId; in notifyConsumerResponse()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 688 DisplayTimeline timeline; in calculateDisplayTimeline() local 699 timeline.hwcPresentStartTime = skippedValidate ? *hwcValidateStartTime : *hwcPresentStartTime; in calculateDisplayTimeline() 702 timeline.hwcPresentEndTime = skippedValidate ? *hwcValidateEndTime : *hwcPresentEndTime; in calculateDisplayTimeline() 705 timeline.hwcPresentDelayDuration = in calculateDisplayTimeline() 708 timeline.presentFenceWaitStartTime = in calculateDisplayTimeline() 709 timeline.hwcPresentStartTime + timeline.hwcPresentDelayDuration + fenceWaitStartDelay; in calculateDisplayTimeline() 710 timeline.probablyWaitsForPresentFence = fenceTime > timeline.presentFenceWaitStartTime && in calculateDisplayTimeline() 711 fenceTime < timeline.hwcPresentEndTime; in calculateDisplayTimeline() 714 timeline.postPresentFenceHwcPresentDuration = timeline.hwcPresentEndTime - in calculateDisplayTimeline() 715 (timeline.probablyWaitsForPresentFence ? fenceTime in calculateDisplayTimeline() [all …]
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | LatencyTrackerFuzzer.cpp | 35 void processTimeline(const InputEventTimeline& timeline) override { in processTimeline() argument 36 for (const auto& [token, connectionTimeline] : timeline.connectionTimelines) { in processTimeline()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncPredictor.cpp | 319 for (auto& timeline : mTimelines) { in nextAnticipatedVSyncTimeFrom() local 320 vsyncOpt = timeline.nextAnticipatedVSyncTimeFrom(model, minFramePeriodOpt, in nextAnticipatedVSyncTimeFrom() 362 for (auto& timeline : mTimelines) { in isVSyncInPhase() local 363 if (timeline.validUntil() && timeline.validUntil()->ns() > vsync) { in isVSyncInPhase() 364 return timeline.isVSyncInPhase(model, vsync, frameRate); in isVSyncInPhase() 467 for (auto& timeline : mTimelines) { in ensureMinFrameDurationIsKept() local 468 timeline.shiftVsyncSequence(phase); in ensureMinFrameDurationIsKept()
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 138 body.timeline.graphicsTimeline[GraphicsTimeline::GPU_COMPLETED_TIME]; in isValid() 140 body.timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME]; in isValid() 169 return sizeof(Header) + body.timeline.size(); in size() 313 msg->body.timeline.eventId = body.timeline.eventId; in getSanitizedCopy() 314 msg->body.timeline.graphicsTimeline = body.timeline.graphicsTimeline; in getSanitizedCopy() 755 mChannel->getName().c_str(), __func__, msg.body.timeline.eventId); in receiveConsumerResponse() 757 .inputEventId = msg.body.timeline.eventId, in receiveConsumerResponse() 758 .graphicsTimeline = msg.body.timeline.graphicsTimeline, in receiveConsumerResponse()
|
D | InputConsumerNoResampling.cpp | 137 outboundMsg.body.timeline.eventId, in outboundMessageToString() 138 outboundMsg.body.timeline in outboundMessageToString() 140 outboundMsg.body.timeline in outboundMessageToString() 165 msg.body.timeline.eventId = inputEventId; in createTimelineMessage() 166 msg.body.timeline.graphicsTimeline[GraphicsTimeline::GPU_COMPLETED_TIME] = gpuCompletedTime; in createTimelineMessage() 167 msg.body.timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME] = presentTime; in createTimelineMessage()
|
D | InputConsumer.cpp | 762 msg.body.timeline.eventId = inputEventId; in sendTimeline() 763 msg.body.timeline.graphicsTimeline = std::move(graphicsTimeline); in sendTimeline() 920 msg.body.timeline in dump() 923 msg.body.timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME]; in dump() 927 msg.body.timeline.eventId, gpuCompletedTime, in dump()
|
/frameworks/base/core/java/android/view/ |
D | Choreographer.java | 852 FrameTimeline timeline = mFrameData.update(frameTimeNanos, vsyncEventData); in doFrame() local 855 Trace.TRACE_TAG_VIEW, "Choreographer#doFrame " + timeline.mVsyncId); in doFrame() 894 timeline = mFrameData.update( in doFrame() 930 timeline.mVsyncId, (timeline.mDeadlineNanos - startNanos) * 0.000001f); in doFrame() 935 timeline.mExpectedPresentationTimeNanos); in doFrame()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OutputStream.cpp | 1402 const auto& timeline = vsyncEventData.frameTimelines[i]; in syncTimestampToDisplayLocked() local 1403 if (timeline.deadlineTimestamp >= currentTime && in syncTimestampToDisplayLocked() 1404 timeline.expectedPresentationTime > minPresentT) { in syncTimestampToDisplayLocked() 1439 const auto& timeline = mRefVsyncData.frameTimelines[i]; in syncTimestampToDisplayLocked() local 1440 if (timeline.deadlineTimestamp >= signalTime) { in syncTimestampToDisplayLocked() 1442 mCaptureToPresentOffset = timeline.expectedPresentationTime in syncTimestampToDisplayLocked() 1444 mLastPresentTime = timeline.expectedPresentationTime; in syncTimestampToDisplayLocked() 1451 timeline.deadlineTimestamp, signalTime, originalOffset, in syncTimestampToDisplayLocked()
|
/frameworks/native/include/input/ |
D | InputConsumer.h | 83 std::array<nsecs_t, GraphicsTimeline::SIZE> timeline);
|
D | InputTransport.h | 210 } timeline; member
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumerNoResampling_test.cpp | 690 const InputPublisher::Timeline& timeline = std::get<InputPublisher::Timeline>(*result); in TEST_F() local 691 ASSERT_EQ(inputEventId, timeline.inputEventId); in TEST_F() 692 ASSERT_EQ(gpuCompletedTime, timeline.graphicsTimeline[GraphicsTimeline::GPU_COMPLETED_TIME]); in TEST_F() 693 ASSERT_EQ(presentTime, timeline.graphicsTimeline[GraphicsTimeline::PRESENT_TIME]); in TEST_F()
|
D | InputPublisherAndConsumer_test.cpp | 577 const InputPublisher::Timeline& timeline = std::get<InputPublisher::Timeline>(*result); in TEST_F() local 578 ASSERT_EQ(inputEventId, timeline.inputEventId); in TEST_F() 579 ASSERT_EQ(graphicsTimeline, timeline.graphicsTimeline); in TEST_F()
|