Searched refs:shortData (Results 1 – 6 of 6) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | WavAnalyzer.java | 29 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/ |
D | MediaSyncEventTest.java | 140 short[] shortData = new short[BUFFER_SAMPLES]; in testSynchronizedRecord() local 146 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord()
|
D | AudioTrackSurroundTest.java | 202 short[] shortData = loadRawResourceShorts("sinesweepraw.raw"); in testLoadSineSweep() local 203 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep() 205 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep()
|
D | AudioRecordTest.java | 222 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() local 228 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP() 627 final short[] shortData = new short[BUFFER_SAMPLES]; in testTimestamp() local 635 final int ret = record.read(shortData, 0, amount); in testTimestamp() 1193 short[] shortData = new short[BUFFER_SAMPLES]; in doTest() local 1199 int ret = blocking ? record.read(shortData, 0, amount) : in doTest() 1200 record.read(shortData, 0, amount, AudioRecord.READ_NON_BLOCKING); in doTest()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_callback.cpp | 334 int16_t *shortData = (int16_t *) audioData; in MyDataCallbackProc() local 335 for (int i = 0; i < numSamples; i++) *shortData++ = 0; in MyDataCallbackProc()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 437 short[] shortData = new short[memIndex / 2]; in getRmsError() local 439 .get(shortData); in getRmsError() 440 if (refData.length != shortData.length) return Float.MAX_VALUE; in getRmsError() 441 for (int i = 0; i < shortData.length; i++) { in getRmsError() 442 int d = shortData[i] - refData[i]; in getRmsError() 445 long avgErrorSquared = (totalErrorSquared / shortData.length); in getRmsError()
|