/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 457 final int TEST_SR = 22050; 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() 478 final int TEST_SR = 22050; 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() 506 final int TEST_SR = 22050; 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() 536 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterStop() local [all …]
|
D | AudioTrackLatencyTest.java | 74 final int TEST_SR = 44100; 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() 272 final int TEST_SR = 48000; in createCustomAudioTrack() local 278 int bufferSizeBytes = 2 * AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in createCustomAudioTrack() 382 final int TEST_SR = 44100; in testGetUnderrunCount() local 391 final int TEST_FRAMES_PER_BLIP = TEST_SR / 8; in testGetUnderrunCount() 392 final int TEST_CYCLES_PER_BLIP = 700 * TEST_FRAMES_PER_BLIP / TEST_SR; in testGetUnderrunCount() 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() [all …]
|
D | AudioFormatTest.java | 37 final int TEST_SR = 48000; in testBuilderForCopy() local 43 .setEncoding(TEST_ENCODING).setSampleRate(TEST_SR) in testBuilderForCopy() 50 TEST_SR, copiedFormat.getSampleRate()); in testBuilderForCopy() 86 final int TEST_SR = 48000; in testPartialFormatBuilderForCopyRate() local 89 .setSampleRate(TEST_SR).build(); in testPartialFormatBuilderForCopyRate() 95 TEST_SR, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyRate() 152 final int TEST_SR = 48000; in testParcel() local 158 .setEncoding(TEST_ENCODING).setSampleRate(TEST_SR) in testParcel()
|
D | AudioNativeTest.java | 98 for (int TEST_SR : TEST_SR_ARRAY) { in testPlayStreamData() 102 if (TEST_IS_LOW_RAM_DEVICE && (TEST_CHANNELS > 4 || TEST_SR > 96000)) { in testPlayStreamData() 105 if (TEST_FLOAT == true && TEST_CHANNELS >= 6 && TEST_SR >= 192000) { in testPlayStreamData() 110 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData() 114 (int)((long)TEST_SR * TEST_TIME_IN_MSEC * TEST_CHANNELS / 1000); in testPlayStreamData() 118 sourceSamples, TEST_SR, in testPlayStreamData() 125 sourceSamples, TEST_SR, in testPlayStreamData() 193 for (int TEST_SR : TEST_SR_ARRAY) { in testRecordStreamData() 196 if (TEST_FLOAT == true && TEST_CHANNELS >= 8 && TEST_SR >= 192000) { in testRecordStreamData() 200 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData()
|
D | AudioTrack_ListenerTest.java | 37 private final static int TEST_SR = 11025; field in AudioTrack_ListenerTest 85 final int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest() 100 track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest() 108 return new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest() 124 bufferSizeInBytes, TEST_SR, 1024 /* frequency */, 0 /* sweep */); in doTest() 125 int markerPeriods = Math.max(3, mFrameCount * markerPeriodsPerSecond / TEST_SR); in doTest() 136 int updatePeriods = Math.max(3, mFrameCount * periodsPerSecond / TEST_SR); in doTest() 159 final int trackLengthMs = (int)((double)mFrameCount * 1000 / TEST_SR / bytesPerFrame); in doTest() 187 final int tolerance80MsInFrames = TEST_SR * 80 / 1000; in doTest() 196 markerStat.add((double)(actual - expected) * 1000 / TEST_SR); in doTest() [all …]
|
D | AudioRecordTest.java | 1062 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 1086 AudioRecord.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest() 1095 record = createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 1103 return createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 1124 ? 0 : TEST_SR / periodsPerSecond; in doTest() 1138 mMarkerPeriodInFrames = TEST_SR / markerPeriodsPerSecond; in doTest() 1154 listener.start(TEST_SR); in doTest() 1166 final int targetFrames = (int)((long)TEST_TIME_MS * TEST_SR / 1000); in doTest() [all …]
|
D | VolumeShaperTest.java | 170 final int TEST_SR = 48000; in createSineAudioTrack() local 174 .setSampleRate(TEST_SR) in createSineAudioTrack() 188 sampleCount, TEST_SR, in createSineAudioTrack()
|