Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DLevelTrackingMediaRecorder.java67 private MediaRecorder mRecorder; field in LevelTrackingMediaRecorder
83 return mRecorder != null; in isRecording()
94 if (mRecorder == null) { in startRecording()
97 mRecorder = new MediaRecorder(); in startRecording()
107 mRecorder.setAudioSource(MEDIA_RECORDER_AUDIO_SOURCE); in startRecording()
108 mRecorder.setOutputFormat(MEDIA_RECORDER_OUTPUT_FORMAT); in startRecording()
109 mRecorder.setAudioEncoder(MEDIA_RECORDER_AUDIO_ENCODER); in startRecording()
110 mRecorder.setOutputFile(mOutputFD.getFileDescriptor()); in startRecording()
111 mRecorder.setMaxFileSize(maxSize); in startRecording()
112 mRecorder.setOnErrorListener(errorListener); in startRecording()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsOperationRecorderTest.java63 private VmsOperationRecorder mRecorder; field in VmsOperationRecorderTest
84 mRecorder = new VmsOperationRecorder(mWriter); in setUp()
89 mRecorder.subscribe(layer1); in testSubscribe()
95 mRecorder.unsubscribe(layer1); in testUnsubscribe()
101 mRecorder.startMonitoring(); in testStartMonitoring()
107 mRecorder.stopMonitoring(); in testStopMonitoring()
113 mRecorder.setLayersOffering(layersOffering0); in testSetLayersOffering0()
119 mRecorder.setLayersOffering(layersOffering2); in testSetLayersOffering2()
129 mRecorder.getPublisherId(9); in testGetPublisherId()
135 mRecorder.addSubscription(42, layer1); in testAddSubscription()
[all …]
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DRecorder.java58 MediaRecorder mRecorder = null; field in Recorder
72 return mRecorder.getMaxAmplitude(); in getMaxAmplitude()
162 mRecorder = new MediaRecorder(); in startRecording()
163 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in startRecording()
164 mRecorder.setOutputFormat(outputfileformat); in startRecording()
165 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in startRecording()
166 mRecorder.setOutputFile(mSampleFile.getAbsolutePath()); in startRecording()
170 mRecorder.prepare(); in startRecording()
173 mRecorder.reset(); in startRecording()
174 mRecorder.release(); in startRecording()
[all …]
DSoundRecorder.java213 Recorder mRecorder; field in SoundRecorder
272 mRecorder = new Recorder(); in onCreate()
273 mRecorder.setOnStateChangedListener(this); in onCreate()
288 mRecorder.restoreState(recorderState); in onCreate()
310 if (mRecorder.sampleLength() == 0) in onSaveInstanceState()
315 mRecorder.saveState(recorderState); in onSaveInstanceState()
350 mVUMeter.setRecorder(mRecorder); in initResourceRefs()
385 mRecorder.startRecording(MediaRecorder.OutputFormat.AMR_NB, ".amr", this); in onClick()
388 mRecorder.startRecording(MediaRecorder.OutputFormat.THREE_GPP, ".3gpp", in onClick()
396 mRecorder.sampleFile(), mMaxFileSize); in onClick()
[all …]
DVUMeter.java40 Recorder mRecorder; field in VUMeter
61 mRecorder = null; in init()
67 mRecorder = recorder; in setRecorder()
79 if (mRecorder != null) in onDraw()
80 angle += (float)(maxAngle - minAngle)*mRecorder.getMaxAmplitude()/32768; in onDraw()
103 if (mRecorder != null && mRecorder.state() == Recorder.RECORDING_STATE) in onDraw()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java86 private MediaRecorder mRecorder; field in BugReportActivity
362 mRecorder = new MediaRecorder(); in startRecordingWithPermission()
363 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in startRecordingWithPermission()
364 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in startRecordingWithPermission()
365 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); in startRecordingWithPermission()
366 mRecorder.setOutputFile(recordingFile); in startRecordingWithPermission()
369 mRecorder.prepare(); in startRecordingWithPermission()
376 mRecorder.start(); in startRecordingWithPermission()
377 mVoiceRecordingView.setRecorder(mRecorder); in startRecordingWithPermission()
387 if (mRecorder != null) { in stopAudioRecording()
[all …]
DVoiceRecordingView.java47 private MediaRecorder mRecorder; field in VoiceRecordingView
61 mRecorder = recorder; in setRecorder()
81 if (mRecorder != null) { in updateCurrentRadius()
83 radius += maxRadius * mRecorder.getMaxAmplitude() in updateCurrentRadius()
115 if (mRecorder != null) { in onDraw()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionWorker.java161 private SampleExtractor mRecorder; field in TunerRecordingSessionWorker
303 if (!mRecorder.prepare()) { in handleMessage()
393 if (mRecorder != null) { in reset()
394 mRecorder.release(); in reset()
395 mRecorder = null; in reset()
458 mRecorder = in doStartRecording()
466 mRecorder.setOnCompletionListener(this, mHandler); in doStartRecording()
502 if (mRecorder != null) { in stopRecorder()
503 mRecorder.release(); in stopRecorder()
505 mRecorder = null; in stopRecorder()