Home
last modified time | relevance | path

Searched refs:timePoint (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DMessageQueueTest.cpp102 const auto timePoint = TimePoint::fromNs(1234); in TEST_F() local
103 const auto scheduleResult = scheduler::ScheduleResult{timePoint, timePoint}; in TEST_F()
119 auto timePoint = TimePoint::fromNs(1234); in TEST_F() local
120 auto scheduleResult = scheduler::ScheduleResult{timePoint, timePoint}; in TEST_F()
129 timePoint = TimePoint::fromNs(4567); in TEST_F()
130 scheduleResult = scheduler::ScheduleResult{timePoint, timePoint}; in TEST_F()
146 const auto timePoint = TimePoint::fromNs(1234); in TEST_F() local
147 auto scheduleResult = scheduler::ScheduleResult{timePoint, timePoint}; in TEST_F()
197 const auto timePoint = TimePoint::now(); in TEST_F() local
199 EXPECT_CALL(*mEventQueue.mHandler, getExpectedVsyncTime()).WillRepeatedly(Return(timePoint)); in TEST_F()
[all …]
DVSyncDispatchRealtimeTest.cpp68 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint, std::optional<nsecs_t>) final { in nextAnticipatedVSyncTimeFrom() argument
69 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom()
71 return timePoint; in nextAnticipatedVSyncTimeFrom()
73 return timePoint - floor + mPeriod; in nextAnticipatedVSyncTimeFrom()
DVSyncPredictorTest.cpp427 auto const timePoint = 158929728723871; in TEST_F() local
428 auto const prediction = tracker.nextAnticipatedVSyncTimeFrom(timePoint); in TEST_F()
429 EXPECT_THAT(prediction, Ge(timePoint)); in TEST_F()
DVSyncDispatchTimerQueueTest.cpp56 nsecs_t nextVSyncTime(nsecs_t timePoint, std::optional<nsecs_t>) const { in nextVSyncTime() argument
57 if (timePoint % mPeriod == 0) { in nextVSyncTime()
58 return timePoint; in nextVSyncTime()
60 return (timePoint - (timePoint % mPeriod) + mPeriod); in nextVSyncTime()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp262 nsecs_t VSyncPredictor::snapToVsync(nsecs_t timePoint) const { in snapToVsync()
267 auto const knownTimestamp = mKnownTimestamp ? *mKnownTimestamp : timePoint; in snapToVsync()
268 auto const numPeriodsOut = ((timePoint - knownTimestamp) / idealPeriod()) + 1; in snapToVsync()
276 auto const ordinalRequest = (timePoint - zeroPoint + slope) / slope; in snapToVsync()
280 traceInt64If("VSP-timePoint", timePoint); in snapToVsync()
285 str << "prediction made from: " << timePoint << "prediction: " << prediction << " (+" in snapToVsync()
286 << prediction - timePoint << ") slope: " << slope << " intercept: " << intercept in snapToVsync()
292 LOG_ALWAYS_FATAL_IF(prediction < timePoint, "VSyncPredictor: model miscalculation: %s", in snapToVsync()
298 nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFrom(nsecs_t timePoint, in nextAnticipatedVSyncTimeFrom() argument
306 if (lastVsyncOpt && *lastVsyncOpt > timePoint) { in nextAnticipatedVSyncTimeFrom()
[all …]
DVSyncTracker.h59 virtual nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint,
90 virtual bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) = 0;
DVSyncPredictor.h48 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint,
67 bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) final EXCLUDES(mMutex);
133 nsecs_t snapToVsync(nsecs_t timePoint) const REQUIRES(mMutex);
DVsyncSchedule.cpp91 TimePoint VsyncSchedule::vsyncDeadlineAfter(TimePoint timePoint, in vsyncDeadlineAfter() argument
94 mTracker->nextAnticipatedVSyncTimeFrom(timePoint.ns(), in vsyncDeadlineAfter()
DLayerInfo.h229 const auto timePoint = std::chrono::nanoseconds(now); in onLayerInactive() local
230 mFrameTimeValidSince = std::chrono::time_point<std::chrono::steady_clock>(timePoint); in onLayerInactive()
/frameworks/av/media/codec2/sfplugin/include/media/stagefright/
DCCodec.h183 const TimePoint &timePoint, in set()
185 mTimePoint = timePoint; in set()