Home
last modified time | relevance | path

Searched refs:audioBuffer (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java113 ByteBuffer audioBuffer = ByteBuffer.allocate(bufferSamples * Short.BYTES); in createSoundDataInShortByteBuffer() local
114 ShortBuffer samples = audioBuffer.order(ByteOrder.nativeOrder()).asShortBuffer(); in createSoundDataInShortByteBuffer()
121 audioBuffer.rewind(); in createSoundDataInShortByteBuffer()
122 return audioBuffer; in createSoundDataInShortByteBuffer()
654 public int read(ByteBuffer audioBuffer, int sizeInBytes) { in read() argument
655 int bytes = super.read(audioBuffer, sizeInBytes); in read()
660 ByteBuffer copy = audioBuffer.duplicate(); in read()
670 public int read(ByteBuffer audioBuffer, int sizeInBytes, int readMode) { in read() argument
671 int bytes = super.read(audioBuffer, sizeInBytes, readMode); in read()
676 ByteBuffer copy = audioBuffer.duplicate(); in read()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaSyncTest.java815 AudioBuffer audioBuffer = mAudioBuffers.get(0); in checkReturnedAudioBuffer() local
816 if (audioBuffer.mByteBuffer != byteBuffer in checkReturnedAudioBuffer()
817 || audioBuffer.mBufferIndex != bufferIndex) { in checkReturnedAudioBuffer()