Home
last modified time | relevance | path

Searched refs:mRecorder (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java57 private MediaRecorder mRecorder; field in MediaRecorderStressTest
260 mRecorder = new MediaRecorder(); in testStressRecorder()
266 mRecorder.setOnErrorListener(mRecorderErrorCallback); in testStressRecorder()
267 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressRecorder()
268 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in testStressRecorder()
269 mRecorder.setOutputFile(filename); in testStressRecorder()
270 mRecorder.setVideoFrameRate(mFrameRate); in testStressRecorder()
271 mRecorder.setVideoSize(width, height); in testStressRecorder()
273 mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); in testStressRecorder()
276 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in testStressRecorder()
[all …]
DCodecTest.java464 MediaRecorder mRecorder = new MediaRecorder(); in mediaRecorderRecord() local
465 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in mediaRecorderRecord()
466 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in mediaRecorderRecord()
467 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in mediaRecorderRecord()
468 mRecorder.setOutputFile(filePath); in mediaRecorderRecord()
469 mRecorder.prepare(); in mediaRecorderRecord()
470 mRecorder.start(); in mediaRecorderRecord()
472 mRecorder.stop(); in mediaRecorderRecord()
474 mRecorder.release(); in mediaRecorderRecord()
/cts/tests/tests/media/src/android/media/cts/
DMediaRandomTest.java52 private MediaRecorder mRecorder; field in MediaRandomTest
74 mRecorder = new MediaRecorder(); in setUp()
86 if (mRecorder != null) { in tearDown()
87 mRecorder.release(); in tearDown()
88 mRecorder = null; in tearDown()
272 mRecorder.setOnErrorListener(new MediaRecorder.OnErrorListener() { in testRecorderRandomAction()
275 if (mRecorder == recorder && in testRecorderRandomAction()
305 mRecorder.setAudioSource(audioSource[index]); in testRecorderRandomAction()
312 mRecorder.setVideoSource(mParam % 2); in testRecorderRandomAction()
315 mRecorder.setOutputFormat(mParam % 5); in testRecorderRandomAction()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencySpeakerActivity.java81 private AudioRecord mRecorder; field in AudioFrequencySpeakerActivity
561 mRecorder.startRecording(); in startRecordingForReal()
562 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
592 if (mRecorder != null) { in stopRecordingForReal()
593 mRecorder.stop(); in stopRecordingForReal()
594 mRecorder.release(); in stopRecordingForReal()
595 mRecorder = null; in stopRecordingForReal()
617 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
622 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
623 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyLineActivity.java78 private AudioRecord mRecorder; field in AudioFrequencyLineActivity
543 mRecorder.startRecording(); in startRecordingForReal()
544 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
574 if (mRecorder != null) { in stopRecordingForReal()
575 mRecorder.stop(); in stopRecordingForReal()
576 mRecorder.release(); in stopRecordingForReal()
577 mRecorder = null; in stopRecordingForReal()
599 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
604 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
605 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyMicActivity.java95 private AudioRecord mRecorder; field in AudioFrequencyMicActivity
708 mRecorder.startRecording(); in startRecordingForReal()
709 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
738 if (mRecorder != null) { in stopRecordingForReal()
739 mRecorder.stop(); in stopRecordingForReal()
740 mRecorder.release(); in stopRecordingForReal()
741 mRecorder = null; in stopRecordingForReal()
763 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
768 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
769 mRecorder.release(); in initRecord()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java561 private MediaRecorder mRecorder; field in RVCVRecordActivity.VideoRecorder
579 mRecorder = new MediaRecorder(); in init()
581 mRecorder.setCamera(mCamera); in init()
583 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in init()
584 mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in init()
586 mRecorder.setProfile(mProfile); in init()
589 mRecorder.setOutputFile(getVideoRecFilePath()); in init()
590 mRecorder.prepare(); in init()
597 mRecorder.start(); in init()
600 mRecorder.reset(); in init()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java152 mSpanSet.mRecorder.assertRemoved(span, originalStart, originalEnd); in checkSpanPositions()
225 mSpanSet.mRecorder.assertChanged(span, originalStart, originalEnd, start, end); in checkSpanPositions()
227 mSpanSet.mRecorder.assertUnmodified(span); in checkSpanPositions()
255 mReplacementSpanSet.mRecorder.assertUnmodified(span); in checkReplacementSpanPositions()
271 mSpanSet.mRecorder.assertAdded(span, start, end); in checkReplacementSpanPositions()
276 mSpanSet.mRecorder.assertUnmodified(span); in checkReplacementSpanPositions()
327 private SpanWatcherRecorder mRecorder; field in SpannableStringBuilderSpanTest.SpanSet
338 mRecorder = new SpanWatcherRecorder(); in SpanSet()
378 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
379 mRecorder.reset(spannable); in initSpans()