Home
last modified time | relevance | path

Searched refs:sampleRateInHz (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioRecord_BufferSizeTest.java67 private void record(int sampleRateInHz) { in record() argument
68 int bufferSize = AudioRecord.getMinBufferSize(sampleRateInHz, CHANNEL_CONFIG, AUDIO_FORMAT); in record()
71 createAudioRecord(sampleRateInHz, bufferSize); in record()
91 private void createAudioRecord(final int sampleRateInHz, final int bufferSize) { in createAudioRecord() argument
92 mAudioRecord = new AudioRecord(AudioSource.DEFAULT, sampleRateInHz, in createAudioRecord()
DMediaSyncTest.java641 int sampleRateInHz = mediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in getAudioTrack() local
646 sampleRateInHz, in getAudioTrack()
649 final int frameCount = APPLICATION_AUDIO_PERIOD_MS * sampleRateInHz / 1000; in getAudioTrack()
657 sampleRateInHz, in getAudioTrack()
DAudioRecordTest.java601 int audioSource, int sampleRateInHz, in createAudioRecord() argument
607 audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
614 .setSampleRate(sampleRateInHz) in createAudioRecord()
619 record = new AudioRecord(audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
630 assertEquals(sampleRateInHz, format.getSampleRate()); in createAudioRecord()
DAudioTrackTest.java2276 public MockAudioTrack(int streamType, int sampleRateInHz, int channelConfig, in MockAudioTrack() argument
2278 super(streamType, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes, mode); in MockAudioTrack()