Home
last modified time | relevance | path

Searched refs:mMediaRecorder (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaRecorderStateUnitTestTemplate.java45 private MediaRecorder mMediaRecorder = new MediaRecorder(); field in MediaRecorderStateUnitTestTemplate
73 mMethodUnderTest.invokeMethodUnderTest(mMediaRecorder); in callMediaRecorderMethodUnderTestInState()
87 mMediaRecorder.reset(); in setMediaRecorderToInitialStateAfterReset()
100 mMediaRecorder.reset(); in setMediaRecorderToInitialStateAfterStop()
117 mMediaRecorder.reset(); in setMediaRecorderToInitializedState()
119 mMediaRecorder.setAudioSource(AUDIO_SOURCE); in setMediaRecorderToInitializedState()
128 mMediaRecorder.reset(); in setMediaRecorderToPreparedState()
129 mMediaRecorder.setAudioSource(AUDIO_SOURCE); in setMediaRecorderToPreparedState()
130 mMediaRecorder.setOutputFormat(OUTPUT_FORMAT); in setMediaRecorderToPreparedState()
131 mMediaRecorder.setAudioEncoder(AUDIO_ENCODER); in setMediaRecorderToPreparedState()
[all …]
/frameworks/av/media/libmedia/
Dmediarecorder.cpp42 if (mMediaRecorder == NULL) { in setCamera()
51 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera()
63 if (mMediaRecorder == NULL) { in setPreviewSurface()
76 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface()
88 if (mMediaRecorder == NULL) { in init()
97 status_t ret = mMediaRecorder->init(); in init()
104 ret = mMediaRecorder->setListener(this); in init()
118 if (mMediaRecorder == NULL) { in setVideoSource()
139 status_t ret = mMediaRecorder->setVideoSource(vs); in setVideoSource()
153 if (mMediaRecorder == NULL) { in setAudioSource()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java175 private MediaRecorder mMediaRecorder; field in MediaEncoderFilter
232 mMediaRecorder.setVideoSource(GRALLOC_BUFFER); in updateMediaRecorderParams()
234 mMediaRecorder.setAudioSource(mAudioSource); in updateMediaRecorderParams()
237 mMediaRecorder.setProfile(mProfile); in updateMediaRecorderParams()
242 mMediaRecorder.setVideoSize(mWidth, mHeight); in updateMediaRecorderParams()
245 mMediaRecorder.setOutputFormat(mOutputFormat); in updateMediaRecorderParams()
246 mMediaRecorder.setVideoEncoder(mVideoEncoder); in updateMediaRecorderParams()
247 mMediaRecorder.setVideoSize(mWidth, mHeight); in updateMediaRecorderParams()
248 mMediaRecorder.setVideoFrameRate(mFps); in updateMediaRecorderParams()
250 mMediaRecorder.setOrientationHint(mOrientationHint); in updateMediaRecorderParams()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java79 private MediaRecorder mMediaRecorder; field in ScreenMediaRecorder
114 mMediaRecorder = new MediaRecorder(); in prepare()
118 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in prepare()
120 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepare()
122 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in prepare()
136 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in prepare()
137 mMediaRecorder.setVideoEncodingProfileLevel( in prepare()
140 mMediaRecorder.setVideoSize(width, height); in prepare()
141 mMediaRecorder.setVideoFrameRate(refreshRate); in prepare()
142 mMediaRecorder.setVideoEncodingBitRate(vidBitRate); in prepare()
[all …]
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java105 private MediaRecorder mMediaRecorder; field in MainActivity
365 mMediaRecorder = new MediaRecorder(); in openCamera()
380 if (null != mMediaRecorder) { in closeCamera()
381 mMediaRecorder.release(); in closeCamera()
382 mMediaRecorder = null; in closeCamera()
487 Surface recorderSurface = mMediaRecorder.getSurface(); in startRecordingVideo()
502 mMediaRecorder.start(); in startRecordingVideo()
528 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in setUpMediaRecorder()
529 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in setUpMediaRecorder()
530 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in setUpMediaRecorder()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java110 private MediaRecorder mMediaRecorder; field in Camera2RecordingTest
131 mMediaRecorder = new MediaRecorder(); in doBasicRecording()
205 mMediaRecorder = new MediaRecorder(); in constrainedHighSpeedRecording()
369 mMediaRecorder.start(); in startSlowMotionRecording()
476 mMediaRecorder = new MediaRecorder(); in videoSnapshotHelper()
815 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecordingWithProfile()
816 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecordingWithProfile()
817 mMediaRecorder.setProfile(profile); in prepareRecordingWithProfile()
818 mMediaRecorder.setOutputFile(mOutMediaFileName); in prepareRecordingWithProfile()
820 mMediaRecorder.setInputSurface(mPersistentSurface); in prepareRecordingWithProfile()
[all …]
DCamera2SwitchPreviewTest.java134 private MediaRecorder mMediaRecorder; field in Camera2SwitchPreviewTest
312 mMediaRecorder = new MediaRecorder(); in recordingPreviewPreparer()
397 mMediaRecorder.reset(); in basicRecordingPreviewTestByCamera()
407 if (mMediaRecorder != null) { in releaseRecorder()
408 mMediaRecorder.release(); in releaseRecorder()
409 mMediaRecorder = null; in releaseRecorder()
458 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecordingWithProfile()
459 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecordingWithProfile()
460 mMediaRecorder.setProfile(profile); in prepareRecordingWithProfile()
461 mMediaRecorder.setOutputFile(mOutMediaFileName); in prepareRecordingWithProfile()
[all …]
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java423 private MediaRecorder mMediaRecorder; field in ScoAudioTest.SimpleRecordController
438 mMediaRecorder.start(); in playOrPause()
442 mMediaRecorder.release(); in playOrPause()
443 mMediaRecorder = null; in playOrPause()
448 mMediaRecorder.stop(); in playOrPause()
449 mMediaRecorder.reset(); in playOrPause()
452 mMediaRecorder.release(); in playOrPause()
453 mMediaRecorder = null; in playOrPause()
463 if (mMediaRecorder == null) { in setup()
464 mMediaRecorder = new MediaRecorder(); in setup()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java347 MediaRecorder mMediaRecorder = new MediaRecorder(); in recordVideoWithPara() local
348 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in recordVideoWithPara()
349 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoWithPara()
350 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in recordVideoWithPara()
351 mMediaRecorder.setOutputFile(filename); in recordVideoWithPara()
352 mMediaRecorder.setVideoFrameRate(videoFps); in recordVideoWithPara()
353 mMediaRecorder.setVideoSize(videoWidth, videoHeight); in recordVideoWithPara()
354 mMediaRecorder.setVideoEncodingBitRate(videoBitrate); in recordVideoWithPara()
355 mMediaRecorder.setAudioEncodingBitRate(audioBitrate); in recordVideoWithPara()
356 mMediaRecorder.setAudioChannels(audioChannels); in recordVideoWithPara()
[all …]
/frameworks/base/media/java/android/media/
DMediaRecorder.java1558 private MediaRecorder mMediaRecorder; field in MediaRecorder.EventHandler
1562 mMediaRecorder = mr; in EventHandler()
1583 if (mMediaRecorder.mNativeContext == 0) { in handleMessage()
1591 mOnErrorListener.onError(mMediaRecorder, msg.arg1, msg.arg2); in handleMessage()
1598 mOnInfoListener.onInfo(mMediaRecorder, msg.arg1, msg.arg2); in handleMessage()
/frameworks/av/media/libmedia/include/media/
Dmediarecorder.h280 sp<IMediaRecorder> mMediaRecorder; variable
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt31235 Landroid/media/MediaRecorder$EventHandler;->mMediaRecorder:Landroid/media/MediaRecorder;