• Home
  • Raw
  • Download

Lines Matching refs:nsecs_t

56 static const nsecs_t kErrorThreshold = 160000000000;    // 400 usec squared
74 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { in updateModel()
95 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in threadLoop()
100 nsecs_t targetTime = 0; in threadLoop()
153 static const nsecs_t kMaxWakeupLatency = us2ns(1500); in threadLoop()
176 status_t addEventListener(const char* name, nsecs_t phase, in addEventListener()
231 nsecs_t mPhase;
232 nsecs_t mLastEventTime;
238 nsecs_t mEventTime;
241 nsecs_t computeNextEventTimeLocked(nsecs_t now) { in computeNextEventTimeLocked()
244 nsecs_t nextEventTime = INT64_MAX; in computeNextEventTimeLocked()
246 nsecs_t t = computeListenerNextEventTimeLocked(mEventListeners[i], in computeNextEventTimeLocked()
258 Vector<CallbackInvocation> gatherCallbackInvocationsLocked(nsecs_t now) { in gatherCallbackInvocationsLocked()
264 nsecs_t onePeriodAgo = now - mPeriod; in gatherCallbackInvocationsLocked()
267 nsecs_t t = computeListenerNextEventTimeLocked(mEventListeners[i], in gatherCallbackInvocationsLocked()
284 nsecs_t computeListenerNextEventTimeLocked(const EventListener& listener, in computeListenerNextEventTimeLocked()
285 nsecs_t baseTime) { in computeListenerNextEventTimeLocked()
290 nsecs_t lastEventTime = listener.mLastEventTime + mWakeupLatency; in computeListenerNextEventTimeLocked()
300 nsecs_t phase = mPhase + listener.mPhase; in computeListenerNextEventTimeLocked()
317 nsecs_t numPeriods = baseTime / mPeriod; in computeListenerNextEventTimeLocked()
319 nsecs_t t = (numPeriods + 1) * mPeriod + phase; in computeListenerNextEventTimeLocked()
348 nsecs_t mPeriod;
349 nsecs_t mPhase;
350 nsecs_t mReferenceTime;
351 nsecs_t mWakeupLatency;
368 virtual void onDispSyncEvent(nsecs_t /*when*/) { in onDispSyncEvent() argument
443 bool DispSync::addResyncSample(nsecs_t timestamp) { in addResyncSample()
491 status_t DispSync::addEventListener(const char* name, nsecs_t phase, in addEventListener()
509 void DispSync::setPeriod(nsecs_t period) { in setPeriod()
517 nsecs_t DispSync::getPeriod() { in getPeriod()
527 nsecs_t durationSum = 0; in updateModelLocked()
528 nsecs_t minDuration = INT64_MAX; in updateModelLocked()
529 nsecs_t maxDuration = 0; in updateModelLocked()
533 nsecs_t duration = mResyncSamples[idx] - mResyncSamples[prev]; in updateModelLocked()
551 nsecs_t sample = mResyncSamples[idx] - mReferenceTime; in updateModelLocked()
560 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()
589 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); in updateErrorLocked()
592 nsecs_t sqErrSum = 0; in updateErrorLocked()
599 nsecs_t time = mPresentFences[i]->getCachedSignalTime(); in updateErrorLocked()
605 nsecs_t sample = time - mReferenceTime; in updateErrorLocked()
610 nsecs_t sampleErr = (sample - mPhase) % period; in updateErrorLocked()
644 nsecs_t DispSync::computeNextRefresh(int periodOffset) const { in computeNextRefresh()
646 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in computeNextRefresh()
647 nsecs_t phase = mReferenceTime + mPhase; in computeNextRefresh()
666 nsecs_t previous = -1; in dump()
669 nsecs_t sampleTime = mResyncSamples[idx]; in dump()
681 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in dump()
685 nsecs_t presentTime = mPresentFences[idx]->getSignalTime(); in dump()