Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/audio/
DAudioCapabilitiesTestActivity.java167 for (AudioFormat audioFormat : ATMOS_FORMATS) { in runTest()
168 if (AudioTrack.isDirectPlaybackSupported(audioFormat, audioAttributes)) { in runTest()
169 actualAtmosFormatStrings.add(toStr(audioFormat)); in runTest()
222 private static String toStr(AudioFormat audioFormat) { in toStr() argument
225 encodingToString(audioFormat.getEncoding()), audioFormat.getChannelCount()); in toStr()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DNoOpHotwordDetectionService.java47 @NonNull AudioFormat audioFormat, in onDetect() argument
50 super.onDetect(audioStream, audioFormat, options, callback); in onDetect()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackOffloadTest.java117 AudioFormat audioFormat) { in getOffloadAudioTrack() argument
118 if (!AudioManager.isOffloadedPlaybackSupported(audioFormat, DEFAULT_ATTR)) { in getOffloadAudioTrack()
120 + audioFormat.getEncoding() + " is not supported"); in getOffloadAudioTrack()
129 .setAudioFormat(audioFormat) in getOffloadAudioTrack()
146 AudioFormat audioFormat) throws Exception { in testAudioTrackOffload() argument
152 track = getOffloadAudioTrack(audioRes, bitRateInkbps, audioFormat); in testAudioTrackOffload()
DNonBlockingAudioTrack.java89 AudioFormat audioFormat = (new AudioFormat.Builder()) in NonBlockingAudioTrack() local
94 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack()
DMediaSyncTest.java708 int audioFormat = AudioFormat.ENCODING_PCM_16BIT; in getAudioTrack() local
712 audioFormat); in getAudioTrack()
715 * AudioFormat.getBytesPerSample(audioFormat); in getAudioTrack()
723 audioFormat, in getAudioTrack()
DAudioPlaybackCaptureTest.java157 private AudioRecord createPlaybackCaptureRecord(AudioFormat audioFormat) throws Exception { in createPlaybackCaptureRecord() argument
162 .setAudioFormat(audioFormat) in createPlaybackCaptureRecord()
DAudioRecordTest.java970 int channelConfig, int audioFormat, int bufferSizeInBytes, in createAudioRecord() argument
976 audioFormat, bufferSizeInBytes, isChannelIndex); in createAudioRecord()
981 .setEncoding(audioFormat) in createAudioRecord()
988 audioFormat, bufferSizeInBytes); in createAudioRecord()
997 assertEquals(audioFormat, format.getEncoding()); in createAudioRecord()
1000 format.getChannelCount() * AudioFormat.getBytesPerSample(audioFormat); in createAudioRecord()
DAudioManagerTest.java404 int audioFormat = AudioFormat.ENCODING_DTS; in testSetSurroundFormatEnabled() local
406 mAudioManager.setSurroundFormatEnabled(audioFormat, true /*enabled*/); in testSetSurroundFormatEnabled()
407 assertTrue(mAudioManager.isSurroundFormatEnabled(audioFormat)); in testSetSurroundFormatEnabled()
409 mAudioManager.setSurroundFormatEnabled(audioFormat, false /*enabled*/); in testSetSurroundFormatEnabled()
410 assertFalse(mAudioManager.isSurroundFormatEnabled(audioFormat)); in testSetSurroundFormatEnabled()
DAudioTrackTest.java3513 int audioFormat, int bufferSizeInBytes, int mode) throws IllegalArgumentException { in MockAudioTrack() argument
3514 super(streamType, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes, mode); in MockAudioTrack()
/cts/tests/musicrecognition/OutsideOfPackageService/src/android/musicrecognition/cts2/
DOutsideOfPackageService.java30 @NonNull AudioFormat audioFormat, in onRecognize() argument
/cts/tests/mediapc/src/android/mediapc/cts/
DAudioPlaybackLoad.java71 final AudioFormat audioFormat = new AudioFormat.Builder() in createAudioTrack() local
85 .setAudioFormat(audioFormat) in createAudioTrack()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java252 public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, in onBeginSynthesis() argument
256 Assert.assertTrue(audioFormat == android.media.AudioFormat.ENCODING_PCM_8BIT in onBeginSynthesis()
257 || audioFormat == android.media.AudioFormat.ENCODING_PCM_16BIT in onBeginSynthesis()
258 || audioFormat == android.media.AudioFormat.ENCODING_PCM_FLOAT); in onBeginSynthesis()
/cts/tests/tests/soundtrigger/src/android/soundtrigger/cts/
DSoundTriggerTest.java204 AudioFormat audioFormat = new AudioFormat.Builder().build(); in testRecognitionEventBasicGetters() local
206 0, 100, true, 101, 1000, 1001, true, audioFormat, TEST_MODEL_DATA); in testRecognitionEventBasicGetters()
207 assertEquals(recognitionEvent.getCaptureFormat(), audioFormat); in testRecognitionEventBasicGetters() local
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DCtsMusicRecognitionService.java55 @NonNull AudioFormat audioFormat, in onRecognize() argument
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/audio/
DHdmiCecSystemAudioModeTest.java343 int audioFormat = in cect_11_2_15_13_ValidShortAudioDescriptor() local
345 assertWithMessage("Could not find audio format " + audioFormat) in cect_11_2_15_13_ValidShortAudioDescriptor()
347 .contains(audioFormat); in cect_11_2_15_13_ValidShortAudioDescriptor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java558 public static int getBytesPerSample(int audioFormat) { in getBytesPerSample() argument
559 switch(audioFormat) { in getBytesPerSample()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java136 @NonNull AudioFormat audioFormat, in onDetect() argument