Lines Matching defs:mPeriod
57 mPeriod(0),
66 mPeriod = period;
94 if (mPeriod == 0) {
165 listener.mLastEventTime = systemTime(SYSTEM_TIME_MONOTONIC) - mPeriod / 2;
223 nsecs_t ref = now - mPeriod;
250 nsecs_t t = (((ref - phase) / mPeriod) + 1) * mPeriod + phase;
252 if (t - listener.mLastEventTime < mPeriod / 2) {
253 t += mPeriod;
267 nsecs_t mPeriod;
343 return mPeriod == 0 || mError > kErrorThreshold;
379 return mPeriod == 0 || mError > kErrorThreshold;
406 mPeriod = period;
408 mThread->updateModel(mPeriod, mPhase);
412 // lock mutex as mPeriod changes multiple times in updateModelLocked
414 return mPeriod;
426 mPeriod = durationSum / (mNumResyncSamples - 1);
430 double scale = 2.0 * M_PI / double(mPeriod);
434 double samplePhase = double(sample % mPeriod) * scale;
445 mPhase += mPeriod;
449 ATRACE_INT64("DispSync:Period", mPeriod);
454 mPeriod += mPeriod * mRefreshSkipCount;
456 mThread->updateModel(mPeriod, mPhase);
461 if (mPeriod == 0) {
467 nsecs_t period = mPeriod / (1 + mRefreshSkipCount);
507 return (((now - mPhase) / mPeriod) + periodOffset + 1) * mPeriod + mPhase;
514 result.appendFormat("mPeriod: %" PRId64 " ns (%.3f fps; skipCount=%d)\n",
515 mPeriod, 1000000000.0 / mPeriod, mRefreshSkipCount);
556 (presentTime - previous) / (double) mPeriod,