/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 421 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterInit() local 428 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterInit() 429 AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT), TEST_MODE); in testPlaybackHeadPositionAfterInit() 441 final int TEST_SR = 22050; in testPlaybackHeadPositionIncrease() local 448 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionIncrease() 449 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionIncrease() 468 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterFlush() local 475 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testPlaybackHeadPositionAfterFlush() 476 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testPlaybackHeadPositionAfterFlush() 497 final int TEST_SR = 22050; in testPlaybackHeadPositionAfterStop() local [all …]
|
D | AudioNativeTest.java | 94 for (int TEST_SR : TEST_SR_ARRAY) { in testPlayStreamData() 98 if (TEST_IS_LOW_RAM_DEVICE && (TEST_CHANNELS > 4 || TEST_SR > 96000)) { in testPlayStreamData() 101 if (TEST_FLOAT == true && TEST_CHANNELS >= 6 && TEST_SR >= 192000) { in testPlayStreamData() 106 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData() 110 (int)((long)TEST_SR * TEST_TIME_IN_MSEC * TEST_CHANNELS / 1000); in testPlayStreamData() 114 sourceSamples, TEST_SR, in testPlayStreamData() 121 sourceSamples, TEST_SR, in testPlayStreamData() 189 for (int TEST_SR : TEST_SR_ARRAY) { in testRecordStreamData() 192 if (TEST_FLOAT == true && TEST_CHANNELS >= 8 && TEST_SR >= 192000) { in testRecordStreamData() 196 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData()
|
D | AudioTrackLatencyTest.java | 72 final int TEST_SR = 44100; in testSetBufferSize() local 79 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testSetBufferSize() 80 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testSetBufferSize() 265 final int TEST_SR = 48000; in createCustomAudioTrack() local 271 int bufferSizeBytes = 2 * AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in createCustomAudioTrack() 375 final int TEST_SR = 44100; in testGetUnderrunCount() local 384 final int TEST_FRAMES_PER_BLIP = TEST_SR / 8; in testGetUnderrunCount() 385 final int TEST_CYCLES_PER_BLIP = 700 * TEST_FRAMES_PER_BLIP / TEST_SR; in testGetUnderrunCount() 394 int minBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testGetUnderrunCount() 396 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() 82 final int TEST_SR = 48000; in testPartialFormatBuilderForCopyRate() local 85 .setSampleRate(TEST_SR).build(); in testPartialFormatBuilderForCopyRate() 91 TEST_SR, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyRate() 148 final int TEST_SR = 48000; in testParcel() local 154 .setEncoding(TEST_ENCODING).setSampleRate(TEST_SR) in testParcel()
|
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 | 743 final int TEST_SR, final int TEST_CONF, final int TEST_FORMAT) throws Exception { in doTest() argument 757 AudioRecord.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in doTest() 766 record = createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 774 return createAudioRecord(TEST_SOURCE, TEST_SR, TEST_CONF, in doTest() 795 ? 0 : TEST_SR / periodsPerSecond; in doTest() 809 mMarkerPeriodInFrames = TEST_SR / markerPeriodsPerSecond; in doTest() 825 listener.start(TEST_SR); in doTest() 837 final int targetFrames = (int)((long)TEST_TIME_MS * TEST_SR / 1000); in doTest() 1035 verifyContinuousTimestamps(startTs, stopTs, TEST_SR); in doTest() 1082 final int toleranceInFrames = TEST_SR * 80 / 1000; // 80 ms in doTest() [all …]
|
D | VolumeShaperTest.java | 161 final int TEST_SR = 48000; in createSineAudioTrack() local 165 .setSampleRate(TEST_SR) in createSineAudioTrack() 179 sampleCount, TEST_SR, in createSineAudioTrack()
|