Home
last modified time | relevance | path

Searched refs:mBondedDevices (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java74 private final Set<BluetoothDevice> mBondedDevices = new HashSet<>(); field in BluetoothSummaryUpdaterTest
93 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in setUp()
115 mBondedDevices.add(mConnectedDevice); in register_true_shouldSendSummaryChange()
116 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in register_true_shouldSendSummaryChange()
129 mBondedDevices.add(mConnectedDevice); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
130 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
142 mBondedDevices.add(mConnectedDevice); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
143 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
156 mBondedDevices.add(mConnectedDevice); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
157 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java116 private final Set<BluetoothDevice> mBondedDevices = new HashSet<>(); field in HeadsetServiceAndStateMachineTest
143 doAnswer(invocation -> mBondedDevices.toArray(new BluetoothDevice[] {})) in setUp()
209 mBondedDevices.clear(); in tearDown()
234 mBondedDevices.add(device); in testConnectFromApi()
283 mBondedDevices.add(device); in testUnbondDevice_disconnectBeforeUnbond()
329 mBondedDevices.add(device); in testUnbondDevice_disconnectAfterUnbond()
392 .containsExactlyElementsIn(mBondedDevices); in testVirtualCall_normalStartStop()
396 .containsExactlyElementsIn(mBondedDevices); in testVirtualCall_normalStartStop()
399 assertThat(connectedDevices).containsExactlyElementsIn(mBondedDevices); in testVirtualCall_normalStartStop()
431 .containsExactlyElementsIn(mBondedDevices); in testVirtualCall_preemptedByTelecomCall()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java100 private CopyOnWriteArrayList<BluetoothDevice> mBondedDevices = field in AdapterProperties
292 mBondedDevices.clear(); in cleanup()
612 bondedDeviceList = mBondedDevices.toArray(bondedDeviceList); in getBondedDevices()
639 if (!mBondedDevices.contains(device)) { in onBondStateChanged()
641 mBondedDevices.add(device); in onBondStateChanged()
646 if (mBondedDevices.remove(device)) { in onBondStateChanged()
674 for (BluetoothDevice existingDevice : mBondedDevices) { in cleanupPrevBondRecordsFor()
698 mBondedDevices.remove(existingDevice); in cleanupPrevBondRecordsFor()
1249 for (BluetoothDevice device : mBondedDevices) { in dump()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DPairedBluetoothDevicesTest.java81 private Set<BluetoothDevice> mBondedDevices = new HashSet<>(); field in PairedBluetoothDevicesTest
102 when(mLocalBluetoothAdapter.getBondedDevices()).thenReturn(mBondedDevices); in setUp()
448 mBondedDevices.add(device); in addBluetoothDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java115 private HashSet<BluetoothDevice> mBondedDevices = new HashSet<>(); field in LeAudioServiceTest
207 doAnswer(invocation -> mBondedDevices.toArray(new BluetoothDevice[] {})) in setUp()
243 doAnswer(invocation -> mBondedDevices.toArray(new BluetoothDevice[] {})) in setUp()
277 mBondedDevices.clear(); in tearDown()
1295 mBondedDevices.add(device); in connectTestDevice()