Home
last modified time | relevance | path

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

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceAndStateMachineTest.java455 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_normalStartStop()
495 verifyVirtualCallStopSequenceInvocations(connectedDevices); in testVirtualCall_preemptedByTelecomCall()
553 BluetoothDevice activeDevice = connectedDevices.get(0); in testDialingOutCall_NormalDialingOut()
561 BluetoothDevice dialingOutDevice = connectedDevices.get(1); in testDialingOutCall_NormalDialingOut()
635 BluetoothDevice activeDevice = connectedDevices.get(0); in testDialingOutCall_DialingOutPreemptVirtualCall()
1236 connectedDevices); in verifyVirtualCallStartSequenceInvocations()
1239 connectedDevices); in verifyVirtualCallStartSequenceInvocations()
1242 connectedDevices); in verifyVirtualCallStartSequenceInvocations()
1248 connectedDevices); in verifyVirtualCallStopSequenceInvocations()
1252 List<BluetoothDevice> connectedDevices) { in verifyCallStateToNativeInvocation() argument
[all …]
H A DHeadsetServiceTest.java368 connectedDevices.add(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
474 connectedDevices.add(mCurrentDevice); in testConnectAudio_withMultipleDevices()
550 connectedDevices.add(mCurrentDevice); in testConnectAudio_connectTwoAudioChannelsShouldFail()
565 BluetoothDevice firstDevice = connectedDevices.get(0); in testConnectAudio_connectTwoAudioChannelsShouldFail()
566 BluetoothDevice secondDevice = connectedDevices.get(1); in testConnectAudio_connectTwoAudioChannelsShouldFail()
603 return connectedDevices.toArray(devicesArray); in testConnectAudio_firstConnectedAudioDevice()
628 connectedDevices.add(mCurrentDevice); in testConnectAudio_firstConnectedAudioDevice()
642 BluetoothDevice firstDevice = connectedDevices.get(0); in testConnectAudio_firstConnectedAudioDevice()
748 connectedDevices.add(mCurrentDevice); in testPhoneStateChange_oneDeviceSaveState()
831 connectedDevices.add(mCurrentDevice); in testPhoneStateChange_multipleDevicesSaveState()
[all …]
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/
H A DBluetoothStatusIconControllerTest.java75 List<CachedBluetoothDevice> connectedDevices = new ArrayList<>(); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected() local
76 connectedDevices.add(mDevice); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected()
77 when(mBluetoothController.getConnectedDevices()).thenReturn(connectedDevices); in onBluetoothDevicesChanged_enabled_deviceConnected_showsBluetoothOnConnected()
87 List<CachedBluetoothDevice> connectedDevices = new ArrayList<>(); in onBluetoothDevicesChanged_enabled_noDeviceConnected_showsBluetoothOnDisconnected() local
88 when(mBluetoothController.getConnectedDevices()).thenReturn(connectedDevices); in onBluetoothDevicesChanged_enabled_noDeviceConnected_showsBluetoothOnDisconnected()
/aosp12/packages/apps/Settings/src/com/android/settings/sound/
H A 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()
/aosp12/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/
H A DUtils.java256 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBluetoothTile.java199 List<CachedBluetoothDevice> connectedDevices = mController.getConnectedDevices(); in getSecondaryLabel() local
200 if (enabled && connected && !connectedDevices.isEmpty()) { in getSecondaryLabel()
201 if (connectedDevices.size() > 1) { in getSecondaryLabel()
205 connectedDevices.size(), in getSecondaryLabel()
206 connectedDevices.size()); in getSecondaryLabel()
209 CachedBluetoothDevice lastDevice = connectedDevices.get(0); in getSecondaryLabel()
393 int connectedDevices = 0; in updateItems() local
414 items.add(connectedDevices, item); in updateItems()
415 connectedDevices++; in updateItems()
419 items.add(connectedDevices, item); in updateItems()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A 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()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
H A DHotspotRowTest.java111 int connectedDevices = 1; in getQCItem_hotspotEnabled_hasDevices_returnsRow() local
113 mHotspotRow.setConnectedDevicesCount(connectedDevices); in getQCItem_hotspotEnabled_hasDevices_returnsRow()
116 R.plurals.wifi_tether_connected_summary, connectedDevices, in getQCItem_hotspotEnabled_hasDevices_returnsRow()
117 connectedDevices)); in getQCItem_hotspotEnabled_hasDevices_returnsRow()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
H A DA2dpSinkStreamHandler.java370 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice() local
371 if (!connectedDevices.isEmpty()) { in inCallFromStreamingDevice()
372 targetDevice = connectedDevices.get(0); in inCallFromStreamingDevice()
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothManager.java132 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState() local
133 for (BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
H A 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()
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
H A DMapMceTestFragment.java401 List<BluetoothDevice> connectedDevices = proxy.getConnectedDevices(); in onServiceConnected() local
402 if (connectedDevices.size() > 0) { in onServiceConnected()
403 mBluetoothDevice.setText(connectedDevices.get(0).getAddress()); in onServiceConnected()
/aosp12/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
H A DLocalDrive.java113 List<String> connectedDevices = Utils.getDeviceSerials(sLogger); in main() local
114 deviceSerial = Utils.chooseDevice(deviceSerial, connectedDevices, in main()
/aosp12/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/
H A DTestDrive.java109 boolean processArgs(Configuration configuration, String[] args, List<String> connectedDevices, in processArgs() argument
141 mDeviceSerial = Utils.chooseDevice(mDeviceSerial, connectedDevices, defaultDevice, LOGGER); in processArgs()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientService.java596 ArrayList<BluetoothDevice> connectedDevices = new ArrayList<>(); in getConnectedDevices() local
600 connectedDevices.add(bd); in getConnectedDevices()
603 return connectedDevices; in getConnectedDevices()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DCallAudioRouteStateMachine.java297 Collection<BluetoothDevice> connectedDevices = in processMessage() local
299 if (connectedDevices.size() > 0) { in processMessage()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DGattService.java2236 Set<String> connectedDevices = new HashSet<String>(); in getDevicesMatchingConnectionStates() local
2237 connectedDevices.addAll(mClientMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
2238 connectedDevices.addAll(mServerMap.getConnectedDevices()); in getDevicesMatchingConnectionStates()
2240 for (String address : connectedDevices) { in getDevicesMatchingConnectionStates()