/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/audio/ |
D | AudioCapabilitiesTestActivity.java | 167 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/ |
D | NoOpHotwordDetectionService.java | 47 @NonNull AudioFormat audioFormat, in onDetect() argument 50 super.onDetect(audioStream, audioFormat, options, callback); in onDetect()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackOffloadTest.java | 117 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()
|
D | NonBlockingAudioTrack.java | 89 AudioFormat audioFormat = (new AudioFormat.Builder()) in NonBlockingAudioTrack() local 94 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack()
|
D | MediaSyncTest.java | 708 int audioFormat = AudioFormat.ENCODING_PCM_16BIT; in getAudioTrack() local 712 audioFormat); in getAudioTrack() 715 * AudioFormat.getBytesPerSample(audioFormat); in getAudioTrack() 723 audioFormat, in getAudioTrack()
|
D | AudioPlaybackCaptureTest.java | 157 private AudioRecord createPlaybackCaptureRecord(AudioFormat audioFormat) throws Exception { in createPlaybackCaptureRecord() argument 162 .setAudioFormat(audioFormat) in createPlaybackCaptureRecord()
|
D | AudioRecordTest.java | 970 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()
|
D | AudioManagerTest.java | 404 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()
|
D | AudioTrackTest.java | 3513 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/ |
D | OutsideOfPackageService.java | 30 @NonNull AudioFormat audioFormat, in onRecognize() argument
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | AudioPlaybackLoad.java | 71 final AudioFormat audioFormat = new AudioFormat.Builder() in createAudioTrack() local 85 .setAudioFormat(audioFormat) in createAudioTrack()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechWrapper.java | 252 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/ |
D | SoundTriggerTest.java | 204 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/ |
D | CtsMusicRecognitionService.java | 55 @NonNull AudioFormat audioFormat, in onRecognize() argument
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/audio/ |
D | HdmiCecSystemAudioModeTest.java | 343 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/ |
D | SoundPlayerObject.java | 558 public static int getBytesPerSample(int audioFormat) { in getBytesPerSample() argument 559 switch(audioFormat) { in getBytesPerSample()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainHotwordDetectionService.java | 136 @NonNull AudioFormat audioFormat, in onDetect() argument
|