Home
last modified time | relevance | path

Searched refs:mBondedDevices (Results 1 – 3 of 3) 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java101 private HashSet<BluetoothDevice> mBondedDevices = new HashSet<>(); field in HeadsetServiceAndStateMachineTest
186 doAnswer(invocation -> mBondedDevices.toArray(new BluetoothDevice[]{})).when( in setUp()
254 mBondedDevices.clear(); in tearDown()
284 mBondedDevices.add(device); in testConnectFromApi()
327 mBondedDevices.add(device); in testUnbondDevice_disconnectBeforeUnbond()
370 mBondedDevices.add(device); in testUnbondDevice_disconnectAfterUnbond()
431 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
434 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
437 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
471 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java91 private CopyOnWriteArrayList<BluetoothDevice> mBondedDevices = field in AdapterProperties
250 mBondedDevices.clear(); in cleanup()
575 bondedDeviceList = mBondedDevices.toArray(bondedDeviceList); in getBondedDevices()
601 if (!mBondedDevices.contains(device)) { in onBondStateChanged()
603 mBondedDevices.add(device); in onBondStateChanged()
607 if (mBondedDevices.remove(device)) { in onBondStateChanged()
1066 for (BluetoothDevice device : mBondedDevices) { in dump()