Home
last modified time | relevance | path

Searched refs:mRecorder (Results 1 – 10 of 10) 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()
278 mRecorder.setOnErrorListener(new MediaRecorder.OnErrorListener() { in testRecorderRandomAction()
281 if (mRecorder == recorder && in testRecorderRandomAction()
311 mRecorder.setAudioSource(audioSource[index]); in testRecorderRandomAction()
318 mRecorder.setVideoSource(mParam % 2); in testRecorderRandomAction()
321 mRecorder.setOutputFormat(mParam % 5); in testRecorderRandomAction()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralRecordActivity.java40 private StreamRecorder mRecorder = null; field in USBAudioPeripheralRecordActivity
58 if (mRecorder != null) { in connectWaveView()
59 float[] smplFloatBuff = mRecorder.getBurstBuffer(); in connectWaveView()
60 int numChans = mRecorder.getNumChannels(); in connectWaveView()
65 mRecorder.setListener(mRecordListener); in connectWaveView()
74 if (mRecorder == null) { in startRecording()
75 mRecorder = new StreamRecorder(); in startRecording()
76 } else if (mRecorder.isRecording()) { in startRecording()
77 mRecorder.stop(); in startRecording()
87 if (mRecorder.open(numChans, mSystemSampleRate, mSystemBufferSize)) { in startRecording()
[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 …]
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 …]
DAudioFrequencyMicActivity.java111 private AudioRecord mRecorder; field in AudioFrequencyMicActivity
776 mRecorder.startRecording(); in startRecordingForReal()
777 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
806 if (mRecorder != null) { in stopRecordingForReal()
807 mRecorder.stop(); in stopRecordingForReal()
808 mRecorder.release(); in stopRecordingForReal()
809 mRecorder = null; in stopRecordingForReal()
831 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
836 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
837 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyUnprocessedActivity.java118 private AudioRecord mRecorder; field in AudioFrequencyUnprocessedActivity
995 mRecorder.startRecording(); in startRecordingForReal()
996 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
1025 if (mRecorder != null) { in stopRecordingForReal()
1026 mRecorder.stop(); in stopRecordingForReal()
1027 mRecorder.release(); in stopRecordingForReal()
1028 mRecorder = null; in stopRecordingForReal()
1050 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
1055 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
1056 mRecorder.release(); in initRecord()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java663 private MediaRecorder mRecorder; field in RVCVRecordActivity.VideoRecorder
681 mRecorder = new MediaRecorder(); in init()
687 mRecorder.reset(); in init()
688 mRecorder.release(); in init()
696 mRecorder.setCamera(mCamera); in init()
697 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in init()
698 mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in init()
699 mRecorder.setProfile(mProfile); in init()
706 mRecorder.setOutputFile(getVideoRecFilePath()); in init()
707 mRecorder.prepare(); in init()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java171 mSpanSet.mRecorder.verifyRemoved(span, originalStart, originalEnd); in verifySpanPositions()
244 mSpanSet.mRecorder.verifyChanged(span, originalStart, originalEnd, start, end); in verifySpanPositions()
246 mSpanSet.mRecorder.verifyUnmodified(span); in verifySpanPositions()
274 mReplacementSpanSet.mRecorder.verifyUnmodified(span); in verifyReplacementSpanPositions()
290 mSpanSet.mRecorder.verifyAdded(span, start, end); in verifyReplacementSpanPositions()
295 mSpanSet.mRecorder.verifyUnmodified(span); in verifyReplacementSpanPositions()
346 private SpanWatcherRecorder mRecorder; field in SpannableStringBuilderSpanTest.SpanSet
357 mRecorder = new SpanWatcherRecorder(); in SpanSet()
397 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans()
398 mRecorder.reset(spannable); in initSpans()