/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | CircularBufferFloat.java | 26 public CircularBufferFloat(int numSamples) { in CircularBufferFloat() argument 27 mData = new float[numSamples]; in CircularBufferFloat() 46 public int write(float[] buffer, int offset, int numSamples) { in write() argument 47 if (numSamples > mData.length) { in write() 50 if ((mCursor + numSamples) > mData.length) { in write() 55 int numWrite2 = numSamples - numWrite1; in write() 59 System.arraycopy(buffer, offset, mData, mCursor, numSamples); in write() 60 mCursor += numSamples; in write() 65 mNumValidSamples += numSamples; in write() 69 return numSamples; in write() [all …]
|
D | TapLatencyAnalyser.java | 51 public TapLatencyEvent[] analyze(float[] buffer, int offset, int numSamples) { in analyze() argument 53 mHighPassBuffer = new float[numSamples]; in analyze() 54 highPassFilter(buffer, offset, numSamples, mHighPassBuffer); in analyze() 55 float[] peakBuffer = new float[numSamples]; in analyze() 56 fillPeakBuffer(mHighPassBuffer, 0, numSamples, peakBuffer); in analyze() 57 return scanForEdges(peakBuffer, numSamples); in analyze() 68 private void highPassFilter(float[] buffer, int offset, int numSamples, in highPassFilter() argument 73 for (int i = 0; i < numSamples; i++) { in highPassFilter() 82 private TapLatencyEvent[] scanForEdges(float[] peakBuffer, int numSamples) { in scanForEdges() argument 106 private void fillPeakBuffer(float[] buffer, int offset, int numSamples, float[] peakBuffer) { in fillPeakBuffer() argument [all …]
|
/cts/apps/CtsVerifier/jni/megaaudio/player/ |
D | NoiseAudioSource.cpp | 27 int numSamples = numFrames * numChans; in pull() local 28 for(int index = 0; index < numSamples; index++) { in pull()
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
D | NativeAudioAnalyzer.cpp | 21 int32_t numSamples) { in convertPcm16ToFloat() argument 23 for (int i = 0; i < numSamples; i++) { in convertPcm16ToFloat() 145 int32_t numSamples = actualFramesRead * mActualInputChannelCount; in dataCallbackProc() local 148 convertPcm16ToFloat(mInputShortData, mInputFloatData, numSamples); in dataCallbackProc()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | sample.rscript | 74 uint32_t numSamples = 5; 75 for (uint32_t i = 0; i < numSamples; i ++) { 76 float location = (float)i/(float)(numSamples - 1);
|
/cts/tests/video/src/android/video/cts/ |
D | CodecPerformanceTestBase.java | 260 int numSamples = width * height; in getMaxExpectedFps() local 261 if (numSamples > 3840 * 2160 * 2) { // 8K in getMaxExpectedFps() 263 } else if (numSamples > 1920 * 1088 * 2) { // 4K in getMaxExpectedFps()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_callback.cpp | 332 int32_t numSamples = channelCount * numFrames; in MyDataCallbackProc() local 335 for (int i = 0; i < numSamples; i++) *shortData++ = 0; in MyDataCallbackProc() 338 for (int i = 0; i < numSamples; i++) *floatData++ = 0.0f; in MyDataCallbackProc()
|
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | LatencyAnalyzer.h | 83 static double calculateRootMeanSquare(float *data, int32_t numSamples) { in calculateRootMeanSquare() argument 85 for (int32_t i = 0; i < numSamples; i++) { in calculateRootMeanSquare() 89 return sqrt(sum / numSamples); in calculateRootMeanSquare()
|
/cts/tests/media/jni/ |
D | NativeMuxerTest.cpp | 86 uint32_t numSamples, bool lastSplit); 93 uint32_t numSamples, bool lastSplit); 285 uint32_t numSamples, bool lastSplit) { in writeAFewSamplesDataFromTime() argument 289 ALOGV("numSamples:%u", numSamples); in writeAFewSamplesDataFromTime() 313 } while ((lastSplit) ? (i < mTrackIdxOrder.size()) : ((samplesWritten < numSamples) && in writeAFewSamplesDataFromTime() 363 uint32_t numSamples, bool lastSplit) { in appendMediaFromTime() argument 385 bool res = writeAFewSamplesDataFromTime(muxer, appendFromTime, numSamples, lastSplit); in appendMediaFromTime()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioTap2ToneActivity.java | 370 int numSamples = (int) (sampleRate * ANALYSIS_TIME_TOTAL); in analyzeCapturedAudio() local 371 float[] buffer = new float[numSamples]; in analyzeCapturedAudio()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackSurroundTest.java | 348 protected abstract int writeBlock(int numSamples); in writeBlock() argument
|