Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioRecord_BufferSizeTest.java45 private AudioRecord mAudioRecord; field in AudioRecord_BufferSizeTest
58 if (mAudioRecord != null) { in testGetMinBufferSize()
60 mAudioRecord.release(); in testGetMinBufferSize()
61 mAudioRecord = null; in testGetMinBufferSize()
75 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record()
77 mAudioRecord.startRecording(); in record()
78 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in record()
84 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); in record()
86 mAudioRecord.stop(); in record()
87 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record()
[all …]
DAudioRecordingConfigurationTest.java52 private AudioRecord mAudioRecord; field in AudioRecordingConfigurationTest
75 mAudioRecord = new AudioRecord.Builder() in setUp()
92 assertNotNull(mAudioRecord); in setUp()
99 mAudioRecord.stop(); in tearDown()
100 mAudioRecord.release(); in tearDown()
118 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioManagerGetActiveRecordConfigurations()
119 mAudioRecord.startRecording(); in testAudioManagerGetActiveRecordConfigurations()
120 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in testAudioManagerGetActiveRecordConfigurations()
132 verifyAudioConfig(TEST_AUDIO_SOURCE, mAudioRecord.getAudioSessionId(), in testAudioManagerGetActiveRecordConfigurations()
133 mAudioRecord.getFormat(), mAudioRecord.getRoutedDevice(), configs)); in testAudioManagerGetActiveRecordConfigurations()
[all …]
DAudioRecordTest.java75 private AudioRecord mAudioRecord; field in AudioRecordTest
113 mAudioRecord = new AudioRecord.Builder() in setUp()
133 assertNotNull(mAudioRecord); in setUp()
139 mAudioRecord.release(); in tearDown()
155 assertEquals(AudioFormat.ENCODING_PCM_16BIT, mAudioRecord.getAudioFormat()); in testAudioRecordProperties()
156 assertEquals(MediaRecorder.AudioSource.DEFAULT, mAudioRecord.getAudioSource()); in testAudioRecordProperties()
157 assertEquals(1, mAudioRecord.getChannelCount()); in testAudioRecordProperties()
159 mAudioRecord.getChannelConfiguration()); in testAudioRecordProperties()
160 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioRecordProperties()
161 assertEquals(SAMPLING_RATE_HZ, mAudioRecord.getSampleRate()); in testAudioRecordProperties()
[all …]
DRoutingTest.java494 AudioRecord mAudioRecord; field in RoutingTest.AudioRecordPuller
502 mAudioRecord = audioRecord; in AudioRecordPuller()
512 while (mAudioRecord != null && mRecording) { in run()
513 mAudioRecord.read(mAudioData, 0, mBufferSize); in run()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DStreamRecorder.java44 private AudioRecord mAudioRecord = null; field in StreamRecorder
81 return mAudioRecord != null && mAudioRecord.getState() == AudioRecord.STATE_INITIALIZED; in isInitialized()
89 if (mAudioRecord != null) { in setRouting()
90 mAudioRecord.setPreferredDevice(mRoutingDevice); in setRouting()
146 mAudioRecord = builder.build(); in open_internal()
150 mAudioRecord = null; in open_internal()
175 mAudioRecord.release(); in close()
176 mAudioRecord = null; in close()
180 mAudioRecord.setPreferredDevice(mRoutingDevice); in start()
187 mAudioRecord.startRecording(); in start()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DTrivialRecorder.java29 AudioRecord mAudioRecord; field in TrivialRecorder
45 mAudioRecord = in TrivialRecorder()
60 public AudioRecord getAudioRecord() { return mAudioRecord; } in getAudioRecord()
87 mAudioRecord.release(); in shutDown()
92 mAudioRecord.startRecording(); in run()
97 mAudioRecord.read(mAudioData, 0, mBufferSize); in run()
99 mAudioRecord.stop(); in run()