Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java99 private HeadsetProfile mHeadsetProfile; field in HandsFreeProfileOutputPreferenceControllerTest
145 when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile); in setUp()
209 verify(mHeadsetProfile, never()).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()
222 verify(mHeadsetProfile).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()
237 verify(mHeadsetProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()
251 verify(mHeadsetProfile, times(0)).setActiveDevice(any(BluetoothDevice.class)); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile()
279 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
280 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
301 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
302 when(mHeadsetProfile.getActiveDevice()).thenReturn(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
[all …]
DAudioOutputSwitchPreferenceControllerTest.java109 private HeadsetProfile mHeadsetProfile; field in AudioOutputSwitchPreferenceControllerTest
159 when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile); in setUp()
333 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
351 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
369 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
385 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()
439 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_oneConnectedHfpDevice_shouldAddDeviceToList()
456 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_moreThanOneConnectedHfpDevice_shouldAddDeviceToList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDevicePreferenceControllerTest.java130 @Mock private HeadsetProfile mHeadsetProfile; field in AudioSharingDevicePreferenceControllerTest
165 when(mHeadsetProfile.getProfileId()).thenReturn(BluetoothProfile.HEADSET); in setUp()
383 when(mHeadsetProfile.getConnectionStatus(mDevice)) in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing()
385 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)) in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing()
388 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing()
398 when(mHeadsetProfile.getConnectionStatus(mDevice)) in onProfileConnectionStateChanged_nonLeaFirstProfileConnected_handle()
400 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)) in onProfileConnectionStateChanged_nonLeaFirstProfileConnected_handle()
403 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaFirstProfileConnected_handle()