Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackTest.java459 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testPlaybackHeadPositionAfterInit() local
464 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterInit()
465 AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT), TEST_MODE); in testPlaybackHeadPositionAfterInit()
480 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testPlaybackHeadPositionIncrease() local
485 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionIncrease()
486 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionIncrease()
508 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testPlaybackHeadPositionAfterFlush() local
513 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionAfterFlush()
514 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterFlush()
538 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testPlaybackHeadPositionAfterStop() local
[all …]
DAudioTrackLatencyTest.java76 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testSetBufferSize() local
81 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testSetBufferSize()
82 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testSetBufferSize()
274 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in createCustomAudioTrack() local
278 int bufferSizeBytes = 2 * AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in createCustomAudioTrack()
288 .setEncoding(TEST_FORMAT) in createCustomAudioTrack()
387 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testGetUnderrunCount() local
401 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testGetUnderrunCount()
403 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testGetUnderrunCount()
504 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_16BIT; in testGetUnderrunCountSleep() local
[all …]
DAudioTrack_ListenerTest.java39 private final static int TEST_FORMAT = AudioFormat.ENCODING_PCM_8BIT; field in AudioTrack_ListenerTest
85 final int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest()
101 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
109 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
157 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest()
DAudioRecordTest.java1062 final int TEST_SR, final int TEST_CONF, final int TEST_FORMAT) throws Exception { in doTest() argument
1066 TEST_SR, TEST_CONF, TEST_FORMAT, TEST_TIME_MS); in doTest()
1072 final int TEST_SR, final int TEST_CONF, final int TEST_FORMAT, final int TEST_TIME_MS) in doTest() argument
1084 (AudioFormat.getBytesPerSample(TEST_FORMAT) in doTest()
1086 AudioRecord.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest()
1096 TEST_FORMAT, bufferSizeInBytes, auditRecording, isChannelIndex); in doTest()
1104 TEST_FORMAT, bufferSizeInBytes, auditRecording, in doTest()
1163 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest()
1215 switch (TEST_FORMAT) { in doTest()
DVolumeShaperTest.java168 final int TEST_FORMAT = AudioFormat.ENCODING_PCM_FLOAT; in createSineAudioTrack() local
173 .setEncoding(TEST_FORMAT) in createSineAudioTrack()