/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackTest.java | 491 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterInit() local 498 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterInit() 499 AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT), TEST_MODE); in testPlaybackHeadPositionAfterInit() 512 final int TEST_SR = 22050; in testPlaybackHeadPositionIncrease() local 519 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionIncrease() 520 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionIncrease() 540 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterFlush() local 547 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionAfterFlush() 548 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterFlush() 570 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterStop() local [all …]
|
D | AudioTrack_ListenerTest.java | 43 private final static int TEST_SR = 11025; field in AudioTrack_ListenerTest 96 final int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest() 111 track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest() 119 return new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest() 135 bufferSizeInBytes, TEST_SR, 1024 /* frequency */, 0 /* sweep */); in doTest() 136 int markerPeriods = Math.max(3, mFrameCount * markerPeriodsPerSecond / TEST_SR); in doTest() 147 int updatePeriods = Math.max(3, mFrameCount * periodsPerSecond / TEST_SR); in doTest() 170 final int trackLengthMs = (int)((double)mFrameCount * 1000 / TEST_SR / bytesPerFrame); in doTest() 199 final int toleranceInFrames = toleranceMs * TEST_SR / 1000; in doTest() 208 markerStat.add((double)(actual - expected) * 1000 / TEST_SR); in doTest() [all …]
|
D | AudioTrackLatencyTest.java | 322 final int TEST_SR = 48000; in createCustomAudioTrack() local 328 int bufferSizeBytes = 2 * AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in createCustomAudioTrack() 432 final int TEST_SR = 44100; in testGetUnderrunCount() local 441 final int TEST_FRAMES_PER_BLIP = TEST_SR / 8; in testGetUnderrunCount() 442 final int TEST_CYCLES_PER_BLIP = 700 * TEST_FRAMES_PER_BLIP / TEST_SR; in testGetUnderrunCount() 451 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testGetUnderrunCount() 453 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testGetUnderrunCount() 474 int numBuffers = TEST_SR / TEST_FRAMES_PER_BUFFER; in testGetUnderrunCount() 480 numBuffers = numSeconds * TEST_SR / TEST_FRAMES_PER_BUFFER; in testGetUnderrunCount() 507 numBuffers = numSeconds * TEST_SR / TEST_FRAMES_PER_BUFFER; in testGetUnderrunCount() [all …]
|
D | AudioNativeTest.java | 107 for (int TEST_SR : TEST_SR_ARRAY) { in testPlayStreamData() 111 if (TEST_IS_LOW_RAM_DEVICE && (TEST_CHANNELS > 4 || TEST_SR > 96000)) { in testPlayStreamData() 114 if (TEST_FLOAT == true && TEST_CHANNELS >= 6 && TEST_SR >= 192000) { in testPlayStreamData() 119 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData() 123 (int)((long)TEST_SR * TEST_TIME_IN_MSEC * TEST_CHANNELS / 1000); in testPlayStreamData() 127 sourceSamples, TEST_SR, in testPlayStreamData() 134 sourceSamples, TEST_SR, in testPlayStreamData() 202 for (int TEST_SR : TEST_SR_ARRAY) { in testRecordStreamData() 205 if (TEST_FLOAT == true && TEST_CHANNELS >= 8 && TEST_SR >= 192000) { in testRecordStreamData() 209 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData()
|
D | AudioFormatTest.java | 43 final int TEST_SR = 48000; in testBuilderForCopy() local 49 .setEncoding(TEST_ENCODING).setSampleRate(TEST_SR) in testBuilderForCopy() 56 TEST_SR, copiedFormat.getSampleRate()); in testBuilderForCopy() 92 final int TEST_SR = 48000; in testPartialFormatBuilderForCopyRate() local 95 .setSampleRate(TEST_SR).build(); in testPartialFormatBuilderForCopyRate() 101 TEST_SR, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyRate() 158 final int TEST_SR = 48000; in testParcel() local 164 .setEncoding(TEST_ENCODING).setSampleRate(TEST_SR) in testParcel()
|
D | AudioRecordTest.java | 1051 final int TEST_SR, final int TEST_CONF, final int TEST_FORMAT) throws Exception { in doTest() argument 1055 TEST_SR, TEST_CONF, TEST_FORMAT, TEST_TIME_MS); in doTest() 1061 final int TEST_SR, final int TEST_CONF, final int TEST_FORMAT, final int TEST_TIME_MS) in doTest() argument 1075 AudioRecord.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest() 1086 record = createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 1094 return createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 1117 ? 0 : TEST_SR / periodsPerSecond; in doTest() 1131 mMarkerPeriodInFrames = TEST_SR / markerPeriodsPerSecond; in doTest() 1152 listener.start(TEST_SR); in doTest() 1166 final int targetFrames = (int)((long)TEST_TIME_MS * TEST_SR / 1000); in doTest() [all …]
|
D | VolumeShaperTest.java | 198 final int TEST_SR = 48000; in createSineAudioTrack() local 202 .setSampleRate(TEST_SR) in createSineAudioTrack() 221 sampleCount, TEST_SR, in createSineAudioTrack()
|