Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java438 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_normalStartStop() local
439 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
441 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop()
449 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
453 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
474 List<BluetoothDevice> connectedDevices = mHeadsetServiceBinder.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local
475 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall()
477 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall()
485 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
490 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
[all …]
DHeadsetServiceTest.java346 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectDevice_connectDeviceAboveLimit() local
367 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
369 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
376 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
389 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit()
450 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_withMultipleDevices() local
473 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices()
475 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices()
486 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices()
526 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.java78 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/
DA2dpSinkStreamHandler.java369 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice() local
370 if (!connectedDevices.isEmpty()) { in inCallFromStreamingDevice()
371 targetDevice = connectedDevices.get(0); in inCallFromStreamingDevice()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMessageNotificationDelegate.java160 List<BluetoothDevice> connectedDevices; in onMapConnected() local
167 connectedDevices = mBluetoothMapClient.getConnectedDevices(); in onMapConnected()
169 if (connectedDevices != null) { in onMapConnected()
170 for (BluetoothDevice device : connectedDevices) { in onMapConnected()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DRemoteFeature.java173 List<CompanionDevice> connectedDevices; in getConnectedDeviceById() local
175 connectedDevices = getConnectedDeviceManager().getActiveUserConnectedDevices(); in getConnectedDeviceById()
181 for (CompanionDevice device : connectedDevices) { in getConnectedDeviceById()
DLocalFeature.java140 List<ConnectedDevice> connectedDevices = in getConnectedDeviceById() local
143 for (ConnectedDevice device : connectedDevices) { in getConnectedDeviceById()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java273 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/
DMapMceTestFragment.java375 List<BluetoothDevice> connectedDevices = proxy.getConnectedDevices(); in onServiceConnected() local
376 if (connectedDevices.size() > 0) { in onServiceConnected()
377 mBluetoothDevice.setText(connectedDevices.get(0).getAddress()); in onServiceConnected()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/internal/association/
DAssociationBinder.java178 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices() local
181 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java72 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices() local
75 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/
DAssociatedDeviceViewModel.java260 private void setConnectedDevices(@NonNull List<CompanionDevice> connectedDevices) { in setConnectedDevices() argument
261 mConnectedDevices = connectedDevices; in setConnectedDevices()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java522 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local
526 connectedDevices.add(bd); in getConnectedDevices()
529 return connectedDevices; in getConnectedDevices()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java502 List<ConnectedDevice> connectedDevices = in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice() local
504 ConnectedDevice connectedDevice = connectedDevices.get(0); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice()
505 ConnectedDevice otherDevice = connectedDevices.get(1); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java297 Collection<BluetoothDevice> connectedDevices = in processMessage() local
299 if (connectedDevices.size() > 0) { in processMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1957 Set<String> connectedDevices = new HashSet<String>(); in getDevicesMatchingConnectionStates() local
1958 connectedDevices.addAll(mClientMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
1959 connectedDevices.addAll(mServerMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
1961 for (String address : connectedDevices) { in getDevicesMatchingConnectionStates()