Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp204 nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFromLocked(nsecs_t timePoint) const { in nextAnticipatedVSyncTimeFromLocked()
209 auto const knownTimestamp = mKnownTimestamp ? *mKnownTimestamp : timePoint; in nextAnticipatedVSyncTimeFromLocked()
210 auto const numPeriodsOut = ((timePoint - knownTimestamp) / mIdealPeriod) + 1; in nextAnticipatedVSyncTimeFromLocked()
218 auto const ordinalRequest = (timePoint - zeroPoint + slope) / slope; in nextAnticipatedVSyncTimeFromLocked()
222 traceInt64If("VSP-timePoint", timePoint); in nextAnticipatedVSyncTimeFromLocked()
227 str << "prediction made from: " << timePoint << "prediction: " << prediction << " (+" in nextAnticipatedVSyncTimeFromLocked()
228 << prediction - timePoint << ") slope: " << slope << " intercept: " << intercept in nextAnticipatedVSyncTimeFromLocked()
234 LOG_ALWAYS_FATAL_IF(prediction < timePoint, "VSyncPredictor: model miscalculation: %s", in nextAnticipatedVSyncTimeFromLocked()
240 nsecs_t VSyncPredictor::nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const { in nextAnticipatedVSyncTimeFrom()
242 return nextAnticipatedVSyncTimeFromLocked(timePoint); in nextAnticipatedVSyncTimeFrom()
[all …]
DVSyncPredictor.h42 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const final EXCLUDES(mMutex);
67 bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) const final EXCLUDES(mMutex);
89 nsecs_t nextAnticipatedVSyncTimeFromLocked(nsecs_t timePoint) const REQUIRES(mMutex);
DVSyncTracker.h51 virtual nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const = 0;
78 virtual bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) const = 0;
DLayerInfo.h186 const auto timePoint = std::chrono::nanoseconds(now); in onLayerInactive() local
187 mFrameTimeValidSince = std::chrono::time_point<std::chrono::steady_clock>(timePoint); in onLayerInactive()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp42 nsecs_t nextAnticipatedVSyncTimeFrom(nsecs_t timePoint) const final { in nextAnticipatedVSyncTimeFrom()
43 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom()
45 return timePoint; in nextAnticipatedVSyncTimeFrom()
47 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.cpp55 nsecs_t nextVSyncTime(nsecs_t timePoint) const { in nextVSyncTime()
56 if (timePoint % mPeriod == 0) { in nextVSyncTime()
57 return timePoint; in nextVSyncTime()
59 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()