Home
last modified time | relevance | path

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

/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderRandomTest.java58 private MediaRecorder mRecorder; field in MediaRecorderRandomTest
73 getActivity().runOnUiThread(() -> mRecorder = new MediaRecorder()); in setUp()
83 if (mRecorder != null) { in tearDown()
84 mRecorder.release(); in tearDown()
85 mRecorder = null; in tearDown()
99 mRecorder.setOnErrorListener(new MediaRecorder.OnErrorListener() { in testRecorderRandomAction()
102 if (mRecorder == recorder && in testRecorderRandomAction()
134 mRecorder.setAudioSource(audioSource[index]); in testRecorderRandomAction()
141 mRecorder.setVideoSource(param % 2); in testRecorderRandomAction()
144 mRecorder.setOutputFormat(param % 5); in testRecorderRandomAction()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundRecorderObject.java29 private AudioRecord mRecorder; field in SoundRecorderObject
50 if (mRecorder != null) { in getAudioSessionId()
51 return mRecorder.getAudioSessionId(); in getAudioSessionId()
78 mRecorder.startRecording(); in startRecordingForReal()
79 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
105 if (mRecorder != null) { in stopRecordingForReal()
106 mRecorder.stop(); in stopRecordingForReal()
107 mRecorder.release(); in stopRecordingForReal()
108 mRecorder = null; in stopRecordingForReal()
130 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
[all …]
DAudioInColdStartLatencyActivity.java46 private Recorder mRecorder; field in AudioInColdStartLatencyActivity
115 mRecorder = builder.build(); in runAudioTest()
126 mRecorder.startStream(); in runAudioTest()
145 mRecorder.stopStream(); in stopAudio()
146 mRecorder.teardownStream(); in stopAudio()
DAudioFrequencySpeakerActivity.java73 private AudioRecord mRecorder; field in AudioFrequencySpeakerActivity
557 mRecorder.startRecording(); in startRecordingForReal()
558 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
588 if (mRecorder != null) { in stopRecordingForReal()
589 mRecorder.stop(); in stopRecordingForReal()
590 mRecorder.release(); in stopRecordingForReal()
591 mRecorder = null; in stopRecordingForReal()
613 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
618 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
619 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyLineActivity.java73 private AudioRecord mRecorder; field in AudioFrequencyLineActivity
535 mRecorder.startRecording(); in startRecordingForReal()
536 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
566 if (mRecorder != null) { in stopRecordingForReal()
567 mRecorder.stop(); in stopRecordingForReal()
568 mRecorder.release(); in stopRecordingForReal()
569 mRecorder = null; in stopRecordingForReal()
591 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
597 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
598 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyMicActivity.java96 private AudioRecord mRecorder; field in AudioFrequencyMicActivity
765 mRecorder.startRecording(); in startRecordingForReal()
766 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
795 if (mRecorder != null) { in stopRecordingForReal()
796 mRecorder.stop(); in stopRecordingForReal()
797 mRecorder.release(); in stopRecordingForReal()
798 mRecorder = null; in stopRecordingForReal()
820 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
825 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
826 mRecorder.release(); in initRecord()
[all …]
DAudioFrequencyUnprocessedActivity.java114 private AudioRecord mRecorder; field in AudioFrequencyUnprocessedActivity
997 mRecorder.startRecording(); in startRecordingForReal()
998 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal()
1027 if (mRecorder != null) { in stopRecordingForReal()
1028 mRecorder.stop(); in stopRecordingForReal()
1029 mRecorder.release(); in stopRecordingForReal()
1030 mRecorder = null; in stopRecordingForReal()
1052 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
1057 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord()
1058 mRecorder.release(); in initRecord()
[all …]
DAudioDisconnectActivity.java64 private OboeRecorder mRecorder; field in AudioDisconnectActivity
584 mRecorder = (OboeRecorder) recorderBuilder.build(); in startAudio()
585 mRecorder.startStream(); in startAudio()
587 mStream = mRecorder; in startAudio()
614 if (mRecorder != null) { in stopAudio()
615 mRecorder.stopStream(); in stopAudio()
616 mRecorder.teardownStream(); in stopAudio()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java63 private MediaRecorder mRecorder; field in MediaRecorderStressTest
266 mRecorder = new MediaRecorder(); in testStressRecorder()
272 mRecorder.setOnErrorListener(mRecorderErrorCallback); in testStressRecorder()
273 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressRecorder()
274 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in testStressRecorder()
275 mRecorder.setOutputFile(filename); in testStressRecorder()
276 mRecorder.setVideoFrameRate(mFrameRate); in testStressRecorder()
277 mRecorder.setVideoSize(width, height); in testStressRecorder()
279 mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); in testStressRecorder()
282 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in testStressRecorder()
[all …]
DCodecTest.java470 MediaRecorder mRecorder = new MediaRecorder(); in mediaRecorderRecord() local
471 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in mediaRecorderRecord()
472 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in mediaRecorderRecord()
473 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in mediaRecorderRecord()
474 mRecorder.setOutputFile(filePath); in mediaRecorderRecord()
475 mRecorder.prepare(); in mediaRecorderRecord()
476 mRecorder.start(); in mediaRecorderRecord()
478 mRecorder.stop(); in mediaRecorderRecord()
480 mRecorder.release(); in mediaRecorderRecord()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/
DDuplexAudioManager.java54 private Recorder mRecorder; field in DuplexAudioManager
86 return mRecorder; in getRecorder()
143 return mRecorder != null ? mRecorder.getChannelCount() : -1; in getRecorderChannelCount()
174 mRecorder = builder.build(); in buildStreams()
224 if (mRecorder != null && (result = mRecorder.startStream()) != StreamBase.OK) { in start()
252 if (mRecorder != null) { in stop()
253 int result1 = mRecorder.stopStream(); in stop()
254 int result2 = mRecorder.teardownStream(); in stop()
271 return mRecorder != null ? mRecorder.getSystemBurstFrames() : 0; in getNumRecorderBufferFrames()
289 || mRecorder == null || !mRecorder.isRecording()) { in validateRouting()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/
DJavaSinkHandler.java33 protected JavaRecorder mRecorder; field in JavaSinkHandler
39 mRecorder = recorder; in JavaSinkHandler()
64 mSink.push(mRecorder.getDataBuffer(), in handleMessage()
65 mRecorder.getNumExchangeFrames(), mRecorder.getChannelCount()); in handleMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java676 private MediaRecorder mRecorder; field in RVCVRecordActivity.VideoRecorder
694 mRecorder = new MediaRecorder(); in init()
700 mRecorder.reset(); in init()
701 mRecorder.release(); in init()
709 mRecorder.setCamera(mCamera); in init()
710 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in init()
711 mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in init()
712 mRecorder.setProfile(mProfile); in init()
719 mRecorder.setOutputFile(getVideoRecFilePath()); in init()
720 mRecorder.prepare(); in init()
[all …]
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/
DMetricQueryBuilder.java43 private final EnterpriseMetricsRecorder mRecorder; field in MetricQueryBuilder
61 mRecorder = recorder; in MetricQueryBuilder()
109 for (EnterpriseMetricInfo m : mRecorder.fetchLatestData()) { in get()
/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()