/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 436 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_normalStartStop() local 437 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop() 439 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop() 447 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 451 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 472 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local 473 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall() 475 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall() 483 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall() 488 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall() [all …]
|
D | HeadsetServiceTest.java | 345 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectDevice_connectDeviceAboveLimit() local 366 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 368 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit() 375 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 388 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 449 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_withMultipleDevices() local 472 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices() 474 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices() 485 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices() 525 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_connectTwoAudioChannelsShouldFail() local [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | AudioSwitchPreferenceController.java | 195 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHfpDevices() local 198 return connectedDevices; in getConnectedHfpDevices() 203 connectedDevices.add(device); in getConnectedHfpDevices() 206 return connectedDevices; in getConnectedHfpDevices() 225 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHearingAidDevices() local 228 return connectedDevices; in getConnectedHearingAidDevices() 238 connectedDevices.add(device); in getConnectedHearingAidDevices() 241 return connectedDevices; in getConnectedHearingAidDevices() 250 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectableHearingAidDevices() local 253 return connectedDevices; in getConnectableHearingAidDevices() [all …]
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | AudioSwitchPreferenceController.java | 191 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHfpDevices() local 194 return connectedDevices; in getConnectedHfpDevices() 199 connectedDevices.add(device); in getConnectedHfpDevices() 202 return connectedDevices; in getConnectedHfpDevices() 221 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHearingAidDevices() local 224 return connectedDevices; in getConnectedHearingAidDevices() 234 connectedDevices.add(device); in getConnectedHearingAidDevices() 237 return connectedDevices; in getConnectedHearingAidDevices()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 78 private BluetoothDevice[] connectedDevices; field in BluetoothRouteTransitionTests.BluetoothRouteTestParametersBuilder 135 BluetoothDevice... connectedDevices) { in setConnectedDevices() argument 136 this.connectedDevices = connectedDevices; in setConnectedDevices() 165 connectedDevices, in build() 185 public BluetoothDevice[] connectedDevices; // array of connected devices field in BluetoothRouteTransitionTests.BluetoothRouteTestParameters 194 BluetoothDevice[] connectedDevices, BluetoothDevice messageDevice, in BluetoothRouteTestParameters() argument 205 this.connectedDevices = connectedDevices; in BluetoothRouteTestParameters() 224 ", connectedDevices=" + Arrays.toString(connectedDevices) + in toString() 266 setupConnectedDevices(mParams.connectedDevices, in testTransitions()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 369 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice() local 370 if (!connectedDevices.isEmpty()) { in inCallFromStreamingDevice() 371 targetDevice = connectedDevices.get(0); in inCallFromStreamingDevice()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/ |
D | RemoteFeature.java | 160 List<CompanionDevice> connectedDevices; in getConnectedDeviceById() local 162 connectedDevices = getConnectedDeviceManager().getActiveUserConnectedDevices(); in getConnectedDeviceById() 168 for (CompanionDevice device : connectedDevices) { in getConnectedDeviceById()
|
D | LocalFeature.java | 140 List<ConnectedDevice> connectedDevices = in getConnectedDeviceById() local 143 for (ConnectedDevice device : connectedDevices) { in getConnectedDeviceById()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/ |
D | MessengerDelegate.java | 151 List<BluetoothDevice> connectedDevices; in onMapConnected() local 158 connectedDevices = mBluetoothMapClient.getConnectedDevices(); in onMapConnected() 160 if (connectedDevices != null) { in onMapConnected() 161 for (BluetoothDevice device : connectedDevices) { in onMapConnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 270 List<BluetoothDevice> connectedDevices = new ArrayList<>(2); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() local 271 connectedDevices.add(mBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 272 connectedDevices.add(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 273 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | MapMceTestFragment.java | 295 List<BluetoothDevice> connectedDevices = proxy.getConnectedDevices(); in onServiceConnected() local 296 if (connectedDevices.size() > 0) { in onServiceConnected() 297 mBluetoothDevice.setText(connectedDevices.get(0).getAddress()); in onServiceConnected()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/internal/association/ |
D | AssociationBinder.java | 178 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices() local 181 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/ |
D | ConnectedDeviceManagerBinder.java | 72 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices() local 75 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/ |
D | AssociatedDeviceViewModel.java | 260 private void setConnectedDevices(@NonNull List<CompanionDevice> connectedDevices) { in setConnectedDevices() argument 261 mConnectedDevices = connectedDevices; in setConnectedDevices()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 528 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local 532 connectedDevices.add(bd); in getConnectedDevices() 535 return connectedDevices; in getConnectedDevices()
|
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManagerTest.java | 475 List<ConnectedDevice> connectedDevices = in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice() local 477 ConnectedDevice connectedDevice = connectedDevices.get(0); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice() 478 ConnectedDevice otherDevice = connectedDevices.get(1); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioRouteStateMachine.java | 297 Collection<BluetoothDevice> connectedDevices = in processMessage() local 299 if (connectedDevices.size() > 0) { in processMessage()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 1879 Set<String> connectedDevices = new HashSet<String>(); in getDevicesMatchingConnectionStates() local 1880 connectedDevices.addAll(mClientMap.getConnectedDevices()); in getDevicesMatchingConnectionStates() 1881 connectedDevices.addAll(mServerMap.getConnectedDevices()); in getDevicesMatchingConnectionStates() 1883 for (String address : connectedDevices) { in getDevicesMatchingConnectionStates()
|