/packages/apps/Settings/src/com/android/settings/sound/ |
D | AudioSwitchPreferenceController.java | 208 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHfpDevices() local 211 return connectedDevices; in getConnectedHfpDevices() 216 connectedDevices.add(device); in getConnectedHfpDevices() 219 return connectedDevices; in getConnectedHfpDevices() 238 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedLeAudioDevices() local 242 return connectedDevices; in getConnectedLeAudioDevices() 247 return connectedDevices; in getConnectedLeAudioDevices() 251 connectedDevices.add(device); in getConnectedLeAudioDevices() 254 return connectedDevices; in getConnectedLeAudioDevices() 277 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHearingAidDevices() local [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 414 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectDevice_connectDeviceAboveLimit() local 446 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 448 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit() 457 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 476 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectDevice_connectDeviceAboveLimit() 550 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_withMultipleDevices() local 586 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices() 588 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices() 603 Matchers.containsInAnyOrder(connectedDevices.toArray())); in testConnectAudio_withMultipleDevices() 651 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_connectTwoAudioChannelsShouldFail() local [all …]
|
D | HeadsetServiceAndStateMachineTest.java | 398 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_normalStartStop() local 399 assertThat(connectedDevices).containsExactlyElementsIn(mBondedDevices); in testVirtualCall_normalStartStop() 401 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop() 411 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 416 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop() 437 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local 438 assertThat(connectedDevices).containsExactlyElementsIn(mBondedDevices); in testVirtualCall_preemptedByTelecomCall() 440 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall() 450 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall() 456 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/ |
D | BluetoothStatusIconControllerTest.java | 100 List<CachedBluetoothDevice> connectedDevices = new ArrayList<>(); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected() local 101 connectedDevices.add(mDevice); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected() 102 when(mBluetoothController.getConnectedDevices()).thenReturn(connectedDevices); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected() 112 List<CachedBluetoothDevice> connectedDevices = new ArrayList<>(); in onBluetoothDevicesChanged_enabled_noDeviceConnected_showsBluetoothOnDisconnected() local 113 when(mBluetoothController.getConnectedDevices()).thenReturn(connectedDevices); in onBluetoothDevicesChanged_enabled_noDeviceConnected_showsBluetoothOnDisconnected()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 267 public static String chooseDevice(String device, List<String> connectedDevices, in chooseDevice() argument 269 if (connectedDevices == null || connectedDevices.isEmpty()) { in chooseDevice() 274 if (connectedDevices.contains(device)) { in chooseDevice() 280 if (connectedDevices.size() == 1) { in chooseDevice() 281 return connectedDevices.get(0); in chooseDevice() 284 if (connectedDevices.contains(defaultDevice)) { in chooseDevice()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiTetherUtil.java | 60 boolean hotspotEnabled, int connectedDevices) { in getHotspotSubtitle() argument 64 if (connectedDevices > 0) { in getHotspotSubtitle() 65 return WifiUtils.getWifiTetherSummaryForConnectedDevices(context, connectedDevices); in getHotspotSubtitle()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 85 private BluetoothDevice[] connectedDevices; field in BluetoothRouteTransitionTests.BluetoothRouteTestParametersBuilder 143 BluetoothDevice... connectedDevices) { in setConnectedDevices() argument 144 this.connectedDevices = connectedDevices; in setConnectedDevices() 179 connectedDevices, in build() 201 public BluetoothDevice[] connectedDevices; // array of connected devices field in BluetoothRouteTransitionTests.BluetoothRouteTestParameters 211 BluetoothDevice[] connectedDevices, BluetoothDevice messageDevice, in BluetoothRouteTestParameters() argument 222 this.connectedDevices = connectedDevices; in BluetoothRouteTestParameters() 245 ", connectedDevices=" + Arrays.toString(connectedDevices) + in toString() 300 setupConnectedDevices(mParams.connectedDevices, in testTransitions()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | HotspotRowTest.java | 109 int connectedDevices = 1; in getQCItem_hotspotEnabled_hasDevices_returnsRow() local 111 mHotspotRow.setConnectedDevicesCount(connectedDevices); in getQCItem_hotspotEnabled_hasDevices_returnsRow() 114 WifiUtils.getWifiTetherSummaryForConnectedDevices(mContext, connectedDevices)); in getQCItem_hotspotEnabled_hasDevices_returnsRow()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingUtils.java | 92 List<BluetoothDevice> connectedDevices = in fetchConnectedDevicesByGroupId() local 96 for (BluetoothDevice device : connectedDevices) { in fetchConnectedDevicesByGroupId() 292 List<BluetoothDevice> connectedDevices = in addSourceToTargetSinks() local 296 if (connectedDevices.contains(sink)) { in addSourceToTargetSinks()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 227 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in processInitProfilePriorities_LeAudioOnlyHelper() local 256 if (groupSize == 1 || connectedDevices.size() >= 1) { in processInitProfilePriorities_LeAudioOnlyHelper() 263 .thenReturn(connectedDevices); in processInitProfilePriorities_LeAudioOnlyHelper() 266 connectedDevices.add(dev); in processInitProfilePriorities_LeAudioOnlyHelper() 519 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in testLateConnectOfLeAudioEnabled_DualModeBud() local 524 .thenReturn(connectedDevices); in testLateConnectOfLeAudioEnabled_DualModeBud() 528 connectedDevices.add(firstDevice); in testLateConnectOfLeAudioEnabled_DualModeBud() 554 when(mLeAudioService.getGroupDevices(csipGroupId)).thenReturn(connectedDevices); in testLateConnectOfLeAudioEnabled_DualModeBud() 600 connectedDevices.add(secondDevice); in testLateConnectOfLeAudioEnabled_DualModeBud() 641 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud() local [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothManager.java | 90 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState() local 91 for (BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManager.java | 1097 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in setFallbackDeviceActiveLocked() local 1098 connectedDevices.addAll(mLeAudioConnectedDevices); in setFallbackDeviceActiveLocked() 1102 connectedDevices.add(a2dpFallbackDevice); in setFallbackDeviceActiveLocked() 1107 connectedDevices.add(headsetFallbackDevice); in setFallbackDeviceActiveLocked() 1112 connectedDevices.add(headsetFallbackDevice); in setFallbackDeviceActiveLocked() 1115 BluetoothDevice device = mDbManager.getMostRecentlyConnectedDevicesInList(connectedDevices); in setFallbackDeviceActiveLocked()
|
D | PhonePolicy.java | 1102 List<BluetoothDevice> connectedDevices = batteryService.getConnectedDevices(); in processConnectOtherProfiles() local 1103 if (!connectedDevices.contains(device) in processConnectOtherProfiles() 1122 List<BluetoothDevice> connectedDevices = bcService.getConnectedDevices(); in processConnectOtherProfiles() local 1123 if (!connectedDevices.contains(device) in processConnectOtherProfiles()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothA2dpConnector.java | 234 List<BluetoothDevice> connectedDevices = mA2dpProfile.getConnectedDevices(); in isTargetConnected() local 235 return connectedDevices.contains(mTarget); in isTargetConnected()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | MapMceTestFragment.java | 370 List<BluetoothDevice> connectedDevices = proxy.getConnectedDevices(); in onServiceConnected() local 371 if (connectedDevices.size() > 0) { in onServiceConnected() 372 mBluetoothDevice.setText(connectedDevices.get(0).getAddress()); in onServiceConnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 298 List<BluetoothDevice> connectedDevices = new ArrayList<>(2); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() local 299 connectedDevices.add(mBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 300 connectedDevices.add(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 301 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
|
D | AudioOutputSwitchPreferenceControllerTest.java | 523 List<BluetoothDevice> connectedDevices = mController.getConnectedLeAudioDevices(); in getConnectedLeAudioDevices_nullConnectedDevices_returnEmptyList() local 525 assertThat(connectedDevices.isEmpty()).isTrue(); in getConnectedLeAudioDevices_nullConnectedDevices_returnEmptyList()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamsHelper.java | 278 List<BluetoothDevice> connectedDevices = in getConnectedBluetoothDevices() local 295 .filter(connectedDevices::contains) in getConnectedBluetoothDevices()
|
/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/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/ |
D | GattServiceTest.java | 340 Set<String> connectedDevices = new HashSet<>(); in getDevicesMatchingConnectionStates() local 342 connectedDevices.add(address); in getDevicesMatchingConnectionStates() 343 doReturn(connectedDevices).when(mClientMap).getConnectedDevices(); in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 661 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local 666 connectedDevices.add(bd); in getConnectedDevices() 670 return connectedDevices; in getConnectedDevices()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 171 List<String> connectedDevices, in processArgs() argument 224 mDeviceSerial = Utils.chooseDevice(mDeviceSerial, connectedDevices, defaultDevice, LOGGER); in processArgs()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioService.java | 3713 List<BluetoothDevice> connectedDevices = getConnectedPeerDevices(groupId); in deviceDisconnectedV2() local 3715 if (connectedDevices.size() == 1 in deviceDisconnectedV2() 3717 connectedDevices.get(0), descriptor.mLostLeadDeviceWhileStreaming)) { in deviceDisconnectedV2() 3794 List<BluetoothDevice> connectedDevices = in deviceDisconnected() local 3797 if (connectedDevices.size() == 1 in deviceDisconnected() 3799 connectedDevices.get(0), descriptor.mLostLeadDeviceWhileStreaming)) { in deviceDisconnected()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 1444 List<BluetoothDevice> connectedDevices = in connectDevice() local 1446 Assert.assertTrue(connectedDevices.contains(device)); in connectDevice() 1449 Assert.assertTrue(connectedDevices.contains(prevDevice)); in connectDevice()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioRouteStateMachine.java | 218 Collection<BluetoothDevice> connectedDevices = in processMessage() local 220 if (connectedDevices.size() > 0) { in processMessage()
|