Home | History | Annotate | Download | only in surfaceflinger

Lines Matching defs:mPeriod

65             mPeriod(0),
76 mPeriod = period;
79 ALOGV("[%s] updateModel: mPeriod = %" PRId64 ", mPhase = %" PRId64
81 mName, ns2us(mPeriod), ns2us(mPhase), ns2us(mReferenceTime));
114 if (mPeriod == 0) {
188 listener.mLastEventTime = systemTime() - mPeriod / 2 + mPhase - mWakeupLatency;
276 nsecs_t onePeriodAgo = now - mPeriod;
314 // has since been updated), the division by mPeriod will truncate
317 // set baseTime to -mPeriod so that numPeriods will be -1.
322 baseTime = -mPeriod;
325 nsecs_t numPeriods = baseTime / mPeriod;
327 nsecs_t t = (numPeriods + 1) * mPeriod + phase;
334 if (t - listener.mLastEventTime < (3 * mPeriod / 5)) {
335 t += mPeriod;
356 nsecs_t mPeriod;
459 ALOGV("[%s] First resync sample: mPeriod = %" PRId64 ", mPhase = 0, "
461 mName, ns2us(mPeriod), ns2us(mReferenceTime));
462 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
519 mPeriod = period;
522 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
526 // lock mutex as mPeriod changes multiple times in updateModelLocked
528 return mPeriod;
549 mPeriod = durationSum / (mNumResyncSamples - 3);
551 ALOGV("[%s] mPeriod = %" PRId64, mName, ns2us(mPeriod));
555 double scale = 2.0 * M_PI / double(mPeriod);
560 double samplePhase = double(sample % mPeriod) * scale;
572 if (mPhase < -(mPeriod / 2)) {
573 mPhase += mPeriod;
578 ATRACE_INT64("DispSync:Period", mPeriod);
579 ATRACE_INT64("DispSync:Phase", mPhase + mPeriod / 2);
583 mPeriod += mPeriod * mRefreshSkipCount;
585 mThread->updateModel(mPeriod, mPhase, mReferenceTime);
597 nsecs_t period = mPeriod / (1 + mRefreshSkipCount);
654 return (((now - phase) / mPeriod) + periodOffset + 1) * mPeriod + phase;
660 result.appendFormat("mPeriod: %" PRId64 " ns (%.3f fps; skipCount=%d)\n", mPeriod,
661 1000000000.0 / mPeriod, mRefreshSkipCount);
698 presentTime - previous, (presentTime - previous) / (double)mPeriod,