/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 57 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 …]
|
D | CodecTest.java | 464 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/ |
D | MediaRandomTest.java | 52 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/ |
D | USBAudioPeripheralRecordActivity.java | 40 private StreamRecorder mRecorder = null; field in USBAudioPeripheralRecordActivity 54 if (mRecorder != null) { in connectWaveView() 55 float[] smplFloatBuff = mRecorder.getBurstBuffer(); in connectWaveView() 56 int numChans = mRecorder.getNumChannels(); in connectWaveView() 61 mRecorder.setListener(mRecordListener); in connectWaveView() 70 if (mRecorder == null) { in startRecording() 71 mRecorder = new StreamRecorder(); in startRecording() 72 } else if (mRecorder.isRecording()) { in startRecording() 73 mRecorder.stop(); in startRecording() 78 if (mRecorder.open(numChans, mSystemSampleRate, mSystemBufferSize)) { in startRecording() [all …]
|
D | AudioFrequencyLineActivity.java | 75 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 …]
|
D | AudioFrequencySpeakerActivity.java | 81 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 …]
|
D | AudioFrequencyMicActivity.java | 95 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 …]
|
D | AudioFrequencyUnprocessedActivity.java | 118 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/ |
D | RVCVRecordActivity.java | 617 private MediaRecorder mRecorder; field in RVCVRecordActivity.VideoRecorder 635 mRecorder = new MediaRecorder(); in init() 637 mRecorder.setCamera(mCamera); in init() 639 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in init() 640 mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in init() 642 mRecorder.setProfile(mProfile); in init() 645 mRecorder.setOutputFile(getVideoRecFilePath()); in init() 646 mRecorder.prepare(); in init() 653 mRecorder.start(); in init() 656 mRecorder.reset(); in init() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 170 mSpanSet.mRecorder.verifyRemoved(span, originalStart, originalEnd); in verifySpanPositions() 243 mSpanSet.mRecorder.verifyChanged(span, originalStart, originalEnd, start, end); in verifySpanPositions() 245 mSpanSet.mRecorder.verifyUnmodified(span); in verifySpanPositions() 273 mReplacementSpanSet.mRecorder.verifyUnmodified(span); in verifyReplacementSpanPositions() 289 mSpanSet.mRecorder.verifyAdded(span, start, end); in verifyReplacementSpanPositions() 294 mSpanSet.mRecorder.verifyUnmodified(span); in verifyReplacementSpanPositions() 345 private SpanWatcherRecorder mRecorder; field in SpannableStringBuilderSpanTest.SpanSet 356 mRecorder = new SpanWatcherRecorder(); in SpanSet() 396 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in initSpans() 397 mRecorder.reset(spannable); in initSpans()
|