Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioRecord_BufferSizeTest.java68 private void record(int sampleRateInHz) { in record() argument
69 int bufferSize = AudioRecord.getMinBufferSize(sampleRateInHz, CHANNEL_CONFIG, AUDIO_FORMAT); in record()
72 createAudioRecord(sampleRateInHz, bufferSize); in record()
92 private void createAudioRecord(final int sampleRateInHz, final int bufferSize) { in createAudioRecord() argument
93 mAudioRecord = new AudioRecord(AudioSource.DEFAULT, sampleRateInHz, in createAudioRecord()
DMediaSyncTest.java702 int sampleRateInHz = mediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in getAudioTrack() local
707 sampleRateInHz, in getAudioTrack()
710 final int frameCount = APPLICATION_AUDIO_PERIOD_MS * sampleRateInHz / 1000; in getAudioTrack()
718 sampleRateInHz, in getAudioTrack()
DAudioRecordTest.java702 int audioSource, int sampleRateInHz, in createAudioRecord() argument
708 audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
715 .setSampleRate(sampleRateInHz) in createAudioRecord()
720 record = new AudioRecord(audioSource, sampleRateInHz, channelConfig, in createAudioRecord()
731 assertEquals(sampleRateInHz, format.getSampleRate()); in createAudioRecord()
DAudioTrackTest.java2387 public MockAudioTrack(int streamType, int sampleRateInHz, int channelConfig, in MockAudioTrack() argument
2389 super(streamType, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes, mode); in MockAudioTrack()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java253 …public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelC… in onBeginSynthesis() argument
255 Assert.assertTrue(sampleRateInHz > 0); in onBeginSynthesis()