Home | History | Annotate | Download | only in surfaceflinger

Lines Matching refs:mPeriod

70             mPeriod(0),
81 mPeriod = period;
84 ALOGV("[%s] updateModel: mPeriod = %" PRId64 ", mPhase = %" PRId64
85 " mReferenceTime = %" PRId64, mName, ns2us(mPeriod),
119 if (mPeriod == 0) {
198 listener.mLastEventTime = systemTime() - mPeriod / 2 + mPhase -
267 nsecs_t onePeriodAgo = now - mPeriod;
309 // has since been updated), the division by mPeriod will truncate
312 // set baseTime to -mPeriod so that numPeriods will be -1.
317 baseTime = -mPeriod;
320 nsecs_t numPeriods = baseTime / mPeriod;
322 nsecs_t t = (numPeriods + 1) * mPeriod + phase;
329 if (t - listener.mLastEventTime < (3 * mPeriod / 5)) {
330 t += mPeriod;
351 nsecs_t mPeriod;
464 ALOGV("[%s] First resync sample: mPeriod = %" PRId64 ", mPhase = 0, "
465 "mReferenceTime = %" PRId64, mName, ns2us(mPeriod),
467 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
522 mPeriod = period;
525 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
529 // lock mutex as mPeriod changes multiple times in updateModelLocked
531 return mPeriod;
552 mPeriod = durationSum / (mNumResyncSamples - 3);
554 ALOGV("[%s] mPeriod = %" PRId64, mName, ns2us(mPeriod));
558 double scale = 2.0 * M_PI / double(mPeriod);
563 double samplePhase = double(sample % mPeriod) * scale;
575 if (mPhase < -(mPeriod / 2)) {
576 mPhase += mPeriod;
581 ATRACE_INT64("DispSync:Period", mPeriod);
582 ATRACE_INT64("DispSync:Phase", mPhase + mPeriod / 2);
586 mPeriod += mPeriod * mRefreshSkipCount;
588 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
600 nsecs_t period = mPeriod / (1 + mRefreshSkipCount);
641 return (((now - phase) / mPeriod) + periodOffset + 1) * mPeriod + phase;
648 result.appendFormat("mPeriod: %" PRId64 " ns (%.3f fps; skipCount=%d)\n",
649 mPeriod, 1000000000.0 / mPeriod, mRefreshSkipCount);
690 (presentTime - previous) / (double) mPeriod,