Home
last modified time | relevance | path

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

/cts/tests/tests/systemui/AudioRecorderTestApp_MediaRecorder/src/android/systemui/cts/audiorecorder/mediarecorder/
DAudioRecorderService.java27 private MediaRecorder mMediaRecorder = null; field in AudioRecorderService
30 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 …]
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderTest.java143 private MediaRecorder mMediaRecorder; field in MediaRecorderTest
196 mMediaRecorder = new MediaRecorder(); in setUp()
207 mMediaRecorder.setOutputFile(OUTPUT_PATH); in setUp()
208 mMediaRecorder.setOnInfoListener(new OnInfoListener() { in setUp()
222 mMediaRecorder.setOnErrorListener(new OnErrorListener() { in setUp()
234 if (mMediaRecorder != null) { in tearDown()
235 mMediaRecorder.release(); in tearDown()
236 mMediaRecorder = null; in tearDown()
280 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testRecorderCamera()
281 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in testRecorderCamera()
[all …]
/cts/tests/tests/voiceRecognition/RecognitionService/src/com/android/recognitionservice/service/
DCtsVoiceRecognitionService.java38 private MediaRecorder mMediaRecorder; field in CtsVoiceRecognitionService
67 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 …]
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DMediaRecorderCameraActivity.java48 private MediaRecorder mMediaRecorder; field in MediaRecorderCameraActivity
60 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 …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerRecorderActivity.java60 private MediaRecorder mMediaRecorder; field in ResourceManagerRecorderActivity
265 mMediaRecorder = new MediaRecorder(); in recordVideoUsingCamera()
266 mMediaRecorder.setOnInfoListener(new OnInfoListener() { in recordVideoUsingCamera()
271 mMediaRecorder.setOnErrorListener(new OnErrorListener() { in recordVideoUsingCamera()
284 mMediaRecorder.setCamera(camera); in recordVideoUsingCamera()
285 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoUsingCamera()
286 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in recordVideoUsingCamera()
287 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in recordVideoUsingCamera()
288 mMediaRecorder.setVideoEncoder(mVideoEncoderType); in recordVideoUsingCamera()
289 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); in recordVideoUsingCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DPreviewRecorder.java125 private MediaRecorder mMediaRecorder; field in PreviewRecorder
256 mMediaRecorder = new MediaRecorder(context); in setupMediaRecorder()
257 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in setupMediaRecorder()
258 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in setupMediaRecorder()
259 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in setupMediaRecorder()
261 mMediaRecorder.setVideoSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in setupMediaRecorder()
262 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT); in setupMediaRecorder()
263 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); in setupMediaRecorder()
264 mMediaRecorder.setVideoEncodingBitRate( in setupMediaRecorder()
266 mMediaRecorder.setInputSurface(mRecordSurface); in setupMediaRecorder()
[all …]
DItsService.java322 private MediaRecorder mMediaRecorder; field in ItsService
2888 mMediaRecorder = new MediaRecorder();
2909 mMediaRecorder.prepare();
2914 mRecordSurface = mMediaRecorder.getSurface();
2925 if (mMediaRecorder != null) {
2928 mMediaRecorder.start();
2935 mMediaRecorder.stop();
2937 mMediaRecorder.reset();
2938 mMediaRecorder.release();
2939 mMediaRecorder = null;
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java88 private MediaRecorder mMediaRecorder; field in CameraVideoActivity
193 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 …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java137 private MediaRecorder mMediaRecorder; field in RecordingTest
197 mMediaRecorder = new MediaRecorder(); in doBasicRecording()
332 mMediaRecorder = new MediaRecorder(); in testSupportedVideoSizes()
732 mMediaRecorder = new MediaRecorder(); in testAbandonedHighSpeedRequest()
790 mMediaRecorder = new MediaRecorder(); in testAbandonedHighSpeedRequest()
854 mMediaRecorder = new MediaRecorder(); in testRecordingFramerateLowToHigh()
913 mMediaRecorder = new MediaRecorder(); in testVideoPreviewSurfaceSharing()
969 mMediaRecorder = new MediaRecorder(); in doRecordingWithDifferentPreviewSizes()
1098 mMediaRecorder.reset(); in videoPreviewSurfaceSharingTestByCamera()
1155 mMediaRecorder = new MediaRecorder(); in slowMotionRecording()
[all …]