Home
last modified time | relevance | path

Searched refs:numSamples (Results 1 – 13 of 13) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DCircularBufferFloat.java26 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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/
DTapLatencyAnalyzer.java51 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/
DNoiseAudioSource.cpp27 int numSamples = numFrames * numChans; in pull() local
28 for(int index = 0; index < numSamples; index++) { in pull()
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/
DAudioInjector.java110 static ByteBuffer createAudioData(int samplingRate, int numSamples, int channelCount, in createAudioData() argument
113 ByteBuffer.allocateDirect(numSamples * 2).order(ByteOrder.nativeOrder()); in createAudioData()
115 for (int i = 0; i < numSamples; ) { in createAudioData()
/cts/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.cpp21 int32_t numSamples) { in convertPcm16ToFloat() argument
23 for (int i = 0; i < numSamples; i++) { in convertPcm16ToFloat()
157 int32_t numSamples = actualFramesRead * mActualInputChannelCount; in dataCallbackProc() local
160 convertPcm16ToFloat(mInputShortData, mInputFloatData, numSamples); in dataCallbackProc()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0650/
Dpoc.c65 pWTIntFrame.numSamples = 1; in main()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsample.rscript74 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/
DCodecPerformanceTestBase.java283 int numSamples = width * height; in getMaxExpectedFps() local
284 if (numSamples > 3840 * 2160 * 2) { // 8K in getMaxExpectedFps()
286 } else if (numSamples > 1920 * 1088 * 2) { // 4K in getMaxExpectedFps()
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DLatencyAnalyzer.h92 static double calculateRootMeanSquare(float *data, int32_t numSamples) { in calculateRootMeanSquare() argument
94 for (int32_t i = 0; i < numSamples; i++) { in calculateRootMeanSquare()
98 return sqrt(sum / numSamples); in calculateRootMeanSquare()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_callback.cpp381 int32_t numSamples = channelCount * numFrames; in MyDataCallbackProc() local
384 for (int i = 0; i < numSamples; i++) *shortData++ = 0; in MyDataCallbackProc()
387 for (int i = 0; i < numSamples; i++) *floatData++ = 0.0f; in MyDataCallbackProc()
/cts/tests/media/jni/
DNativeMuxerTest.cpp85 bool writeAFewSamplesDataFromTime(AMediaMuxer* muxer, int64_t* fromTime, uint32_t numSamples,
93 uint32_t numSamples, bool lastSplit);
285 uint32_t numSamples, bool lastSplit) { in writeAFewSamplesDataFromTime() argument
289 ALOGV("numSamples:%u", numSamples); in writeAFewSamplesDataFromTime()
314 : ((samplesWritten < numSamples) && (i < mTrackIdxOrder.size()))); in writeAFewSamplesDataFromTime()
362 uint32_t numSamples, bool lastSplit) { in appendMediaFromTime() argument
384 bool res = writeAFewSamplesDataFromTime(muxer, appendFromTime, numSamples, lastSplit); in appendMediaFromTime()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioTap2ToneActivity.java461 int numSamples = (int) (sampleRate * ANALYSIS_TIME_TOTAL); in analyzeCapturedAudio() local
462 float[] buffer = new float[numSamples]; in analyzeCapturedAudio()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java333 protected abstract int writeBlock(int numSamples); in writeBlock() argument