Lines Matching refs:mPeriod
57 mPeriod(0), in DispSyncThread()
66 mPeriod = period; in updateModel()
94 if (mPeriod == 0) { in threadLoop()
165 listener.mLastEventTime = systemTime(SYSTEM_TIME_MONOTONIC) - mPeriod / 2; in addEventListener()
223 nsecs_t ref = now - mPeriod; in gatherCallbackInvocationsLocked()
250 nsecs_t t = (((ref - phase) / mPeriod) + 1) * mPeriod + phase; in computeListenerNextEventTimeLocked()
252 if (t - listener.mLastEventTime < mPeriod / 2) { in computeListenerNextEventTimeLocked()
253 t += mPeriod; in computeListenerNextEventTimeLocked()
267 nsecs_t mPeriod; member in android::DispSyncThread
343 return mPeriod == 0 || mError > kErrorThreshold; in addPresentFence()
379 return mPeriod == 0 || mError > kErrorThreshold; in addResyncSample()
406 mPeriod = period; in setPeriod()
408 mThread->updateModel(mPeriod, mPhase); in setPeriod()
414 return mPeriod; in getPeriod()
426 mPeriod = durationSum / (mNumResyncSamples - 1); in updateModelLocked()
430 double scale = 2.0 * M_PI / double(mPeriod); in updateModelLocked()
434 double samplePhase = double(sample % mPeriod) * scale; in updateModelLocked()
445 mPhase += mPeriod; in updateModelLocked()
449 ATRACE_INT64("DispSync:Period", mPeriod); in updateModelLocked()
454 mPeriod += mPeriod * mRefreshSkipCount; in updateModelLocked()
456 mThread->updateModel(mPeriod, mPhase); in updateModelLocked()
461 if (mPeriod == 0) { in updateErrorLocked()
467 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); in updateErrorLocked()
507 return (((now - mPhase) / mPeriod) + periodOffset + 1) * mPeriod + mPhase; in computeNextRefresh()
515 mPeriod, 1000000000.0 / mPeriod, mRefreshSkipCount); in dump()
556 (presentTime - previous) / (double) mPeriod, in dump()