/frameworks/native/libs/gui/tests/ |
D | VsyncEventData_test.cpp | 33 data.vsync.frameInterval = 789; in TEST() 34 data.vsync.preferredFrameTimelineIndex = 1; in TEST() 37 data.vsync.frameTimelines[0] = timeline0; in TEST() 38 data.vsync.frameTimelines[1] = timeline1; in TEST() 39 data.vsync.frameTimelinesLength = 2; in TEST() 47 ASSERT_EQ(data.vsync.frameInterval, data2.vsync.frameInterval); in TEST() 48 ASSERT_EQ(data.vsync.preferredFrameTimelineIndex, data2.vsync.preferredFrameTimelineIndex); in TEST() 49 ASSERT_EQ(data.vsync.frameTimelinesLength, data2.vsync.frameTimelinesLength); in TEST() 51 ASSERT_EQ(data.vsync.frameTimelines[i].vsyncId, data2.vsync.frameTimelines[i].vsyncId); in TEST() 52 ASSERT_EQ(data.vsync.frameTimelines[i].deadlineTimestamp, in TEST() [all …]
|
D | DisplayEventStructLayout_test.cpp | 27 CHECK_OFFSET(DisplayEventReceiver::Event, vsync, 24); in TEST()
|
/frameworks/native/libs/gui/ |
D | VsyncEventData.cpp | 47 SAFE_PARCEL(parcel->readInt64, &vsync.frameInterval); in readFromParcel() 51 vsync.preferredFrameTimelineIndex = static_cast<size_t>(uintPreferredFrameTimelineIndex); in readFromParcel() 55 vsync.frameTimelinesLength = static_cast<size_t>(uintFrameTimelinesLength); in readFromParcel() 57 for (size_t i = 0; i < vsync.frameTimelinesLength; i++) { in readFromParcel() 58 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].vsyncId); in readFromParcel() 59 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].deadlineTimestamp); in readFromParcel() 60 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].expectedPresentationTime); in readFromParcel() 66 SAFE_PARCEL(parcel->writeInt64, vsync.frameInterval); in writeToParcel() 67 SAFE_PARCEL(parcel->writeUint32, vsync.preferredFrameTimelineIndex); in writeToParcel() 68 SAFE_PARCEL(parcel->writeUint32, vsync.frameTimelinesLength); in writeToParcel() [all …]
|
D | DisplayEventDispatcher.cpp | 176 *outCount = ev.vsync.count; in processPendingEvents() 177 *outVsyncEventData = ev.vsync.vsyncData; in processPendingEvents() 181 const auto frameInterval = ev.vsync.vsyncData.frameInterval; in processPendingEvents()
|
/frameworks/base/libs/hwui/renderthread/ |
D | TimeLord.cpp | 31 bool TimeLord::vsyncReceived(nsecs_t vsync, nsecs_t intendedVsync, int64_t vsyncId, in vsyncReceived() argument 46 if (vsync > mFrameTimeNanos) { in vsyncReceived() 47 mFrameTimeNanos = vsync; in vsyncReceived()
|
D | TimeLord.h | 35 bool vsyncReceived(nsecs_t vsync, nsecs_t indendedVsync, int64_t vsyncId,
|
D | DrawFrameTask.cpp | 171 int64_t vsync = mFrameInfo[static_cast<int>(FrameInfoIndex::Vsync)]; in syncFrameState() local 176 mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId, frameDeadline, in syncFrameState()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 141 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in doRun() local 143 .setVsync(vsync, vsync, UiFrameInfoBuilder::INVALID_VSYNC_ID, in doRun() 158 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in doRun() local 162 .setVsync(vsync, vsync, UiFrameInfoBuilder::INVALID_VSYNC_ID, in doRun() 172 avgMs.add((done - vsync) / 1000000.0); in doRun()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncPredictor.cpp | 358 const auto vsync = snapToVsync(justBeforeTimePoint); in isVSyncInPhase() local 363 if (timeline.validUntil() && timeline.validUntil()->ns() > vsync) { in isVSyncInPhase() 364 return timeline.isVSyncInPhase(model, vsync, frameRate); in isVSyncInPhase() 369 return mTimelines.back().isVSyncInPhase(model, vsync, frameRate); in isVSyncInPhase() 645 Model model, std::optional<Period> minFramePeriodOpt, nsecs_t vsync, in nextAnticipatedVSyncTimeFrom() argument 649 nsecs_t vsyncTime = snapToVsyncAlignedWithRenderRate(model, vsync); in nextAnticipatedVSyncTimeFrom() 652 lastVsyncOpt && std::abs(*lastVsyncOpt - missedVsync.vsync.ns()) < threshold; in nextAnticipatedVSyncTimeFrom() 693 auto VSyncPredictor::VsyncTimeline::getVsyncSequenceLocked(Model model, nsecs_t vsync) in getVsyncSequenceLocked() argument 695 if (!mLastVsyncSequence) return {vsync, 0}; in getVsyncSequenceLocked() 699 static_cast<int64_t>(std::round((vsync - lastVsyncTime) / in getVsyncSequenceLocked() [all …]
|
D | EventThread.cpp | 98 to_string(event.header.displayId).c_str(), event.vsync.count, in toString() 99 event.vsync.vsyncData.preferredExpectedPresentationTime()); in toString() 135 event.vsync.count = count; in makeVSync() 136 event.vsync.vsyncData.preferredFrameTimelineIndex = 0; in makeVSync() 140 event.vsync.vsyncData.frameTimelines[0] = {.vsyncId = FrameTimelineInfo::INVALID_VSYNC_ID, in makeVSync() 237 outVsyncEventData->vsync = in getLatestVsyncEventData() 574 const auto& vsyncData = event.vsync.vsyncData; in shouldConsumeEvent() 582 TimePoint::fromNs(event.vsync.vsyncData.preferredExpectedPresentationTime()); in shouldConsumeEvent() 621 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent() 707 copy.vsync.vsyncData.frameInterval = frameInterval.ns(); in dispatchEvent() [all …]
|
D | VSyncPredictor.h | 93 TimePoint vsync = TimePoint::fromNs(0); member 105 bool isVSyncInPhase(Model, nsecs_t vsync, Fps frameRate); 110 nsecs_t snapToVsyncAlignedWithRenderRate(Model model, nsecs_t vsync); 111 VsyncSequence getVsyncSequenceLocked(Model, nsecs_t vsync);
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 273 EXPECT_EQ(expectedCount, event.vsync.count) in expectVsyncEventReceivedByConnection() 290 for (int i = 0; i < event.vsync.vsyncData.frameTimelinesLength; i++) { in expectVsyncEventFrameTimelinesCorrect() 292 event.vsync.vsyncData.frameTimelines[i].vsyncId); in expectVsyncEventFrameTimelinesCorrect() 295 event.vsync.vsyncData.frameTimelines[i].deadlineTimestamp) in expectVsyncEventFrameTimelinesCorrect() 298 event.vsync.vsyncData.frameTimelines[i].expectedPresentationTime) in expectVsyncEventFrameTimelinesCorrect() 302 EXPECT_GT(event.vsync.vsyncData.frameTimelines[i].deadlineTimestamp, in expectVsyncEventFrameTimelinesCorrect() 303 event.vsync.vsyncData.frameTimelines[i - 1].deadlineTimestamp) in expectVsyncEventFrameTimelinesCorrect() 305 EXPECT_GT(event.vsync.vsyncData.frameTimelines[i].expectedPresentationTime, in expectVsyncEventFrameTimelinesCorrect() 306 event.vsync.vsyncData.frameTimelines[i - 1].expectedPresentationTime) in expectVsyncEventFrameTimelinesCorrect() 311 EXPECT_EQ(i, event.vsync.vsyncData.frameTimelines[i].vsyncId) in expectVsyncEventFrameTimelinesCorrect() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareBufferRenderer.cpp | 112 nsecs_t vsync = systemTime(SYSTEM_TIME_MONOTONIC); in android_graphics_HardwareBufferRenderer_render() local 114 .setVsync(vsync, vsync, UiFrameInfoBuilder::INVALID_VSYNC_ID, in android_graphics_HardwareBufferRenderer_render()
|
/frameworks/native/services/surfaceflinger/tests/vsync/ |
D | Android.bp | 26 name: "test-vsync-events", 29 "vsync.cpp",
|
D | vsync.cpp | 45 printf("event vsync: count=%d\t", buffer[i].vsync.count); in receiver()
|
/frameworks/native/libs/gui/include/gui/ |
D | VsyncEventData.h | 64 VsyncEventData vsync; member
|
D | DisplayEventReceiver.h | 115 VSync vsync; member
|
/frameworks/native/services/surfaceflinger/ |
D | surfaceflinger.rc | 10 …socket pdx/system/vr/display/vsync stream 0666 system graphics u:object_r:pdx_display_vsync_e…
|
/frameworks/base/libs/hwui/protos/ |
D | graphicsstats.proto | 68 // they took more than a vsync interval (typically 16.667ms) to be rendered. 71 // Number of "missed vsync" events.
|
/frameworks/native/services/surfaceflinger/Tracing/tools/ |
D | readme.md | 6 is applied, along wth a timestamp and vsync id. The transactions
|
/frameworks/native/services/surfaceflinger/tests/ |
D | DisplayEventReceiver_test.cpp | 34 const VsyncEventData& vsyncEventData = parcelableVsyncEventData.vsync; in TEST_F()
|
D | LayerCallback_test.cpp | 145 Vsync vsync; in waitForNextVsync() local 154 vsync = {event.vsync.vsyncData.preferredVsyncId(), in waitForNextVsync() 155 event.vsync.vsyncData.preferredExpectedPresentationTime()}; in waitForNextVsync() 158 EXPECT_GE(vsync.vsyncId, 1); in waitForNextVsync() 159 EXPECT_GT(vsync.expectedPresentTime, systemTime()); in waitForNextVsync() 161 return vsync; in waitForNextVsync() 1052 const Vsync vsync = waitForNextVsync(); in TEST_F() local 1054 ftInfo.vsyncId = vsync.vsyncId; in TEST_F() 1061 expected.addExpectedPresentTimeForVsyncId(vsync.expectedPresentTime); in TEST_F()
|
/frameworks/base/core/proto/android/service/ |
D | graphicsstats.proto | 74 // they took more than a vsync interval (typically 16.667ms) to be rendered. 77 // Number of "missed vsync" events.
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsatomsproto/ |
D | timestats_atoms.proto | 119 // one vsync early) 123 // vsync predictions. 127 // than one buffer ready to be presented at the same vsync). Usually caused 137 // compared to the actual hardware vsync. 242 // one vsync early) 246 // vsync predictions. 250 // than one buffer ready to be presented at the same vsync). Usually caused
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 241 inline std::string to_string(hardware::graphics::composer::hal::Vsync vsync) { in to_string() argument 242 switch (vsync) { in to_string()
|