Home
last modified time | relevance | path

Searched refs:mAudioCapturer (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DAudioCaptureSessionTests.java49 @Mock AudioCapturer mAudioCapturer; field in AudioCaptureSessionTests
67 /* id= */ 1, mAudioCapturer, /* captureChunkStreamObserverOutputStream= */ null); in create_throwsNullPointerException_nullCaptureChunkStreamObserverOutputStream()
72 AudioCaptureSession.create(1, mAudioCapturer, mCaptureChunkStreamObserverOutputStream); in create_attachesOutputStreamToAudioCapturer()
73 verify(mAudioCapturer).attachOutput(mCaptureChunkStreamObserverOutputStream); in create_attachesOutputStreamToAudioCapturer()
80 1, mAudioCapturer, mCaptureChunkStreamObserverOutputStream)); in create_returnsNonNullSession()
88 1, mAudioCapturer, mCaptureChunkStreamObserverOutputStream); in start_opensAudioCapturer()
92 verify(mAudioCapturer).open(); in start_opensAudioCapturer()
99 1, mAudioCapturer, mCaptureChunkStreamObserverOutputStream); in start_throwsIOException_whenCapturerFails()
100 doThrow(IOException.class).when(mAudioCapturer).open(); in start_throwsIOException_whenCapturerFails()
112 1, mAudioCapturer, mCaptureChunkStreamObserverOutputStream); in stop_closesAudioCapturer()
[all …]
DAudioCaptureSessionFactoryImplTests.java47 @Mock AudioCapturer mAudioCapturer; field in AudioCaptureSessionFactoryImplTests
67 mAudioCaptureSessionFactory.createCaptureSession(mStreamObserver, mAudioCapturer)); in createCaptureSession_returnsNonNullCaptureSession()
73 mAudioCaptureSessionFactory.createCaptureSession(mStreamObserver, mAudioCapturer); in createCaptureSession_usesUniqueIdentifiers()
75 mAudioCaptureSessionFactory.createCaptureSession(mStreamObserver, mAudioCapturer); in createCaptureSession_usesUniqueIdentifiers()
77 mAudioCaptureSessionFactory.createCaptureSession(mStreamObserver, mAudioCapturer); in createCaptureSession_usesUniqueIdentifiers()
DAudioTestHarnessImplTests.java74 @Mock AudioCapturer mAudioCapturer; field in AudioTestHarnessImplTests
109 when(mAudioSystemService.createWithDefaultAudioFormat(any())).thenReturn(mAudioCapturer); in setUp()
135 verify(mAudioCaptureSessionFactory).createCaptureSession(any(), eq(mAudioCapturer)); in capture_properlyCreatesCaptureSession()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/
DAudioCaptureSession.java39 private final AudioCapturer mAudioCapturer; field in AudioCaptureSession
57 mAudioCapturer = audioCapturer; in AudioCaptureSession()
85 mAudioCapturer.open(); in start()
99 mAudioCapturer.close(); in stop()