Home
last modified time | relevance | path

Searched refs:connectedDevices (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java439 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_normalStartStop() local
440 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
442 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop()
450 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
454 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
475 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local
476 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall()
478 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall()
486 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
491 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
[all …]
DHeadsetServiceTest.java355 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectDevice_connectDeviceAboveLimit() local
376 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
378 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
385 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
398 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
459 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_withMultipleDevices() local
482 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices()
484 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices()
495 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices()
535 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_connectTwoAudioChannelsShouldFail() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DAudioSwitchPreferenceController.java195 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/
DAudioSwitchPreferenceController.java191 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/
DBluetoothRouteTransitionTests.java77 private BluetoothDevice[] connectedDevices; field in BluetoothRouteTransitionTests.BluetoothRouteTestParametersBuilder
134 BluetoothDevice... connectedDevices) { in setConnectedDevices() argument
135 this.connectedDevices = connectedDevices; in setConnectedDevices()
164 connectedDevices, in build()
184 public BluetoothDevice[] connectedDevices; // array of connected devices field in BluetoothRouteTransitionTests.BluetoothRouteTestParameters
193 BluetoothDevice[] connectedDevices, BluetoothDevice messageDevice, in BluetoothRouteTestParameters() argument
204 this.connectedDevices = connectedDevices; in BluetoothRouteTestParameters()
223 ", connectedDevices=" + Arrays.toString(connectedDevices) + in toString()
259 setupConnectedDevices(mParams.connectedDevices, in testTransitions()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java356 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice() local
357 if (!connectedDevices.isEmpty()) { in inCallFromStreamingDevice()
358 targetDevice = connectedDevices.get(0); in inCallFromStreamingDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java270 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/
DMapMceTestFragment.java295 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/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java506 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local
510 connectedDevices.add(bd); in getConnectedDevices()
513 return connectedDevices; in getConnectedDevices()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java289 Collection<BluetoothDevice> connectedDevices = in processMessage() local
291 if (connectedDevices.size() > 0) { in processMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1875 Set<String> connectedDevices = new HashSet<String>(); in getDevicesMatchingConnectionStates() local
1876 connectedDevices.addAll(mClientMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
1877 connectedDevices.addAll(mServerMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
1879 for (String address : connectedDevices) { in getDevicesMatchingConnectionStates()