Searched refs:mMediaRecorder (Results 1 – 6 of 6) sorted by relevance
27 private MediaRecorder mMediaRecorder = null; field in AudioRecorderService30 mMediaRecorder = new MediaRecorder(); in startRecording()31 mMediaRecorder.setAudioSource(AudioSource.MIC); in startRecording()32 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in startRecording()33 mMediaRecorder.setOutputFile(new File(getExternalCacheDir(), "record.3gp")); in startRecording()34 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in startRecording()37 mMediaRecorder.prepare(); in startRecording()39 mMediaRecorder.release(); in startRecording()40 mMediaRecorder = null; in startRecording()44 mMediaRecorder.start(); in startRecording()[all …]
122 private MediaRecorder mMediaRecorder; field in MediaRecorderTest175 mMediaRecorder = new MediaRecorder(); in setUp()186 mMediaRecorder.setOutputFile(OUTPUT_PATH); in setUp()187 mMediaRecorder.setOnInfoListener(new OnInfoListener() { in setUp()201 mMediaRecorder.setOnErrorListener(new OnErrorListener() { in setUp()213 if (mMediaRecorder != null) { in tearDown()214 mMediaRecorder.release(); in tearDown()215 mMediaRecorder = null; in tearDown()258 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testRecorderCamera()259 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in testRecorderCamera()[all …]
38 private MediaRecorder mMediaRecorder; field in CtsVoiceRecognitionService67 mMediaRecorder.prepare(); in onStartListening()68 mMediaRecorder.start(); in onStartListening()74 mMediaRecorder.release(); in onStartListening()75 mMediaRecorder = null; in onStartListening()96 mMediaRecorder = new MediaRecorder(); in mediaRecorderReady()98 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in mediaRecorderReady()99 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in mediaRecorderReady()100 mMediaRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB); in mediaRecorderReady()101 mMediaRecorder.setOutputFile(mOutputFile); in mediaRecorderReady()[all …]
48 private MediaRecorder mMediaRecorder; field in MediaRecorderCameraActivity60 mMediaRecorder = new MediaRecorder(); in onCreate()111 if (mMediaRecorder != null) { in onDestroy()112 mMediaRecorder.stop(); in onDestroy()113 mMediaRecorder.release(); in onDestroy()125 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in surfaceChanged()126 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in surfaceChanged()127 mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface()); in surfaceChanged()128 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT); in surfaceChanged()129 mMediaRecorder.setVideoSize(VIDEO_WIDTH, VIDEO_HEIGHT); in surfaceChanged()[all …]
88 private MediaRecorder mMediaRecorder; field in CameraVideoActivity193 mMediaRecorder = new MediaRecorder(); in prepareVideoRecorder()197 mMediaRecorder.setCamera(mCamera); in prepareVideoRecorder()200 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareVideoRecorder()201 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in prepareVideoRecorder()229 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in prepareVideoRecorder()230 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT); in prepareVideoRecorder()231 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); in prepareVideoRecorder()232 mMediaRecorder.setVideoEncodingBitRate(getVideoBitRate(recordSize)); in prepareVideoRecorder()233 mMediaRecorder.setVideoSize(recordSize.width, recordSize.height); in prepareVideoRecorder()[all …]
109 private MediaRecorder mMediaRecorder; field in RecordingTest168 mMediaRecorder = new MediaRecorder(); in doBasicRecording()296 mMediaRecorder = new MediaRecorder(); in testSupportedVideoSizes()404 mMediaRecorder = new MediaRecorder(); in testAbandonedHighSpeedRequest()462 mMediaRecorder = new MediaRecorder(); in testAbandonedHighSpeedRequest()525 mMediaRecorder = new MediaRecorder(); in testRecordingFramerateLowToHigh()578 mMediaRecorder = new MediaRecorder(); in testVideoPreviewSurfaceSharing()633 mMediaRecorder = new MediaRecorder(); in doRecordingWithDifferentPreviewSizes()762 mMediaRecorder.reset(); in videoPreviewSurfaceSharingTestByCamera()819 mMediaRecorder = new MediaRecorder(); in slowMotionRecording()[all …]