Home
last modified time | relevance | path

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

/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
235 Assert.assertTrue(audioFormat == android.media.AudioFormat.ENCODING_PCM_8BIT in onBeginSynthesis()
236 || audioFormat == android.media.AudioFormat.ENCODING_PCM_16BIT in onBeginSynthesis()
237 || audioFormat == android.media.AudioFormat.ENCODING_PCM_FLOAT); in onBeginSynthesis()
/cts/tests/tests/media/src/android/media/cts/
DNonBlockingAudioTrack.java88 AudioFormat audioFormat = (new AudioFormat.Builder()) in NonBlockingAudioTrack() local
93 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack()
DMediaSyncTest.java704 int audioFormat = AudioFormat.ENCODING_PCM_16BIT; in getAudioTrack() local
708 audioFormat); in getAudioTrack()
711 * AudioFormat.getBytesPerSample(audioFormat); in getAudioTrack()
719 audioFormat, in getAudioTrack()
DAudioRecordTest.java703 int channelConfig, int audioFormat, int bufferSizeInBytes, in createAudioRecord() argument
709 audioFormat, bufferSizeInBytes, isChannelIndex); in createAudioRecord()
714 .setEncoding(audioFormat) in createAudioRecord()
721 audioFormat, bufferSizeInBytes); in createAudioRecord()
730 assertEquals(audioFormat, format.getEncoding()); in createAudioRecord()
733 format.getChannelCount() * AudioFormat.getBytesPerSample(audioFormat); in createAudioRecord()
DAudioTrackTest.java2351 int audioFormat, int bufferSizeInBytes, int mode) throws IllegalArgumentException { in MockAudioTrack() argument
2352 super(streamType, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes, mode); in MockAudioTrack()