Home
last modified time | relevance | path

Searched refs:audioProfile (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java187 for (EncoderProfiles.AudioProfile audioProfile : allProfiles.getAudioProfiles()) { in checkAllProfiles()
191 assertEquals(profile.audioCodec, audioProfile.getCodec()); in checkAllProfiles()
192 assertEquals(profile.audioBitRate, audioProfile.getBitrate()); in checkAllProfiles()
193 assertEquals(profile.audioSampleRate, audioProfile.getSampleRate()); in checkAllProfiles()
194 assertEquals(profile.audioChannels, audioProfile.getChannels()); in checkAllProfiles()
197 assertTrue(audioProfile.getMediaType() != null); in checkAllProfiles()
198 switch (audioProfile.getCodec()) { in checkAllProfiles()
201 assertEquals(MediaFormat.MIMETYPE_AUDIO_AMR_NB, audioProfile.getMediaType()); in checkAllProfiles()
204 assertEquals(MediaFormat.MIMETYPE_AUDIO_AMR_WB, audioProfile.getMediaType()); in checkAllProfiles()
207 assertEquals(MediaFormat.MIMETYPE_AUDIO_AAC, audioProfile.getMediaType()); in checkAllProfiles()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java1171 for (EncoderProfiles.AudioProfile audioProfile : profiles.getAudioProfiles()) { in basicRecordingTestByCamera()
1173 doBasicRecordingByProfile(profiles, videoProfile, audioProfile, in basicRecordingTestByCamera()
1227 EncoderProfiles.VideoProfile videoProfile, EncoderProfiles.AudioProfile audioProfile, in doBasicRecordingByProfile() argument
1236 (audioProfile == null ? "(null)" : audioProfile.getMediaType())); in doBasicRecordingByProfile()
1244 if (audioProfile != null) { in doBasicRecordingByProfile()
1245 mOutMediaFileName += "_" + audioProfile.getCodec(); in doBasicRecordingByProfile()
1250 setupMediaRecorder(profiles, videoProfile, audioProfile); in doBasicRecordingByProfile()
1813 EncoderProfiles.AudioProfile audioProfile) throws Exception { in setupMediaRecorder() argument
1819 if (audioProfile != null) { in setupMediaRecorder()
1820 mMediaRecorder.setAudioProfile(audioProfile); in setupMediaRecorder()