Home
last modified time | relevance | path

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

/cts/tests/tests/companion/noservices/src/android/companion/cts/noservices/
DNoCompanionDeviceServiceTest.kt70 val receivedCallback = PrimaryCompanionService.connectedDevices.isNotEmpty() || in test_noService()
71 SecondaryCompanionService.connectedDevices.isNotEmpty() || in test_noService()
72 MissingPermissionCompanionService.connectedDevices.isNotEmpty() || in test_noService()
73 MissingIntentFilterActionCompanionService.connectedDevices.isNotEmpty() in test_noService()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DCompanionService.kt39 if (!isBound && !connectedDevices.isEmpty()) {
47 val connectedDevices: Collection<AssociationInfo> constant in android.companion.cts.common.CompanionService
158 val connectedDevices: Collection<AssociationInfo> constant in android.companion.cts.common.InstanceHolder
159 get() = instance?.connectedDevices ?: emptySet()
162 get() = instance?.connectedDevices ?: emptySet()
DTestBase.kt329 val snapshotSecondary = HashSet(SecondaryCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
330 val snapshotUnauthorized = HashSet(MissingPermissionCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
331 val snapshotInvalid = HashSet(MissingIntentFilterActionCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
347 assertContentEquals(snapshotSecondary, SecondaryCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
348 assertContentEquals(snapshotUnauthorized, MissingPermissionCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
349 assertContentEquals(snapshotInvalid, MissingIntentFilterActionCompanionService.connectedDevices) in assertOnlyPrimaryCompanionDeviceServiceNotified()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeBroadcastAssistantTest.java509 List<BluetoothDevice> connectedDevices = in getConnectedDevices() local
511 assertNotNull(connectedDevices); in getConnectedDevices()
512 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
517 connectedDevices = mBluetoothLeBroadcastAssistant.getConnectedDevices(); in getConnectedDevices()
518 assertNotNull(connectedDevices); in getConnectedDevices()
519 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
530 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
532 assertNotNull(connectedDevices); in getDevicesMatchingConnectionStates()
533 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
542 connectedDevices = in getDevicesMatchingConnectionStates()
[all …]
DBluetoothPbapTest.java136 List<BluetoothDevice> connectedDevices = mBluetoothPbap.getConnectedDevices(); in getConnectedDevices() local
137 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
168 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
170 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothPbapClientTest.java133 List<BluetoothDevice> connectedDevices = mBluetoothPbapClient.getConnectedDevices(); in getConnectedDevices() local
134 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
184 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
186 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothPanTest.java132 List<BluetoothDevice> connectedDevices = mBluetoothPan.getConnectedDevices(); in getConnectedDevices() local
133 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
145 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
147 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothHidDeviceTest.java148 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
150 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
207 List<BluetoothDevice> connectedDevices = mBluetoothHidDevice.getConnectedDevices(); in getConnectedDevices() local
208 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
DBluetoothMapTest.java136 List<BluetoothDevice> connectedDevices = mBluetoothMap.getConnectedDevices(); in getConnectedDevices() local
137 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
187 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
189 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothHeadsetClientTest.java134 List<BluetoothDevice> connectedDevices = mBluetoothHeadsetClient.getConnectedDevices(); in getConnectedDevices() local
135 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
147 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
149 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothMapClientTest.java148 List<BluetoothDevice> connectedDevices = mBluetoothMapClient.getConnectedDevices(); in getConnectedDevices() local
149 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
199 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
201 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothHidHostTest.java149 List<BluetoothDevice> connectedDevices = mHidHost.getConnectedDevices(); in getConnectedDevices() local
150 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
162 List<BluetoothDevice> connectedDevices = mHidHost.getDevicesMatchingConnectionStates(null); in getDevicesMatchingConnectionStates() local
163 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothCsipSetCoordinatorTest.java197 List<BluetoothDevice> connectedDevices = mBluetoothCsipSetCoordinator.getConnectedDevices(); in getConnectedDevices() local
198 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
210 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
212 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothHapClientTest.java118 List<BluetoothDevice> connectedDevices = mService.getConnectedDevices(); in getConnectedDevices() local
119 assertThat(connectedDevices.isEmpty()).isTrue(); in getConnectedDevices()
128 List<BluetoothDevice> connectedDevices = mService.getDevicesMatchingConnectionStates(null); in getDevicesMatchingConnectionStates() local
129 assertThat(connectedDevices.isEmpty()).isTrue(); in getDevicesMatchingConnectionStates()
DBluetoothLeAudioTest.java194 List<BluetoothDevice> connectedDevices = mBluetoothLeAudio.getConnectedDevices(); in getConnectedDevices() local
195 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
207 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
209 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
DBluetoothVolumeControlTest.java223 List<BluetoothDevice> connectedDevices = mBluetoothVolumeControl.getConnectedDevices(); in getConnectedDevices() local
224 assertTrue(connectedDevices.isEmpty()); in getConnectedDevices()
236 List<BluetoothDevice> connectedDevices = in getDevicesMatchingConnectionStates() local
238 assertTrue(connectedDevices.isEmpty()); in getDevicesMatchingConnectionStates()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DObservingDevicePresenceTest.kt69 assertEmpty(PrimaryCompanionService.connectedDevices) in test_observingDevicePresence_isOffByDefault()
70 assertEmpty(SecondaryCompanionService.connectedDevices) in test_observingDevicePresence_isOffByDefault()
163 assertEmpty(PrimaryCompanionService.connectedDevices) in test_stopObservingDevicePresence()
164 assertEmpty(SecondaryCompanionService.connectedDevices) in test_stopObservingDevicePresence()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DHidDeviceActivity.java216 List<BluetoothDevice> connectedDevices = mBluetoothHidDevice.getConnectedDevices(); in getConnectedDevice() local
217 if (connectedDevices.size() == 0) { in getConnectedDevice()