Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp216 nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFromLocked(nsecs_t timePoint) const { in nextAnticipatedVSyncTimeFromLocked()
221 auto const knownTimestamp = mKnownTimestamp ? *mKnownTimestamp : timePoint; in nextAnticipatedVSyncTimeFromLocked()
222 auto const numPeriodsOut = ((timePoint - knownTimestamp) / mIdealPeriod) + 1; in nextAnticipatedVSyncTimeFromLocked()
230 auto const ordinalRequest = (timePoint - zeroPoint + slope) / slope; in nextAnticipatedVSyncTimeFromLocked()
234 traceInt64If("VSP-timePoint", timePoint); in nextAnticipatedVSyncTimeFromLocked()
239 str << "prediction made from: " << timePoint << "prediction: " << prediction << " (+" in nextAnticipatedVSyncTimeFromLocked()
240 << prediction - timePoint << ") slope: " << slope << " intercept: " << intercept in nextAnticipatedVSyncTimeFromLocked()
246 LOG_ALWAYS_FATAL_IF(prediction < timePoint, "VSyncPredictor: model miscalculation: %s", in nextAnticipatedVSyncTimeFromLocked()
252 nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const { in nextAnticipatedVSyncTimeFrom()
254 return nextAnticipatedVSyncTimeFromLocked(timePoint); in nextAnticipatedVSyncTimeFrom()
[all …]
DVSyncPredictor.h43 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const final EXCLUDES(mMutex);
68 bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) const final EXCLUDES(mMutex);
90 nsecs_t nextAnticipatedVSyncTimeFromLocked(nsecs_t timePoint) const REQUIRES(mMutex);
DVSyncTracker.h53 virtual nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const = 0;
80 virtual bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) const = 0;
DLayerInfo.h188 const auto timePoint = std::chrono::nanoseconds(now); in onLayerInactive() local
189 mFrameTimeValidSince = std::chrono::time_point<std::chrono::steady_clock>(timePoint); in onLayerInactive()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_scheduler_fuzzer.h120 nsecs_t nextVSyncTime(nsecs_t timePoint) const { in nextVSyncTime() argument
121 if (timePoint % mPeriod == 0) { in nextVSyncTime()
122 return timePoint; in nextVSyncTime()
124 return (timePoint - (timePoint % mPeriod) + mPeriod); in nextVSyncTime()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp43 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const final { in nextAnticipatedVSyncTimeFrom()
44 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom()
46 return timePoint; in nextAnticipatedVSyncTimeFrom()
48 return timePoint - floor + mPeriod; in nextAnticipatedVSyncTimeFrom()
DVSyncPredictorTest.cpp372 auto const timePoint = 158929728723871; in TEST_F() local
373 auto const prediction = tracker.nextAnticipatedVSyncTimeFrom(timePoint); in TEST_F()
374 EXPECT_THAT(prediction, Ge(timePoint)); in TEST_F()
DVSyncDispatchTimerQueueTest.cpp58 nsecs_t nextVSyncTime(nsecs_t timePoint) const { in nextVSyncTime()
59 if (timePoint % mPeriod == 0) { in nextVSyncTime()
60 return timePoint; in nextVSyncTime()
62 return (timePoint - (timePoint % mPeriod) + mPeriod); in nextVSyncTime()
/frameworks/av/media/codec2/sfplugin/include/media/stagefright/
DCCodec.h183 const TimePoint &timePoint, in set()
185 mTimePoint = timePoint; in set()