Home
last modified time | relevance | path

Searched refs:vsyncId (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/native/libs/gui/
DFrameTimelineInfo.cpp34 SAFE_PARCEL(output.writeInt64, vsyncId); in write()
41 SAFE_PARCEL(input.readInt64, &vsyncId); in read()
49 if (vsyncId != INVALID_VSYNC_ID && other.vsyncId != INVALID_VSYNC_ID) { in merge()
50 if (other.vsyncId > vsyncId) { in merge()
51 vsyncId = other.vsyncId; in merge()
55 } else if (vsyncId == INVALID_VSYNC_ID) { in merge()
56 vsyncId = other.vsyncId; in merge()
63 vsyncId = INVALID_VSYNC_ID; in clear()
DVsyncEventData.cpp27 return frameTimelines[preferredFrameTimelineIndex].vsyncId; in preferredVsyncId()
51 SAFE_PARCEL(parcel->readInt64, &vsync.frameTimelines[i].vsyncId); in readFromParcel()
62 SAFE_PARCEL(parcel->writeInt64, vsync.frameTimelines[i].vsyncId); in writeToParcel()
/frameworks/base/libs/hwui/renderthread/
DTimeLord.cpp31 bool TimeLord::vsyncReceived(nsecs_t vsync, nsecs_t intendedVsync, int64_t vsyncId, in vsyncReceived() argument
39 mFrameVsyncId = (vsyncId > mFrameVsyncId) ? vsyncId : UiFrameInfoBuilder::INVALID_VSYNC_ID; in vsyncReceived()
DDrawFrameTask.cpp143 const int64_t vsyncId = mFrameInfo[static_cast<int>(FrameInfoIndex::FrameTimelineVsyncId)]; in run() local
144 ATRACE_FORMAT("DrawFrames %" PRId64, vsyncId); in run()
237 int64_t vsyncId = mFrameInfo[static_cast<int>(FrameInfoIndex::FrameTimelineVsyncId)]; in syncFrameState() local
240 mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId, frameDeadline, in syncFrameState()
DRenderThread.cpp120 AVsyncId vsyncId = AChoreographerFrameCallbackData_getFrameTimelineVsyncId( in extendedFrameCallback() local
127 rt->frameCallback(vsyncId, frameDeadline, frameTimeNanos, frameInterval); in extendedFrameCallback()
130 void RenderThread::frameCallback(int64_t vsyncId, int64_t frameDeadline, int64_t frameTimeNanos, in frameCallback() argument
133 if (timeLord().vsyncReceived(frameTimeNanos, frameTimeNanos, vsyncId, frameDeadline, in frameCallback()
DTimeLord.h35 bool vsyncReceived(nsecs_t vsync, nsecs_t indendedVsync, int64_t vsyncId,
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java147 FrameTimeline(long vsyncId, long expectedPresentTime, long deadline) { in FrameTimeline() argument
148 this.vsyncId = vsyncId; in FrameTimeline()
155 public final long vsyncId; field in DisplayEventReceiver.VsyncEventData.FrameTimeline
DChoreographer.java717 return mLastVsyncEventData.preferredFrameTimeline().vsyncId; in getVsyncId()
749 "Choreographer#doFrame " + vsyncEventData.preferredFrameTimeline().vsyncId); in doFrame()
812 vsyncEventData.preferredFrameTimeline().vsyncId, in doFrame()
1004 FrameTimeline(long vsyncId, long expectedPresentTimeNanos, long deadlineNanos) { in FrameTimeline() argument
1005 this.mVsyncId = vsyncId; in FrameTimeline()
1061 frameTimelines[i] = new FrameTimeline(frameTimeline.vsyncId, in FrameData()
1109 frameTimelines[i] = new FrameTimeline(frameTimeline.vsyncId, in convertFrameTimelines()
1178 + vsyncEventData.preferredFrameTimeline().vsyncId); in onVsync()
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/
DFrameTrackerTest.java598 @JankType int jankType, long vsyncId) { in sendFirstWindowFrame() argument
599 sendFrame(tracker, durationMillis, jankType, vsyncId, /* firstWindowFrame= */ true); in sendFirstWindowFrame()
603 @JankType int jankType, long vsyncId) { in sendFrame() argument
604 sendFrame(tracker, durationMillis, jankType, vsyncId, /* firstWindowFrame= */ false); in sendFrame()
610 private void sendFrame(FrameTracker tracker, @JankType int jankType, long vsyncId) { in sendFrame() argument
612 jankType, vsyncId, /* firstWindowFrame= */ false); in sendFrame()
616 @JankType int jankType, long vsyncId, boolean firstWindowFrame) { in sendFrame() argument
618 sendHwuiFrame(tracker, durationMillis, vsyncId, firstWindowFrame); in sendFrame()
620 sendSfFrame(tracker, vsyncId, jankType); in sendFrame()
623 private void sendHwuiFrame(FrameTracker tracker, long durationMillis, long vsyncId, in sendHwuiFrame() argument
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionTracingTest.cpp34 void flush(int64_t vsyncId) { mTracing.flush(vsyncId); } in flush() argument
44 void queueAndCommitTransaction(int64_t vsyncId) { in queueAndCommitTransaction() argument
46 transaction.id = static_cast<uint64_t>(vsyncId * 3); in queueAndCommitTransaction()
52 mTracing.addCommittedTransactions(transactions, vsyncId); in queueAndCommitTransaction()
53 flush(vsyncId); in queueAndCommitTransaction()
DTransactionProtoParserTest.cpp35 t1.frameTimelineInfo.vsyncId = 3; in TEST()
102 ASSERT_EQ(t1.frameTimelineInfo.vsyncId, t2.frameTimelineInfo.vsyncId); in TEST()
DMessageQueueTest.cpp138 const auto vsyncId = 42; in TEST_F() local
142 .WillOnce(Return(vsyncId)); in TEST_F()
143 EXPECT_CALL(*mEventQueue.mHandler, dispatchFrame(vsyncId, presentTime)).Times(1); in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp33 void MessageQueue::Handler::dispatchFrame(int64_t vsyncId, nsecs_t expectedVsyncTime) { in dispatchFrame() argument
35 mVsyncId = vsyncId; in dispatchFrame()
111 const auto vsyncId = mVsync.tokenManager->generateTokenForPredictions( in vsyncCallback() local
114 mHandler->dispatchFrame(vsyncId, vsyncTime); in vsyncCallback()
DMessageQueue.h37 virtual bool commit(nsecs_t frameTime, int64_t vsyncId, nsecs_t expectedVsyncTime) = 0;
38 virtual void composite(nsecs_t frameTime, int64_t vsyncId) = 0;
96 virtual void dispatchFrame(int64_t vsyncId, nsecs_t expectedVsyncTime);
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionTracing.h58 void addCommittedTransactions(std::vector<TransactionState>& transactions, int64_t vsyncId);
103 int64_t vsyncId; member
123 void flush(int64_t vsyncId) EXCLUDES(mMainThreadLock);
DTransactionTracing.cpp156 int64_t vsyncId) { in addCommittedTransactions() argument
158 committedTransactions.vsyncId = vsyncId; in addCommittedTransactions()
237 entryProto.set_vsync_id(entry.vsyncId); in addEntry()
284 void TransactionTracing::flush(int64_t vsyncId) { in flush() argument
295 return mBuffer.used() > 0 && entry.vsync_id() >= vsyncId; in flush()
/frameworks/native/libs/gui/tests/
DVsyncEventData_test.cpp49 ASSERT_EQ(data.vsync.frameTimelines[i].vsyncId, data2.vsync.frameTimelines[i].vsyncId); in TEST()
DDisplayEventStructLayout_test.cpp39 CHECK_OFFSET(DisplayEventReceiver::Event::VSync, vsyncData.frameTimelines[0].vsyncId, 24); in TEST()
49 vsyncData.frameTimelines[VsyncEventData::kFrameTimelinesLength - 1].vsyncId, in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldLightRevealOverlayAnimation.kt191 val vsyncId = Choreographer.getSfInstance().vsyncId in <lambda>() constant
199 transaction.setFrameTimelineVsync(vsyncId).apply() in <lambda>()
202 .setFrameTimelineVsync(vsyncId + 1) in <lambda>()
/frameworks/native/libs/gui/include/gui/
DFrameTimelineInfo.h30 int64_t vsyncId = INVALID_VSYNC_ID; member
DVsyncEventData.h40 int64_t vsyncId; member
/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimator.java105 final long vsyncId = mChoreographer.getVsyncId(); in WindowAnimator()
106 animate(frameTimeNs, vsyncId); in WindowAnimator()
128 private void animate(long frameTimeNs, long vsyncId) { in animate() argument
/frameworks/base/libs/hwui/
DFrameInfo.h97 int64_t vsyncId, int64_t frameDeadline, nsecs_t frameInterval) { in setVsync() argument
98 set(FrameInfoIndex::FrameTimelineVsyncId) = vsyncId; in setVsync()
/frameworks/native/services/surfaceflinger/Tracing/tools/
DLayerTraceGenerator.cpp215 int64_t vsyncId; in generate() local
273 vsyncId = entry.vsync_id(); in generate()
274 mFlinger.commit(frameTime, vsyncId); in generate()
/frameworks/native/services/surfaceflinger/tests/
DDisplayEventReceiver_test.cpp39 EXPECT_NE(FrameTimelineInfo::INVALID_VSYNC_ID, vsyncEventData.frameTimelines[i].vsyncId); in TEST_F()

12