Lines Matching refs:baseTime
92 const nsecs_t baseTime = now - mReferenceTime; in updateModel() local
93 const nsecs_t numOldPeriods = baseTime / mPeriod; in updateModel()
237 const nsecs_t baseTime = now - mReferenceTime; in addEventListener() local
238 const nsecs_t numPeriodsSinceReference = baseTime / mPeriod; in addEventListener()
387 nsecs_t computeListenerNextEventTimeLocked(const EventListener& listener, nsecs_t baseTime) { in computeListenerNextEventTimeLocked() argument
390 ns2us(baseTime)); in computeListenerNextEventTimeLocked()
394 if (baseTime < lastEventTime) { in computeListenerNextEventTimeLocked()
395 baseTime = lastEventTime; in computeListenerNextEventTimeLocked()
396 ALOGV("[%s] Clamping baseTime to lastEventTime -> %" PRId64, mName, ns2us(baseTime)); in computeListenerNextEventTimeLocked()
399 baseTime -= mReferenceTime; in computeListenerNextEventTimeLocked()
400 ALOGV("[%s] Relative baseTime = %" PRId64, mName, ns2us(baseTime)); in computeListenerNextEventTimeLocked()
403 baseTime -= phase; in computeListenerNextEventTimeLocked()
404 ALOGV("[%s] baseTime - phase = %" PRId64, mName, ns2us(baseTime)); in computeListenerNextEventTimeLocked()
413 if (baseTime < 0) { in computeListenerNextEventTimeLocked()
415 baseTime = -mPeriod; in computeListenerNextEventTimeLocked()
418 nsecs_t numPeriods = baseTime / mPeriod; in computeListenerNextEventTimeLocked()