/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() 450 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 455 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 476 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local 477 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall() 479 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall() 490 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall() 495 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/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/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 256 public static String chooseDevice(String device, List<String> connectedDevices, in chooseDevice() argument 258 if (connectedDevices == null || connectedDevices.isEmpty()) { in chooseDevice() 263 if (connectedDevices.contains(device)) { in chooseDevice() 269 if (connectedDevices.size() == 1) { in chooseDevice() 270 return connectedDevices.get(0); in chooseDevice() 273 if (connectedDevices.contains(defaultDevice)) { in chooseDevice()
|
/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 | 370 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice() local 371 if (!connectedDevices.isEmpty()) { in inCallFromStreamingDevice() 372 targetDevice = connectedDevices.get(0); in inCallFromStreamingDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 273 List<BluetoothDevice> connectedDevices = new ArrayList<>(2); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() local 274 connectedDevices.add(mBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 275 connectedDevices.add(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 276 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | MapMceTestFragment.java | 401 List<BluetoothDevice> connectedDevices = proxy.getConnectedDevices(); in onServiceConnected() local 402 if (connectedDevices.size() > 0) { in onServiceConnected() 403 mBluetoothDevice.setText(connectedDevices.get(0).getAddress()); in onServiceConnected()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/ |
D | LocalDrive.java | 113 List<String> connectedDevices = Utils.getDeviceSerials(sLogger); in main() local 114 deviceSerial = Utils.chooseDevice(deviceSerial, connectedDevices, in main()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 109 boolean processArgs(Configuration configuration, String[] args, List<String> connectedDevices, in processArgs() argument 141 mDeviceSerial = Utils.chooseDevice(mDeviceSerial, connectedDevices, defaultDevice, LOGGER); in processArgs()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 596 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local 600 connectedDevices.add(bd); in getConnectedDevices() 603 return connectedDevices; in getConnectedDevices()
|
/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 | 2168 Set<String> connectedDevices = new HashSet<String>(); in getDevicesMatchingConnectionStates() local 2169 connectedDevices.addAll(mClientMap.getConnectedDevices()); in getDevicesMatchingConnectionStates() 2170 connectedDevices.addAll(mServerMap.getConnectedDevices()); in getDevicesMatchingConnectionStates() 2172 for (String address : connectedDevices) { in getDevicesMatchingConnectionStates()
|