Home
last modified time | relevance | path

Searched refs:vsync (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/native/libs/gui/tests/
DVsyncEventData_test.cpp33 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()
46 ASSERT_EQ(data.vsync.frameInterval, data2.vsync.frameInterval); in TEST()
47 ASSERT_EQ(data.vsync.preferredFrameTimelineIndex, data2.vsync.preferredFrameTimelineIndex); in TEST()
49 ASSERT_EQ(data.vsync.frameTimelines[i].vsyncId, data2.vsync.frameTimelines[i].vsyncId); in TEST()
50 ASSERT_EQ(data.vsync.frameTimelines[i].deadlineTimestamp, in TEST()
51 data2.vsync.frameTimelines[i].deadlineTimestamp); in TEST()
52 ASSERT_EQ(data.vsync.frameTimelines[i].expectedPresentationTime, in TEST()
[all …]
DDisplayEventStructLayout_test.cpp27 CHECK_OFFSET(DisplayEventReceiver::Event, vsync, 24); in TEST()
/frameworks/native/libs/gui/
DVsyncEventData.cpp44 SAFE_PARCEL(parcel->readInt64, &vsync.frameInterval); in readFromParcel()
48 vsync.preferredFrameTimelineIndex = static_cast<size_t>(uintPreferredFrameTimelineIndex); in readFromParcel()
51 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].vsyncId); in readFromParcel()
52 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].deadlineTimestamp); in readFromParcel()
53 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].expectedPresentationTime); in readFromParcel()
59 SAFE_PARCEL(parcel->writeInt64, vsync.frameInterval); in writeToParcel()
60 SAFE_PARCEL(parcel->writeUint64, vsync.preferredFrameTimelineIndex); in writeToParcel()
62 SAFE_PARCEL(parcel->writeInt64, vsync.frameTimelines[i].vsyncId); in writeToParcel()
63 SAFE_PARCEL(parcel->writeInt64, vsync.frameTimelines[i].deadlineTimestamp); in writeToParcel()
64 SAFE_PARCEL(parcel->writeInt64, vsync.frameTimelines[i].expectedPresentationTime); in writeToParcel()
DDisplayEventDispatcher.cpp168 *outCount = ev.vsync.count; in processPendingEvents()
169 *outVsyncEventData = ev.vsync.vsyncData; in processPendingEvents()
/frameworks/base/libs/hwui/renderthread/
DTimeLord.cpp31 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()
DTimeLord.h35 bool vsyncReceived(nsecs_t vsync, nsecs_t indendedVsync, int64_t vsyncId,
DDrawFrameTask.cpp235 int64_t vsync = mFrameInfo[static_cast<int>(FrameInfoIndex::Vsync)]; in syncFrameState() local
240 mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId, frameDeadline, in syncFrameState()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp141 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/
DEventThread.cpp92 to_string(event.header.displayId).c_str(), event.vsync.count, in toString()
93 event.vsync.vsyncData.preferredExpectedPresentationTime()); in toString()
115 event.vsync.count = count; in makeVSync()
116 event.vsync.vsyncData.preferredFrameTimelineIndex = 0; in makeVSync()
120 event.vsync.vsyncData.frameTimelines[0] = {.vsyncId = FrameTimelineInfo::INVALID_VSYNC_ID, in makeVSync()
204 outVsyncEventData->vsync = mEventThread->getLatestVsyncEventData(this); in getLatestVsyncEventData()
546 mThrottleVsyncCallback(event.vsync.vsyncData.preferredExpectedPresentationTime(), in shouldConsumeEvent()
582 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent()
636 copy.vsync.vsyncData.frameInterval = frameInterval; in dispatchEvent()
637 generateFrameTimeline(copy.vsync.vsyncData, frameInterval, copy.header.timestamp, in dispatchEvent()
[all …]
DVSyncPredictor.cpp289 const auto vsync = nextAnticipatedVSyncTimeFromLocked(justBeforeTimePoint); in isVSyncInPhase() local
290 mRateDivisorKnownTimestampMap[dividedPeriod] = vsync; in isVSyncInPhase()
301 const nsecs_t vsync = nextAnticipatedVSyncTimeFromLocked(point); in isVSyncInPhase() local
302 const auto numPeriods = static_cast<float>(vsync - knownVsync) / (period * divisor); in isVSyncInPhase()
304 vsyncs[i] = {vsync, error}; in isVSyncInPhase()
305 point = vsync + 1; in isVSyncInPhase()
DMessageQueue.cpp193 auto& vsync = buffer[i].vsync; in injectorCallback() local
194 mHandler->dispatchFrame(vsync.vsyncData.preferredVsyncId(), in injectorCallback()
195 vsync.vsyncData.preferredExpectedPresentationTime()); in injectorCallback()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp245 EXPECT_EQ(expectedCount, event.vsync.count) in expectVsyncEventReceivedByConnection()
264 event.vsync.vsyncData.frameTimelines[i].vsyncId); in expectVsyncEventFrameTimelinesCorrect()
267 event.vsync.vsyncData.frameTimelines[i].deadlineTimestamp) in expectVsyncEventFrameTimelinesCorrect()
270 event.vsync.vsyncData.frameTimelines[i].expectedPresentationTime) in expectVsyncEventFrameTimelinesCorrect()
274 EXPECT_GT(event.vsync.vsyncData.frameTimelines[i].deadlineTimestamp, in expectVsyncEventFrameTimelinesCorrect()
275 event.vsync.vsyncData.frameTimelines[i - 1].deadlineTimestamp) in expectVsyncEventFrameTimelinesCorrect()
277 EXPECT_GT(event.vsync.vsyncData.frameTimelines[i].expectedPresentationTime, in expectVsyncEventFrameTimelinesCorrect()
278 event.vsync.vsyncData.frameTimelines[i - 1].expectedPresentationTime) in expectVsyncEventFrameTimelinesCorrect()
283 EXPECT_EQ(i, event.vsync.vsyncData.frameTimelines[i].vsyncId) in expectVsyncEventFrameTimelinesCorrect()
285 if (i == event.vsync.vsyncData.preferredFrameTimelineIndex) { in expectVsyncEventFrameTimelinesCorrect()
[all …]
/frameworks/native/services/surfaceflinger/tests/vsync/
DAndroid.bp25 name: "test-vsync-events",
28 "vsync.cpp",
Dvsync.cpp39 printf("event vsync: count=%d\t", buffer[i].vsync.count); in receiver()
/frameworks/native/libs/gui/include/gui/
DVsyncEventData.h61 VsyncEventData vsync; member
DDisplayEventReceiver.h99 VSync vsync; member
/frameworks/native/services/surfaceflinger/
Dsurfaceflinger.rc10 …socket pdx/system/vr/display/vsync stream 0666 system graphics u:object_r:pdx_display_vsync_e…
/frameworks/base/libs/hwui/protos/
Dgraphicsstats.proto68 // 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/
Dreadme.md6 is applied, along wth a timestamp and vsync id. The transactions
/frameworks/native/services/surfaceflinger/tests/
DLayerCallback_test.cpp145 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
1053 transaction.setFrameTimelineInfo({vsync.vsyncId, 0}); in TEST_F()
1058 expected.addExpectedPresentTimeForVsyncId(vsync.expectedPresentTime); in TEST_F()
DDisplayEventReceiver_test.cpp34 const VsyncEventData& vsyncEventData = parcelableVsyncEventData.vsync; in TEST_F()
/frameworks/base/core/proto/android/service/
Dgraphicsstats.proto74 // 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/
Dtimestats_atoms.proto119 // 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.
241 // one vsync early)
245 // vsync predictions.
249 // than one buffer ready to be presented at the same vsync). Usually caused
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h197 inline std::string to_string(hardware::graphics::composer::hal::Vsync vsync) { in to_string() argument
198 switch (vsync) { in to_string()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.md3 …aw once per vsync. Therefore, apps can only respond to 1 input event per frame. If multiple input …

12