Home
last modified time | relevance | path

Searched refs:audioEncoder (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java87 public static String getAudioCodecName(int audioEncoder) { in getAudioCodecName() argument
88 if (audioEncoder != MediaRecorder.AudioEncoder.AMR_NB && in getAudioCodecName()
89 audioEncoder != MediaRecorder.AudioEncoder.AMR_WB && in getAudioCodecName()
90 audioEncoder != MediaRecorder.AudioEncoder.AAC && in getAudioCodecName()
91 audioEncoder != MediaRecorder.AudioEncoder.HE_AAC && in getAudioCodecName()
92 audioEncoder != MediaRecorder.AudioEncoder.AAC_ELD) { in getAudioCodecName()
93 throw new IllegalArgumentException("Unsupported audio encodeer " + audioEncoder); in getAudioCodecName()
95 return audioEncoderMap.get(audioEncoder); in getAudioCodecName()
DMediaRecorderStressTestRunner.java66 String audioEncoder = (String) icicle.get("audio_encoder"); in onCreate() local
80 if (audioEncoder != null) { in onCreate()
81 mAudioEncoder = Integer.parseInt(audioEncoder); in onCreate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java312 int audioEncoder = audioCap.mCodec; in recordVideoWithPara() local
332 … String filename = ("/sdcard/" + videoEncoder + "_" + audioEncoder + "_" + highQuality + ".3gp"); in recordVideoWithPara()
335 Log.v(TAG, "audio encoder : " + audioEncoder); in recordVideoWithPara()
338 Log.v(TAG, "audio : " + MediaProfileReader.getAudioCodecName(audioEncoder)); in recordVideoWithPara()
359 mMediaRecorder.setAudioEncoder(audioEncoder); in recordVideoWithPara()
517 for (AudioEncoderCap audioEncoder: audioEncoders) { in testDeviceSpecificCodec()
519 recordSuccess = recordVideoWithPara(videoEncoder, audioEncoder, true); in testDeviceSpecificCodec()
521 recordSuccess = recordVideoWithPara(videoEncoder, audioEncoder, false); in testDeviceSpecificCodec()
525 … Log.v(TAG, "Encoder = " + videoEncoder.mCodec + "Audio Encoder = " + audioEncoder.mCodec); in testDeviceSpecificCodec()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java175 int audioEncoder; in recordVideoAndPlayback() local
186 audioEncoder = camcorderProfile.audioCodec; in recordVideoAndPlayback()
193 audioEncoder = MediaRecorderStressTestRunner.mAudioEncoder; in recordVideoAndPlayback()
222 Log.v(TAG, "audio encoder : " + audioEncoder); in recordVideoAndPlayback()
237 mRecorder.setAudioEncoder(audioEncoder); in recordVideoAndPlayback()
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp1161 sp<MediaCodecSource> audioEncoder = in createAudioSource() local
1169 if (audioEncoder == NULL) { in createAudioSource()
1173 return audioEncoder; in createAudioSource()
1231 sp<MediaCodecSource> audioEncoder = createAudioSource(); in setupRawAudioRecording() local
1232 if (audioEncoder == NULL) { in setupRawAudioRecording()
1237 mWriter->addSource(audioEncoder); in setupRawAudioRecording()
1238 mAudioEncoderSource = audioEncoder; in setupRawAudioRecording()
1862 sp<MediaCodecSource> audioEncoder = createAudioSource(); in setupAudioEncoder() local
1863 if (audioEncoder == NULL) { in setupAudioEncoder()
1867 writer->addSource(audioEncoder); in setupAudioEncoder()
[all …]
/frameworks/av/media/libmediaplayerservice/tests/stagefrightRecorder/
DStagefrightRecorderTest.cpp256 audio_encoder audioEncoder = GetParam().second; in TEST_P() local
257 ASSERT_NO_FATAL_FAILURE(setAudioRecorderFormat(outputFormat, audioEncoder)); in TEST_P()