Home
last modified time | relevance | path

Searched refs:mAudioRecord (Results 1 – 2 of 2) sorted by relevance

/packages/apps/SpeechRecorder/src/com/android/speechrecorder/
DMicrophoneInputStream.java37 private final AudioRecord mAudioRecord; field in MicrophoneInputStream
45 mAudioRecord = createAudioRecord(); in MicrophoneInputStream()
66 mAudioRecord.startRecording(); in maybeStartRecording()
68 int recordingState = mAudioRecord.getRecordingState(); in maybeStartRecording()
84 final int ret = mAudioRecord.read(b, offset, length); in read()
95 mAudioRecord.stop(); in close()
96 mAudioRecord.release(); in close()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmService.java391 if (mAudioRecord != null) { in startRender()
392 mAudioRecord.stop(); in startRender()
393 mAudioRecord.release(); in startRender()
394 mAudioRecord = null; in startRender()
428 private AudioRecord mAudioRecord = null; field in FmService
473 if (mAudioRecord.getRecordingState() == AudioRecord.RECORDSTATE_STOPPED) { in run()
474 mAudioRecord.startRecording(); in run()
480 int size = mAudioRecord.read(buffer, 0, RECORD_BUF_SIZE); in run()
507 if (mAudioRecord.getRecordingState() == AudioRecord.RECORDSTATE_RECORDING) { in run()
508 mAudioRecord.stop(); in run()
[all …]