Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java232 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHfpDevices() local
235 return connectedDevices; in getConnectedHfpDevices()
240 connectedDevices.add(device); in getConnectedHfpDevices()
243 return connectedDevices; in getConnectedHfpDevices()
262 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedLeAudioDevices() local
266 return connectedDevices; in getConnectedLeAudioDevices()
271 return connectedDevices; in getConnectedLeAudioDevices()
275 connectedDevices.add(device); in getConnectedLeAudioDevices()
278 return connectedDevices; in getConnectedLeAudioDevices()
301 final List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedHearingAidDevices() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java397 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectDevice_connectDeviceAboveLimit() local
428 .containsExactlyElementsIn(connectedDevices); in testConnectDevice_connectDeviceAboveLimit()
430 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
437 .containsExactlyElementsIn(connectedDevices); in testConnectDevice_connectDeviceAboveLimit()
454 .containsExactlyElementsIn(connectedDevices); in testConnectDevice_connectDeviceAboveLimit()
521 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_withMultipleDevices() local
554 .containsExactlyElementsIn(connectedDevices); in testConnectAudio_withMultipleDevices()
556 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices()
567 .containsExactlyElementsIn(connectedDevices); in testConnectAudio_withMultipleDevices()
613 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in testConnectAudio_connectTwoAudioChannelsShouldFail() local
[all …]
DHeadsetServiceAndStateMachineTest.java392 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_normalStartStop() local
393 assertThat(connectedDevices).containsExactlyElementsIn(mBondedDevices); in testVirtualCall_normalStartStop()
395 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop()
405 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
410 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
431 List<BluetoothDevice> connectedDevices = mHeadsetService.getConnectedDevices(); in testVirtualCall_preemptedByTelecomCall() local
432 assertThat(connectedDevices).containsExactlyElementsIn(mBondedDevices); in testVirtualCall_preemptedByTelecomCall()
434 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall()
444 verifyVirtualCallStartSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
450 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/
DBluetoothStatusIconControllerTest.java100 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/
DUtils.java267 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/
DWifiTetherUtil.java60 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/
DBluetoothRouteTransitionTests.java85 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java233 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in processInitProfilePriorities_LeAudioOnlyHelper() local
234 doReturn(connectedDevices) in processInitProfilePriorities_LeAudioOnlyHelper()
251 if (groupSize == 1 || connectedDevices.size() >= 1) { in processInitProfilePriorities_LeAudioOnlyHelper()
259 connectedDevices.add(dev); in processInitProfilePriorities_LeAudioOnlyHelper()
449 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in testLateConnectOfLeAudioEnabled_DualModeBud() local
454 .thenReturn(connectedDevices); in testLateConnectOfLeAudioEnabled_DualModeBud()
457 connectedDevices.add(mDevice); in testLateConnectOfLeAudioEnabled_DualModeBud()
481 when(mLeAudioService.getGroupDevices(csipGroupId)).thenReturn(connectedDevices); in testLateConnectOfLeAudioEnabled_DualModeBud()
520 connectedDevices.add(mDevice2); in testLateConnectOfLeAudioEnabled_DualModeBud()
555 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceBinderTest.java88 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local
89 connectedDevices.add(mTestDevice); in getConnectedDevices()
90 when(mService.getConnectedDevices()).thenReturn(connectedDevices); in getConnectedDevices()
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/qc/
DHotspotRowTest.java109 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/
DAudioSharingUtils.java89 List<BluetoothDevice> connectedDevices = assistant.getAllConnectedDevices(); in fetchConnectedDevicesByGroupId() local
91 for (BluetoothDevice device : connectedDevices) { in fetchConnectedDevicesByGroupId()
282 List<BluetoothDevice> connectedDevices = assistant.getAllConnectedDevices(); in addSourceToTargetSinks() local
284 if (connectedDevices.contains(sink)) { in addSourceToTargetSinks()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothManager.java102 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState() local
103 for (BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothA2dpConnector.java234 List<BluetoothDevice> connectedDevices = mA2dpProfile.getConnectedDevices(); in isTargetConnected() local
235 return connectedDevices.contains(mTarget); in isTargetConnected()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DActiveDeviceManager.java1199 List<BluetoothDevice> connectedDevices = new ArrayList<>(); in setFallbackDeviceActiveLocked() local
1203 connectedDevices.add(dev); in setFallbackDeviceActiveLocked()
1211 connectedDevices.add(a2dpFallbackDevice); in setFallbackDeviceActiveLocked()
1216 connectedDevices.add(headsetFallbackDevice); in setFallbackDeviceActiveLocked()
1221 connectedDevices.add(headsetFallbackDevice); in setFallbackDeviceActiveLocked()
1224 BluetoothDevice device = mDbManager.getMostRecentlyConnectedDevicesInList(connectedDevices); in setFallbackDeviceActiveLocked()
DPhonePolicy.java983 List<BluetoothDevice> connectedDevices = batteryService.getConnectedDevices(); in processConnectOtherProfiles() local
984 if (!connectedDevices.contains(device) in processConnectOtherProfiles()
999 List<BluetoothDevice> connectedDevices = bcService.getConnectedDevices(); in processConnectOtherProfiles() local
1000 if (!connectedDevices.contains(device) in processConnectOtherProfiles()
1009 List<BluetoothDevice> connectedDevices = hapClientService.getConnectedDevices(); in processConnectOtherProfiles() local
1010 if (!connectedDevices.contains(device) in processConnectOtherProfiles()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java370 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/modules/Uwb/ranging/test_app/app/src/main/java/com/android/ranging/rangingtestapp/
DBleConnectionPeripheralViewModel.java108 List<String> connectedDevices = in updateConnectedDevices() local
113 mConnectedDeviceAddresses.postValue(connectedDevices); in updateConnectedDevices()
DBleConnectionCentralViewModel.java114 List<String> connectedDevices = in updateConnectedDevices() local
119 mConnectedDeviceAddresses.postValue(connectedDevices); in updateConnectedDevices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java298 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()
DAudioOutputSwitchPreferenceControllerTest.java523 List<BluetoothDevice> connectedDevices = mController.getConnectedLeAudioDevices(); in getConnectedLeAudioDevices_nullConnectedDevices_returnEmptyList() local
525 assertThat(connectedDevices.isEmpty()).isTrue(); in getConnectedLeAudioDevices_nullConnectedDevices_returnEmptyList()
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
DLocalDrive.java113 List<String> connectedDevices = Utils.getDeviceSerials(sLogger); in main() local
114 deviceSerial = Utils.chooseDevice(deviceSerial, connectedDevices, in main()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsHelper.java327 List<BluetoothDevice> connectedDevices = leBroadcastAssistant.getAllConnectedDevices(); in getConnectedBluetoothDevices() local
342 .filter(connectedDevices::contains) in getConnectedBluetoothDevices()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceTest.java411 Set<String> connectedDevices = new HashSet<>(); in getDevicesMatchingConnectionStates() local
413 connectedDevices.add(address); in getDevicesMatchingConnectionStates()
414 doReturn(connectedDevices).when(mClientMap).getConnectedDevices(); in getDevicesMatchingConnectionStates()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java351 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local
356 connectedDevices.add(bd); in getConnectedDevices()
360 return connectedDevices; in getConnectedDevices()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtils.java324 List<BluetoothDevice> connectedDevices = in shouldBlockPairingInAudioSharing() local
335 || connectedDevices.stream().filter( in shouldBlockPairingInAudioSharing()

12