/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityHearingAidPreferenceControllerTest.java | 133 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedAshaHearingAidRightSide_connectedRightSideSummary() 151 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedAshaHearingAidBothSide_connectedBothSideSummary() 168 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedLeAudioHearingAidLeftSide_connectedLeftSideSummary() 185 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedLeAudioHearingAidRightSide_connectedRightSideSummary() 202 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedLeAudioHearingAidLeftAndRightSide_connectedSummary() 219 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedLeAudioHearingAidMonoSide_connectedSummary() 234 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedLeAudioHearingAidBothSide_connectedBothSideSummary() 251 when(mHearingAidProfile.getConnectedDevices()).thenReturn( in getSummary_connectedMultipleHearingAids_connectedMultipleDevicesSummary() 280 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in onServiceConnected_onHearingAidProfileConnected_updateSummary() 294 when(mHapClientProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in onServiceConnected_onHapClientProfileConnected_updateSummary()
|
D | HearingAidHelperTest.java | 157 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDeviceList_oneDeviceAdded_getOneDevice() 168 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDeviceList_oneSubDeviceAdded_getZeroDevice() 181 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDevice_getExpectedCachedBluetoothDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 279 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() 301 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 321 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary() 340 when(mHeadsetProfile.getConnectedDevices()).thenReturn(emptyDeviceList); in updateState_noAvailableHeadsetBtDevices_shouldSetDefaultSummary() 362 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName() 387 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName() 418 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName() 451 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName() 482 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName() 506 when(mLeAudioProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_leAudioDeviceActive_shouldSetActivatedDeviceName()
|
D | AudioOutputSwitchPreferenceControllerTest.java | 401 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList() 421 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHearingAidDevices_deviceHisyncIdIsSame_shouldAddOneToList() 439 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_oneConnectedHfpDevice_shouldAddDeviceToList() 456 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_moreThanOneConnectedHfpDevice_shouldAddDeviceToList() 469 when(mLeAudioProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedLeAudioDevices_connectedLeAudioDevice_shouldAddDeviceToList() 491 when(mLeAudioProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedLeAudioDevices_disconnectedLeAudioDevice_shouldNotAddDeviceToList() 512 when(mLeAudioProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedLeAudioDevices_notInCachedDeviceList_shouldNotAddDeviceToList() 521 when(mLeAudioProfile.getConnectedDevices()).thenReturn(null); in getConnectedLeAudioDevices_nullConnectedDevices_returnEmptyList()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceBinderTest.java | 87 public void getConnectedDevices() { in getConnectedDevices() method in HearingAidServiceBinderTest 90 when(mService.getConnectedDevices()).thenReturn(connectedDevices); in getConnectedDevices() 92 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 93 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapClientServiceBinderTest.java | 95 mPbapClientServiceBinder.getConnectedDevices(mAttributionSource); in testGetConnectedDevices() 96 verify(mMockService).getConnectedDevices(); in testGetConnectedDevices() 150 mPbapClientServiceBinder.getConnectedDevices(mAttributionSource); in testGetConnectedDevices_afterCleanup_returnsEmptyList() 151 verify(mMockService, never()).getConnectedDevices(); in testGetConnectedDevices_afterCleanup_returnsEmptyList()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 294 assertThat(mHeadsetService.getConnectedDevices()).isEqualTo(List.of(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit() 331 assertThat(mHeadsetService.getConnectedDevices()).isEqualTo(List.of(mCurrentDevice)); in testMessageFromNative_deviceConnected() 345 assertThat(mHeadsetService.getConnectedDevices()).isEmpty(); in testMessageFromNative_deviceConnected() 427 assertThat(mHeadsetService.getConnectedDevices()) in testConnectDevice_connectDeviceAboveLimit() 436 assertThat(mHeadsetService.getConnectedDevices()) in testConnectDevice_connectDeviceAboveLimit() 453 assertThat(mHeadsetService.getConnectedDevices()) in testConnectDevice_connectDeviceAboveLimit() 484 assertThat(mHeadsetService.getConnectedDevices()).isEqualTo(List.of(mCurrentDevice)); in testConnectAudio_withOneDevice() 553 assertThat(mHeadsetService.getConnectedDevices()) in testConnectAudio_withMultipleDevices() 566 assertThat(mHeadsetService.getConnectedDevices()) in testConnectAudio_withMultipleDevices() 645 assertThat(mHeadsetService.getConnectedDevices()) in testConnectAudio_connectTwoAudioChannelsShouldFail() [all …]
|
D | HeadsetServiceBinderTest.java | 71 public void getConnectedDevices() { in getConnectedDevices() method in HeadsetServiceBinderTest 72 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 73 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
D | HeadsetServiceAndStateMachineTest.java | 350 assertThat(mHeadsetService.getConnectedDevices()).containsExactly(device); in testUnbondDevice_disconnectAfterUnbond() 385 assertThat(mHeadsetService.getConnectedDevices()) in testVirtualCall_normalStartStop() 392 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_normalStartStop() 424 assertThat(mHeadsetService.getConnectedDevices()) in testVirtualCall_preemptedByTelecomCall() 431 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() 468 assertThat(mHeadsetService.getConnectedDevices()) in testVirtualCall_rejectedWhenThereIsTelecomCall() 475 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_rejectedWhenThereIsTelecomCall() 518 assertThat(mHeadsetService.getConnectedDevices()) in testDialingOutCall_NormalDialingOut() 525 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testDialingOutCall_NormalDialingOut() 612 assertThat(mHeadsetService.getConnectedDevices()) in testDialingOutCall_DialingOutPreemptVirtualCall() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorServiceBinderTest.java | 62 public void getConnectedDevices() { in getConnectedDevices() method in CsipSetCoordinatorServiceBinderTest 63 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 64 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/ |
D | SapServiceBinderTest.java | 90 public void getConnectedDevices() { in getConnectedDevices() method in SapServiceBinderTest 91 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 92 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 137 doReturn(Collections.emptyList()).when(mA2dpService).getConnectedDevices(); in setUp() 138 doReturn(Collections.emptyList()).when(mHeadsetService).getConnectedDevices(); in setUp() 780 when(mHeadsetService.getConnectedDevices()).thenReturn(hsConnectedDevices); in testReconnectOnPartialConnect() 812 doReturn(List.of(mDevice)).when(mHeadsetService).getConnectedDevices(); in testConnectOtherProfileWhileDeviceIsDisconnected() 845 doReturn(List.of(mDevice)).when(mHeadsetService).getConnectedDevices(); in testReconnectOnPartialConnect_PreviousPartialFail() 871 doReturn(Collections.emptyList()).when(mHeadsetService).getConnectedDevices(); in testReconnectOnPartialConnect_PreviousPartialFail() 876 doReturn(List.of(mDevice)).when(mHeadsetService).getConnectedDevices(); in testReconnectOnPartialConnect_PreviousPartialFail() 1053 when(mHeadsetService.getConnectedDevices()).thenReturn(hsConnectedDevices); in testAutoConnectMultipleDevices() 1054 when(mA2dpService.getConnectedDevices()).thenReturn(a2dpConnectedDevices); in testAutoConnectMultipleDevices() 1139 when(mHeadsetService.getConnectedDevices()).thenReturn(hsConnectedDevices); in testSetConnectionPolicyMultipleDevices() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 728 List<BluetoothDevice> hsConnDevList = hsService.getConnectedDevices(); in handleAllProfilesDisconnected() 733 List<BluetoothDevice> a2dpConnDevList = a2dpService.getConnectedDevices(); in handleAllProfilesDisconnected() 738 List<BluetoothDevice> csipConnDevList = csipSetCoordinatorService.getConnectedDevices(); in handleAllProfilesDisconnected() 743 List<BluetoothDevice> panConnDevList = panService.getConnectedDevices(); in handleAllProfilesDisconnected() 748 List<BluetoothDevice> leAudioConnDevList = leAudioService.getConnectedDevices(); in handleAllProfilesDisconnected() 942 List<BluetoothDevice> panConnDevList = panService.getConnectedDevices(); in processConnectOtherProfiles() 953 List<BluetoothDevice> leAudioConnDevList = leAudioService.getConnectedDevices(); in processConnectOtherProfiles() 962 List<BluetoothDevice> csipConnDevList = csipSetCoordinatorService.getConnectedDevices(); in processConnectOtherProfiles() 973 List<BluetoothDevice> vcConnDevList = volumeControlService.getConnectedDevices(); in processConnectOtherProfiles() 983 List<BluetoothDevice> connectedDevices = batteryService.getConnectedDevices(); in processConnectOtherProfiles() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkServiceBinderTest.java | 79 public void getConnectedDevices() { in getConnectedDevices() method in A2dpSinkServiceBinderTest 82 mBinder.getConnectedDevices(source); in getConnectedDevices() 83 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientServiceBinderTest.java | 104 public void getConnectedDevices() { in getConnectedDevices() method in BassClientServiceBinderTest 105 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 106 verify(mService).getConnectedDevices(); in getConnectedDevices() 109 assertThat(mBinder.getConnectedDevices(mAttributionSource)) in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerServiceBinderTest.java | 59 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices_callsServiceMethod() 60 verify(mService).getConnectedDevices(); in getConnectedDevices_callsServiceMethod()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/ |
D | BluetoothGattServerProxy.java | 120 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() method in BluetoothGattServerProxy 121 return mBluetoothManager.getConnectedDevices(BluetoothProfile.GATT_SERVER); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientServiceBinderTest.java | 71 public void getConnectedDevices() { in getConnectedDevices() method in HapClientServiceBinderTest 72 assertThrows(NullPointerException.class, () -> mBinder.getConnectedDevices(null)); in getConnectedDevices() 73 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 74 verify(mHapClientService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapServiceBinderTest.java | 67 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices_callsServiceMethod() 69 verify(mService).getConnectedDevices(); in getConnectedDevices_callsServiceMethod()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceBinderTest.java | 94 public void getConnectedDevices() { in getConnectedDevices() method in A2dpServiceBinderTest 95 mBinder.getConnectedDevices(sSource); in getConnectedDevices() 96 verify(mA2dpService).getConnectedDevices(); in getConnectedDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pan/ |
D | PanServiceBinderTest.java | 72 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices_callsServiceMethod() 73 verify(mService).getConnectedDevices(); in getConnectedDevices_callsServiceMethod()
|
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactoryTest.java | 90 when(mPanService.getConnectedDevices()).thenReturn(bluetoothDevices); in networkStartReverseTetherStop() 94 verify(mPanService).getConnectedDevices(); in networkStartReverseTetherStop()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceBinderTest.java | 63 public void getConnectedDevices() { in getConnectedDevices() method in VolumeControlServiceBinderTest 64 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices() 65 verify(mService).getConnectedDevices(); in getConnectedDevices()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | AudioSwitchPreferenceController.java | 237 final List<BluetoothDevice> devices = hfpProfile.getConnectedDevices(); in getConnectedHfpDevices() 255 return a2dpProfile.getConnectedDevices(); in getConnectedA2dpDevices() 268 final List<BluetoothDevice> devices = leAudioProfile.getConnectedDevices(); in getConnectedLeAudioDevices() 307 final List<BluetoothDevice> devices = hapProfile.getConnectedDevices(); in getConnectedHearingAidDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapServiceBinderTest.java | 66 mBinder.getConnectedDevices(mAttributionSource); in getConnectedDevices_callsServiceMethod() 67 verify(mService).getConnectedDevices(); in getConnectedDevices_callsServiceMethod()
|