Home
last modified time | relevance | path

Searched refs:bufferSizeInBytes (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/systemui/AudioRecorderTestApp_AudioRecord/src/android/systemui/cts/audiorecorder/audiorecord/
DAudioRecorderService.java51 … final int bufferSizeInBytes = 2 * AudioRecord.getMinBufferSize(sampleRate, channelConfig, in run() local
61 .setBufferSizeInBytes(bufferSizeInBytes) in run()
67 final short[] data = new short[bufferSizeInBytes / 2]; in run()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrack_ListenerTest.java97 final int bufferSizeInBytes; in doTest() local
100 bufferSizeInBytes = minBuffSize * TEST_BUFFER_FACTOR; in doTest()
101 mFrameCount = bufferSizeInBytes * TEST_LOOP_FACTOR; in doTest()
103 bufferSizeInBytes = minBuffSize * TEST_BUFFER_FACTOR * TEST_LOOP_FACTOR; in doTest()
104 mFrameCount = bufferSizeInBytes; in doTest()
112 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
120 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
135 bufferSizeInBytes, TEST_SR, 1024 /* frequency */, 0 /* sweep */); in doTest()
DLoudnessCodecControllerTest.java364 final int bufferSizeInBytes = in createAndStartAudioTrack() local
374 .setBufferSizeInBytes(bufferSizeInBytes) in createAndStartAudioTrack()
383 short[] data = new short[bufferSizeInBytes / Short.BYTES]; in createAndStartAudioTrack()
DAudioRecordTest.java1011 int channelConfig, int audioFormat, int bufferSizeInBytes, in createAudioRecord() argument
1017 audioFormat, bufferSizeInBytes, isChannelIndex); in createAudioRecord()
1025 .setBufferSizeInBytes(bufferSizeInBytes) in createAudioRecord()
1029 audioFormat, bufferSizeInBytes); in createAudioRecord()
1043 assertTrue(record.getBufferSizeInFrames() * frameSize >= bufferSizeInBytes); in createAudioRecord()
1072 final int bufferSizeInBytes = isChannelIndex ? in doTest() local
1077 .that(bufferSizeInBytes) in doTest()
1087 TEST_FORMAT, bufferSizeInBytes, auditRecording, isChannelIndex); in doTest()
1095 TEST_FORMAT, bufferSizeInBytes, auditRecording, in doTest()
DAudioTrackTest.java2310 final int bufferSizeInBytes = minBuffSize * 100; in testVariableRatePlayback() local
2314 final int frameCount = bufferSizeInBytes / bytesPerFrame; in testVariableRatePlayback()
2317 TEST_FORMAT, bufferSizeInBytes, TEST_MODE); in testVariableRatePlayback()
2320 byte[] vai = AudioHelper.createSoundDataInByteArray(bufferSizeInBytes, TEST_SR, in testVariableRatePlayback()
2383 final int bufferSizeInBytes = frameCount * bytesPerFrame; in testStopDrain() local
2386 TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, bufferSizeInBytes, TEST_MODE); in testStopDrain()
2391 bufferSizeInBytes * 2, TEST_SR, 600 /* frequency */, 0 /* sweep */); in testStopDrain()
2393 bufferSizeInBytes, in testStopDrain()
2394 track.write(soundData, 0 /* offsetInBytes */, bufferSizeInBytes)); in testStopDrain()
2421 assertEquals("stop drain must be limited " + bufferSizeInBytes + " != " + length, in testStopDrain()
[all …]
DAudioTrackOffloadTest.java280 int bufferSizeInBytes = bitRateInkbps * 1000 * BUFFER_SIZE_SEC / 8; in getOffloadAudioTrack() local
286 .setBufferSizeInBytes(bufferSizeInBytes) in getOffloadAudioTrack()
DAudioPlaybackConfigurationTest.java801 final int bufferSizeInBytes = in initializeAudioTrack() local
805 ByteBuffer audioData = createSoundDataInShortByteBuffer(bufferSizeInBytes, in initializeAudioTrack()
821 .setBufferSizeInBytes(bufferSizeInBytes) in initializeAudioTrack()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/
DRecorder.java89 int bufferSizeInBytes = in calcMinBufferFramesStatic() local
93 return bufferSizeInBytes / sampleSizeInBytes(AudioFormat.ENCODING_PCM_FLOAT); in calcMinBufferFramesStatic()
/cts/tests/tests/media/audio/modules/audiorecordpermissiontests/lib/src/android/media/audio/cts/audiorecordpermissiontests/common/
DRecordService.kt117 val bufferSizeInBytes = 2 * AudioRecord.getMinBufferSize(sampleRate, channelConfig, in record() constant
126 .setBufferSizeInBytes(bufferSizeInBytes) in record()
131 val data = ShortArray(bufferSizeInBytes / 2) in record()
/cts/tests/tests/media/audio/jni/
DAudioRecorder.cpp235 int bufferSizeInBytes = numBufferSamples_ * sizeof(float); in enqueueBuffer() local
237 result = (*recBuffQueueItf_)->Enqueue(recBuffQueueItf_, recBuffer, bufferSizeInBytes); in enqueueBuffer()