Lines Matching refs:mPeriod
67 : mPeriod(-1), in PLL()
83 mPeriod = -1; in reset()
87 mPeriod = (nsecs_t)(1e9 / fps + 0.5); in reset()
257 mPeriod = delta; in prime()
261 ALOGV("priming[%zu] phase:%lld period:%lld", numSamplesToUse, mPhase, mPeriod); in prime()
276 if ((mPeriod <= 0 || !mPrimed) && mNumSamples >= kMinSamplesToStartPrime) { in addSample()
281 if (mPeriod > 0 && mNumSamples >= kMinSamplesToEstimatePeriod) { in addSample()
287 int64_t err = periodicError(time - mPhase, mPeriod); in addSample()
288 doFit = err > mPeriod / kReFitThresholdDiv; in addSample()
293 if (!fit(mPhase, mPeriod, kMaxSamplesToEstimatePeriod, &a, &b, &err)) { in addSample()
296 ALOGV("could not fit - keeping old period:%lld", (long long)mPeriod); in addSample()
297 return mPeriod; in addSample()
302 mPhase += (mPeriod * b) >> kPrecision; in addSample()
303 mPeriod = (mPeriod * a) >> kPrecision; in addSample()
304 ALOGV("new phase:%lld period:%lld", (long long)mPhase, (long long)mPeriod); in addSample()
316 return mPeriod; in addSample()