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.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.java701 int sampleRateInHz = mediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in getAudioTrack() local
706 sampleRateInHz, in getAudioTrack()
709 final int frameCount = APPLICATION_AUDIO_PERIOD_MS * sampleRateInHz / 1000; in getAudioTrack()
717 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.java2350 public MockAudioTrack(int streamType, int sampleRateInHz, int channelConfig, in MockAudioTrack() argument
2352 super(streamType, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes, mode); in MockAudioTrack()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java232 …public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelC… in onBeginSynthesis() argument
234 Assert.assertTrue(sampleRateInHz > 0); in onBeginSynthesis()