Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java29 short[] shortData = new short[byteData.length >> 1]; in WavAnalyzer() local
30 ByteBuffer.wrap(byteData).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shortData); in WavAnalyzer()
31 this.data = Util.toDouble(shortData); in WavAnalyzer()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java215 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() local
221 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP()
575 final short[] shortData = new short[BUFFER_SAMPLES]; in testTimestamp() local
582 final int ret = record.read(shortData, 0, amount); in testTimestamp()
791 short[] shortData = new short[BUFFER_SAMPLES]; in testSynchronizedRecord() local
797 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord()
1246 short[] shortData = new short[BUFFER_SAMPLES]; in doTest() local
1252 int ret = blocking ? record.read(shortData, 0, amount) : in doTest()
1253 record.read(shortData, 0, amount, AudioRecord.READ_NON_BLOCKING); in doTest()
DAudioTrackSurroundTest.java193 short[] shortData = loadRawResourceShorts(R.raw.sinesweepraw); in testLoadSineSweep() local
194 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep()
196 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_callback.cpp231 int16_t *shortData = (int16_t *) audioData; in MyDataCallbackProc() local
232 for (int i = 0; i < numSamples; i++) *shortData++ = 0; in MyDataCallbackProc()
/cts/tests/media/src/android/mediav2/cts/
DCodecTestBase.java396 short[] shortData = new short[memory.length / 2]; in getRmsError() local
397 ByteBuffer.wrap(memory).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shortData); in getRmsError()
398 if (refData.length != shortData.length) return Float.MAX_VALUE; in getRmsError()
399 for (int i = 0; i < shortData.length; i++) { in getRmsError()
400 int d = shortData[i] - refData[i]; in getRmsError()
403 long avgErrorSquared = (totalErrorSquared / shortData.length); in getRmsError()