Home
last modified time | relevance | path

Searched refs:mHeadsetProxy (Results 1 – 3 of 3) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java64 @Mock private BluetoothHeadsetProxy mHeadsetProxy; field in BluetoothRouteManagerTest
89 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileNotConnected()
128 when(mHeadsetProxy.getAudioState(DEVICE1)) in testAudioOnDeviceWithScoOffActiveDevice()
146 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileConnectedToAnotherDevice()
188 when(mHeadsetProxy.getConnectedDevices()).thenReturn(Arrays.asList(hfpDevices)); in setupConnectedDevices()
189 when(mHeadsetProxy.getActiveDevice()).thenReturn(hfpActiveDevice); in setupConnectedDevices()
190 when(mHeadsetProxy.getAudioState(hfpActiveDevice)) in setupConnectedDevices()
218 reset(mDeviceManager, mListener, mHeadsetProxy, mTimeoutsAdapter); in resetMocks()
219 when(mDeviceManager.getHeadsetService()).thenReturn(mHeadsetProxy); in resetMocks()
221 when(mHeadsetProxy.connectAudio()).thenReturn(true); in resetMocks()
[all …]
DBluetoothRouteTransitionTests.java239 @Mock private BluetoothHeadsetProxy mHeadsetProxy; field in BluetoothRouteTransitionTests
275 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions()
292 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions()
347 when(mHeadsetProxy.getConnectedDevices()).thenReturn(Arrays.asList(devices)); in setupConnectedDevices()
348 when(mHeadsetProxy.getActiveDevice()).thenReturn(activeDevice); in setupConnectedDevices()
349 when(mHeadsetProxy.getAudioState(nullable(BluetoothDevice.class))) in setupConnectedDevices()
352 when(mHeadsetProxy.getActiveDevice()).thenReturn(audioOnDevice); in setupConnectedDevices()
353 when(mHeadsetProxy.getAudioState(audioOnDevice)) in setupConnectedDevices()
361 when(mDeviceManager.getHeadsetService()).thenReturn(mHeadsetProxy); in setupStateMachine()
378 clearInvocations(mDeviceManager, mListener, mHeadsetProxy, mTimeoutsAdapter); in resetMocks()
DBluetoothDeviceManagerTest.java57 @Mock BluetoothHeadsetProxy mHeadsetProxy; field in BluetoothDeviceManagerTest
96 mBluetoothDeviceManager.setHeadsetServiceForTesting(mHeadsetProxy); in setUp()
224 verify(mHeadsetProxy).disconnectAudio(); in testConnectDisconnectAudioHeadset()
234 verify(mHeadsetProxy, never()).connectAudio(); in testConnectDisconnectAudioHearingAid()
241 verify(mHeadsetProxy).disconnectAudio(); in testConnectDisconnectAudioHearingAid()