Home
last modified time | relevance | path

Searched refs:mRecorder (Results 1 – 9 of 9) 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/
DAudioFrequencyLineActivity.java75 private AudioRecord mRecorder; field in AudioFrequencyLineActivity
540 mRecorder.startRecording(); in startRecordingForReal()
541 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
571 if (mRecorder != null) { in stopRecordingForReal()
572 mRecorder.stop(); in stopRecordingForReal()
573 mRecorder.release(); in stopRecordingForReal()
574 mRecorder = null; in stopRecordingForReal()
596 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
602 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
603 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencySpeakerActivity.java81 private AudioRecord mRecorder; field in AudioFrequencySpeakerActivity
558 mRecorder.startRecording(); in startRecordingForReal()
559 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
589 if (mRecorder != null) { in stopRecordingForReal()
590 mRecorder.stop(); in stopRecordingForReal()
591 mRecorder.release(); in stopRecordingForReal()
592 mRecorder = null; in stopRecordingForReal()
614 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
619 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
620 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyUnprocessedActivity.java84 private AudioRecord mRecorder; field in AudioFrequencyUnprocessedActivity
549 mRecorder.startRecording(); in startRecordingForReal()
550 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
579 if (mRecorder != null) { in stopRecordingForReal()
580 mRecorder.stop(); in stopRecordingForReal()
581 mRecorder.release(); in stopRecordingForReal()
582 mRecorder = null; in stopRecordingForReal()
604 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
609 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
610 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyMicActivity.java95 private AudioRecord mRecorder; field in AudioFrequencyMicActivity
698 mRecorder.startRecording(); in startRecordingForReal()
699 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
728 if (mRecorder != null) { in stopRecordingForReal()
729 mRecorder.stop(); in stopRecordingForReal()
730 mRecorder.release(); in stopRecordingForReal()
731 mRecorder = null; in stopRecordingForReal()
753 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
758 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
759 mRecorder.release(); in initRecord()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java593 private MediaRecorder mRecorder; field in RVCVRecordActivity.VideoRecorder
611 mRecorder = new MediaRecorder(); in init()
613 mRecorder.setCamera(mCamera); in init()
615 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in init()
616 mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in init()
618 mRecorder.setProfile(mProfile); in init()
621 mRecorder.setOutputFile(getVideoRecFilePath()); in init()
622 mRecorder.prepare(); in init()
629 mRecorder.start(); in init()
632 mRecorder.reset(); in init()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java157 mSpanSet.mRecorder.assertRemoved(span, originalStart, originalEnd); in checkSpanPositions()
230 mSpanSet.mRecorder.assertChanged(span, originalStart, originalEnd, start, end); in checkSpanPositions()
232 mSpanSet.mRecorder.assertUnmodified(span); in checkSpanPositions()
260 mReplacementSpanSet.mRecorder.assertUnmodified(span); in checkReplacementSpanPositions()
276 mSpanSet.mRecorder.assertAdded(span, start, end); in checkReplacementSpanPositions()
281 mSpanSet.mRecorder.assertUnmodified(span); in checkReplacementSpanPositions()
332 private SpanWatcherRecorder mRecorder; field in SpannableStringBuilderSpanTest.SpanSet
343 mRecorder = new SpanWatcherRecorder(); in SpanSet()
383 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
384 mRecorder.reset(spannable); in initSpans()