Searched refs:mAudioRecord (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioRecord_BufferSizeTest.java | 47 private AudioRecord mAudioRecord; field in AudioRecord_BufferSizeTest 61 if (mAudioRecord != null) { in testGetMinBufferSize() 63 mAudioRecord.release(); in testGetMinBufferSize() 64 mAudioRecord = null; in testGetMinBufferSize() 78 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record() 80 mAudioRecord.startRecording(); in record() 81 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in record() 87 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); in record() 89 mAudioRecord.stop(); in record() 90 assertEquals(AudioRecord.RECORDSTATE_STOPPED, mAudioRecord.getRecordingState()); in record() [all …]
|
D | AudioRecordingConfigurationTest.java | 50 private AudioRecord mAudioRecord; field in AudioRecordingConfigurationTest 73 mAudioRecord = new AudioRecord.Builder() in setUp() 90 assertNotNull(mAudioRecord); in setUp() 97 mAudioRecord.stop(); in tearDown() 98 mAudioRecord.release(); in tearDown() 116 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioManagerGetActiveRecordConfigurations() 117 mAudioRecord.startRecording(); in testAudioManagerGetActiveRecordConfigurations() 118 assertEquals(AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in testAudioManagerGetActiveRecordConfigurations() 130 verifyAudioConfig(TEST_AUDIO_SOURCE, mAudioRecord.getAudioSessionId(), in testAudioManagerGetActiveRecordConfigurations() 131 mAudioRecord.getFormat(), mAudioRecord.getRoutedDevice(), configs)); in testAudioManagerGetActiveRecordConfigurations() [all …]
|
D | AudioRecordTest.java | 89 private AudioRecord mAudioRecord; field in AudioRecordTest 129 mAudioRecord = new AudioRecord.Builder() in setUp() 149 assertNotNull(mAudioRecord); in setUp() 155 mAudioRecord.release(); in tearDown() 171 assertEquals(AudioFormat.ENCODING_PCM_16BIT, mAudioRecord.getAudioFormat()); in testAudioRecordProperties() 172 assertEquals(MediaRecorder.AudioSource.DEFAULT, mAudioRecord.getAudioSource()); in testAudioRecordProperties() 173 assertEquals(1, mAudioRecord.getChannelCount()); in testAudioRecordProperties() 175 mAudioRecord.getChannelConfiguration()); in testAudioRecordProperties() 176 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioRecordProperties() 177 assertEquals(SAMPLING_RATE_HZ, mAudioRecord.getSampleRate()); in testAudioRecordProperties() [all …]
|
D | AudioFocusTest.java | 789 private AudioRecord mAudioRecord; field in AudioFocusTest 796 assertNull("Non null MediaRecorder before starting record, bad state", mAudioRecord); in startRecording() 797 mAudioRecord = new AudioRecord.Builder() in startRecording() 809 mAudioRecord.getAudioSessionId(), MediaRecorder.AudioSource.VOICE_RECOGNITION); in startRecording() 810 mAudioRecord.registerAudioRecordingCallback(Executors.newSingleThreadExecutor(), in startRecording() 812 mAudioRecord.startRecording(); in startRecording() 814 AudioRecord.RECORDSTATE_RECORDING, mAudioRecord.getRecordingState()); in startRecording() 818 assertTrue(mRecordingCallback.hasRecording(mAudioRecord.getAudioSessionId(), in startRecording() 824 if (mAudioRecord == null) { in stopRecording() 827 final int session = mAudioRecord.getAudioSessionId(); in stopRecording() [all …]
|
D | RoutingTest.java | 500 AudioRecord mAudioRecord; field in RoutingTest.AudioRecordPuller 508 mAudioRecord = audioRecord; in AudioRecordPuller() 518 while (mAudioRecord != null && mRecording) { in run() 519 mAudioRecord.read(mAudioData, 0, mBufferSize); in run()
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/ |
D | JavaRecorder.java | 46 private AudioRecord mAudioRecord = null; field in JavaRecorder 52 if (mAudioRecord != null) { in getRoutedDeviceId() 53 AudioDeviceInfo routedDevice = mAudioRecord.getRoutedDevice(); in getRoutedDeviceId() 82 return mAudioRecord != null ? mAudioRecord.getChannelCount() : -1; in getChannelCount() 100 return mAudioRecord; in getAudioRecord() 138 mAudioRecord = recordBuilder.build(); in setupStream() 139 mNumExchangeFrames = mAudioRecord.getBufferSizeInFrames(); in setupStream() 142 + mAudioRecord.getBufferSizeInFrames()); in setupStream() 144 mAudioRecord.setPreferredDevice(builder.getRouteDevice()); in setupStream() 177 if (mAudioRecord != null) { in teardownStream() [all …]
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | SignalObserver.java | 188 private final AudioRecord mAudioRecord; field in SignalObserver.AudioRecordSource 191 mAudioRecord = audioRecord; in AudioRecordSource() 197 mAudioRecord.startRecording(); in startRecording() 202 return mAudioRecord.getSampleRate(); in getSampleRate() 207 return mAudioRecord.getChannelCount(); in getChannelCount() 212 return mAudioRecord.read(buffer, offsetInShorts, length, readMode); in read()
|