Home
last modified time | relevance | path

Searched refs:halfMagnitude (Results 1 – 3 of 3) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencySpeakerActivity.java677 double[] halfMagnitude = new double[mBlockSizeSamples / 2]; in onPeriodicNotification() local
679 halfMagnitude[i] = Math.sqrt(mC.mReal[i] * mC.mReal[i] + mC.mImag[i] * mC.mImag[i]); in onPeriodicNotification()
682 mFreqAverageMain.setData(halfMagnitude, false); //average all of them! in onPeriodicNotification()
686 mFreqAverageBase.setData(halfMagnitude, false); in onPeriodicNotification()
689 mFreqAverageLeft.setData(halfMagnitude, false); in onPeriodicNotification()
692 mFreqAverageRight.setData(halfMagnitude, false); in onPeriodicNotification()
DAudioFrequencyMicActivity.java785 double[] halfMagnitude = new double[mBlockSizeSamples / 2]; in onPeriodicNotification() local
787 halfMagnitude[i] = Math.sqrt(mC.mReal[i] * mC.mReal[i] + mC.mImag[i] * mC.mImag[i]); in onPeriodicNotification()
790 mFreqAverageMain.setData(halfMagnitude, false); //average all of them! in onPeriodicNotification()
794 mFreqAverageBase.setData(halfMagnitude, false); in onPeriodicNotification()
797 mFreqAverageBuiltIn.setData(halfMagnitude, false); in onPeriodicNotification()
800 mFreqAverageReference.setData(halfMagnitude, false); in onPeriodicNotification()
DAudioFrequencyLineActivity.java628 double[] halfMagnitude = new double[mBlockSizeSamples / 2]; in onPeriodicNotification() local
630 halfMagnitude[i] = Math.sqrt(mC.mReal[i] * mC.mReal[i] + mC.mImag[i] * mC.mImag[i]); in onPeriodicNotification()
633 mFreqAverageMain.setData(halfMagnitude, false); //average all of them! in onPeriodicNotification()
637 mFreqAverage0.setData(halfMagnitude, false); in onPeriodicNotification()
640 mFreqAverage1.setData(halfMagnitude, false); in onPeriodicNotification()