Searched refs:sampleAvgX (Results 1 – 2 of 2) sorted by relevance
146 double sampleAvgX = 0.0; in updateModelLocked() local154 sampleAvgX += cos(samplePhase); in updateModelLocked()158 sampleAvgX /= (double) mNumSamples - 1.0; in updateModelLocked()160 mPhase = (long) (atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()
680 double sampleAvgX = 0; in updateModelLocked() local688 sampleAvgX += cos(samplePhase); in updateModelLocked()692 sampleAvgX /= double(mNumResyncSamples - 1); in updateModelLocked()695 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()