/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundRecorderObject.java | 29 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 …]
|
D | AudioInColdStartLatencyActivity.java | 49 private Recorder mRecorder; field in AudioInColdStartLatencyActivity 127 mRecorder = (new RecorderBuilder()) in startAudioTest() 131 mRecorder.setupStream(NUM_CHANNELS, mSampleRate, mNumBufferFrames); in startAudioTest() 142 mRecorder.startStream(); in startAudioTest() 161 mRecorder.stopStream(); in stopAudioTest() 162 mRecorder.teardownStream(); in stopAudioTest()
|
D | AudioFrequencyLineActivity.java | 64 private AudioRecord mRecorder; field in AudioFrequencyLineActivity 523 mRecorder.startRecording(); in startRecordingForReal() 524 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal() 554 if (mRecorder != null) { in stopRecordingForReal() 555 mRecorder.stop(); in stopRecordingForReal() 556 mRecorder.release(); in stopRecordingForReal() 557 mRecorder = null; in stopRecordingForReal() 579 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord() 585 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord() 586 mRecorder.release(); in initRecord() [all …]
|
D | AudioFrequencySpeakerActivity.java | 71 private AudioRecord mRecorder; field in AudioFrequencySpeakerActivity 550 mRecorder.startRecording(); in startRecordingForReal() 551 if (mRecorder.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { in startRecordingForReal() 581 if (mRecorder != null) { in stopRecordingForReal() 582 mRecorder.stop(); in stopRecordingForReal() 583 mRecorder.release(); in stopRecordingForReal() 584 mRecorder = null; in stopRecordingForReal() 606 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord() 611 if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) { in initRecord() 612 mRecorder.release(); in initRecord() [all …]
|
D | AudioFrequencyMicActivity.java | 97 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 …]
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 58 private MediaRecorder mRecorder; field in MediaRecorderStressTest 261 mRecorder = new MediaRecorder(); in testStressRecorder() 267 mRecorder.setOnErrorListener(mRecorderErrorCallback); in testStressRecorder() 268 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressRecorder() 269 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in testStressRecorder() 270 mRecorder.setOutputFile(filename); in testStressRecorder() 271 mRecorder.setVideoFrameRate(mFrameRate); in testStressRecorder() 272 mRecorder.setVideoSize(width, height); in testStressRecorder() 274 mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); in testStressRecorder() 277 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in testStressRecorder() [all …]
|
D | CodecTest.java | 465 MediaRecorder mRecorder = new MediaRecorder(); in mediaRecorderRecord() local 466 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in mediaRecorderRecord() 467 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in mediaRecorderRecord() 468 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in mediaRecorderRecord() 469 mRecorder.setOutputFile(filePath); in mediaRecorderRecord() 470 mRecorder.prepare(); in mediaRecorderRecord() 471 mRecorder.start(); in mediaRecorderRecord() 473 mRecorder.stop(); in mediaRecorderRecord() 475 mRecorder.release(); in mediaRecorderRecord()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRandomTest.java | 55 private MediaRecorder mRecorder; field in MediaRandomTest 75 mRecorder = new MediaRecorder(); in setUp() 87 if (mRecorder != null) { in tearDown() 88 mRecorder.release(); in tearDown() 89 mRecorder = null; in tearDown() 287 mRecorder.setOnErrorListener(new MediaRecorder.OnErrorListener() { in testRecorderRandomAction() 290 if (mRecorder == recorder && in testRecorderRandomAction() 320 mRecorder.setAudioSource(audioSource[index]); in testRecorderRandomAction() 327 mRecorder.setVideoSource(mParam % 2); in testRecorderRandomAction() 330 mRecorder.setOutputFormat(mParam % 5); in testRecorderRandomAction() [all …]
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/ |
D | DuplexAudioManager.java | 49 private Recorder mRecorder; field in DuplexAudioManager 64 return mRecorder; in getRecorder() 77 mRecorder = new RecorderBuilder() in setupStreams() 82 mRecorder.setInputPreset(mInputPreset); in setupStreams() 84 mRecorder.setRouteDevice(mRecorderSelectedDevice); in setupStreams() 85 int errorCode = mRecorder.setupStream( in setupStreams() 91 mNumRecorderBufferFrames = mRecorder.getNumBufferFrames(); in setupStreams() 125 if (mRecorder != null && (result = mRecorder.startStream()) != StreamBase.OK) { in start() 145 if (mRecorder != null) { in stop() 146 int result1 = mRecorder.stopStream(); in stop() [all …]
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/ |
D | JavaSinkHandler.java | 31 protected JavaRecorder mRecorder; field in JavaSinkHandler 37 mRecorder = recorder; in JavaSinkHandler() 62 mSink.push(mRecorder.getDataBuffer(), in handleMessage() 63 mRecorder.getNumBufferFrames(), mRecorder.getChannelCount()); in handleMessage()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 663 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/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/ |
D | MetricQueryBuilder.java | 33 private final EnterpriseMetricsRecorder mRecorder; field in MetricQueryBuilder 48 mRecorder = recorder; in MetricQueryBuilder() 85 for (EnterpriseMetricInfo m : mRecorder.fetchLatestData()) { in get()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 171 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()
|