Home
last modified time | relevance | path

Searched refs:shortData (Results 1 – 6 of 6) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java31 short[] shortData = new short[byteData.length >> 1]; in WavAnalyzer() local
32 ByteBuffer.wrap(byteData).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shortData); in WavAnalyzer()
33 this.data = Util.toDouble(shortData); in WavAnalyzer()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DMediaSyncEventTest.java168 short[] shortData = new short[BUFFER_SAMPLES]; in testSynchronizedRecord() local
174 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord()
DAudioTrackSurroundTest.java187 short[] shortData = loadRawResourceShorts(R.raw.sinesweepraw); in testLoadSineSweep() local
188 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep()
190 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep()
DAudioRecordTest.java231 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() local
237 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP()
726 final short[] shortData = new short[BUFFER_SAMPLES]; in testTimestamp() local
734 final int ret = record.read(shortData, 0, amount); in testTimestamp()
1183 final short[] shortData = new short[BUFFER_SAMPLES]; in doTest() local
1215 return blockForData ? record.read(shortData, 0, samples) : in doTest()
1216 record.read(shortData, 0, samples, in doTest()
/cts/tests/media/common/src/android/mediav2/common/cts/
DOutputManager.java426 short[] shortData = new short[refData.length]; in getRmsError() local
428 .get(shortData); in getRmsError()
429 for (int i = 0; i < shortData.length; i++) { in getRmsError()
430 float d = shortData[i] - refData[i]; in getRmsError()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_callback.cpp383 int16_t *shortData = (int16_t *) audioData; in MyDataCallbackProc() local
384 for (int i = 0; i < numSamples; i++) *shortData++ = 0; in MyDataCallbackProc()