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
184 doAnswer(invocation -> mBondedDevices.toArray(new BluetoothDevice[]{})).when( in setUp()
253 mBondedDevices.clear(); in tearDown()
284 mBondedDevices.add(device); in testConnectFromApi()
328 mBondedDevices.add(device); in testUnbondDevice_disconnectBeforeUnbond()
372 mBondedDevices.add(device); in testUnbondDevice_disconnectAfterUnbond()
433 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
436 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
439 Assert.assertThat(connectedDevices, Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_normalStartStop()
469 Matchers.containsInAnyOrder(mBondedDevices.toArray())); in testVirtualCall_preemptedByTelecomCall()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java84 private CopyOnWriteArrayList<BluetoothDevice> mBondedDevices = field in AdapterProperties
238 mBondedDevices.clear(); in cleanup()
521 bondedDeviceList = mBondedDevices.toArray(bondedDeviceList); in getBondedDevices()
547 if (!mBondedDevices.contains(device)) { in onBondStateChanged()
549 mBondedDevices.add(device); in onBondStateChanged()
553 if (mBondedDevices.remove(device)) { in onBondStateChanged()
975 for (BluetoothDevice device : mBondedDevices) { in dump()