Searched refs:mAudioRecord (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecord_BufferSizeTest.java | 43 private AudioRecord mAudioRecord; field in AudioRecord_BufferSizeTest 56 if (mAudioRecord != null) { in testGetMinBufferSize() 58 mAudioRecord.release(); in testGetMinBufferSize() 59 mAudioRecord = null; in testGetMinBufferSize() 73 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record() 75 mAudioRecord.startRecording(); in record() 76 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in record() 82 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); in record() 84 mAudioRecord.stop(); in record() 85 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record() [all …]
|
D | AudioRecordingConfigurationTest.java | 43 private AudioRecord mAudioRecord; field in AudioRecordingConfigurationTest 66 mAudioRecord = new AudioRecord.Builder() in setUp() 83 assertNotNull(mAudioRecord); in setUp() 90 mAudioRecord.stop(); in tearDown() 91 mAudioRecord.release(); in tearDown() 108 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioManagerGetActiveRecordConfigurations() 109 mAudioRecord.startRecording(); in testAudioManagerGetActiveRecordConfigurations() 110 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in testAudioManagerGetActiveRecordConfigurations() 122 verifyAudioConfig(TEST_AUDIO_SOURCE, mAudioRecord.getAudioSessionId(), in testAudioManagerGetActiveRecordConfigurations() 123 mAudioRecord.getFormat(), mAudioRecord.getRoutedDevice(), configs)); in testAudioManagerGetActiveRecordConfigurations() [all …]
|
D | AudioRecordTest.java | 47 private AudioRecord mAudioRecord; field in AudioRecordTest 85 mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, mHz, in setUp() 100 assertNotNull(mAudioRecord); in setUp() 106 mAudioRecord.release(); in tearDown() 122 assertEquals(AudioFormat.ENCODING_PCM_16BIT, mAudioRecord.getAudioFormat()); in testAudioRecordProperties() 123 assertEquals(MediaRecorder.AudioSource.DEFAULT, mAudioRecord.getAudioSource()); in testAudioRecordProperties() 124 assertEquals(1, mAudioRecord.getChannelCount()); in testAudioRecordProperties() 126 mAudioRecord.getChannelConfiguration()); in testAudioRecordProperties() 127 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioRecordProperties() 128 assertEquals(mHz, mAudioRecord.getSampleRate()); in testAudioRecordProperties() [all …]
|
D | RoutingTest.java | 389 AudioRecord mAudioRecord; field in RoutingTest.AudioRecordPuller 397 mAudioRecord = audioRecord; in AudioRecordPuller() 407 while (mAudioRecord != null && mRecording) { in run() 408 mAudioRecord.read(mAudioData, 0, mBufferSize); in run()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | TrivialRecorder.java | 29 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()
|