Lines Matching refs:mNumResyncSamples
508 const size_t lastSampleIdx = (mFirstResyncSample + mNumResyncSamples - 1) % MAX_RESYNC_SAMPLES; in resetLocked()
518 mNumResyncSamples = 0; in resetLocked()
553 const size_t idx = (mFirstResyncSample + mNumResyncSamples) % MAX_RESYNC_SAMPLES; in addResyncSample()
555 if (mNumResyncSamples == 0) { in addResyncSample()
562 const size_t priorIdx = (mFirstResyncSample + mNumResyncSamples - 1) % MAX_RESYNC_SAMPLES; in addResyncSample()
586 if (mNumResyncSamples < MAX_RESYNC_SAMPLES) { in addResyncSample()
587 mNumResyncSamples++; in addResyncSample()
665 ALOGV("[%s] updateModelLocked %zu", mName, mNumResyncSamples); in updateModelLocked()
666 if (mNumResyncSamples >= MIN_RESYNC_SAMPLES_FOR_UPDATE) { in updateModelLocked()
677 for (size_t i = numSamplesSkipped; i < mNumResyncSamples; i++) { in updateModelLocked()
688 mPeriod = durationSum / (mNumResyncSamples - numSamplesSkipped - 2); in updateModelLocked()
695 for (size_t i = numSamplesSkipped; i < mNumResyncSamples; i++) { in updateModelLocked()
703 sampleAvgX /= double(mNumResyncSamples - numSamplesSkipped); in updateModelLocked()
704 sampleAvgY /= double(mNumResyncSamples - numSamplesSkipped); in updateModelLocked()
813 StringAppendF(&result, "mNumResyncSamples: %zd (max %d)\n", mNumResyncSamples, in dump()
818 for (size_t i = 0; i < mNumResyncSamples; i++) { in dump()