Home
last modified time | relevance | path

Searched refs:bondedDevices (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java268 BluetoothDevice[] bondedDevices = new BluetoothDevice[1]; in testReconnectOnPartialConnect() local
269 bondedDevices[0] = TestUtils.getTestDevice(mAdapter, 0); in testReconnectOnPartialConnect()
270 when(mAdapterService.getBondedDevices()).thenReturn(bondedDevices); in testReconnectOnPartialConnect()
274 when(mHeadsetService.getConnectionPolicy(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
276 when(mA2dpService.getConnectionPolicy(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
285 hsConnectedDevices.add(bondedDevices[0]); in testReconnectOnPartialConnect()
288 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
293 updateProfileConnectionStateHelper(bondedDevices[0], BluetoothProfile.HEADSET, in testReconnectOnPartialConnect()
298 eq(bondedDevices[0])); in testReconnectOnPartialConnect()
599 BluetoothDevice[] bondedDevices = new BluetoothDevice[1]; in testNoReconnectOnNoConnect() local
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/livedata/
DBluetoothPairListLiveDataTest.java98 Set<BluetoothDevice> bondedDevices = new HashSet<BluetoothDevice>(); in testOnBluetoothConnected() local
99 bondedDevices.add(bluetoothDevice1); in testOnBluetoothConnected()
102 shadowBluetoothAdapter.setBondedDevices(bondedDevices); in testOnBluetoothConnected()
108 verifyBondedDevices(bondedDevices); in testOnBluetoothConnected()
113 bondedDevices.add(bluetoothDevice2); in testOnBluetoothConnected()
114 shadowBluetoothAdapter.setBondedDevices(bondedDevices); in testOnBluetoothConnected()
118 verifyBondedDevices(bondedDevices); in testOnBluetoothConnected()
133 private void verifyBondedDevices(Set bondedDevices) { in verifyBondedDevices() argument
136 bondedDevices)).isTrue(); in verifyBondedDevices()
138 bondedDevices.size()); in verifyBondedDevices()
[all …]
/packages/apps/Car/Messenger/tests/robotests/src/com/android/car/messenger/bluetooth/
DBluetoothHelperTest.java94 Set<BluetoothDevice> bondedDevices = BluetoothHelper.getBondedDevices(); in testGetPairedDevices_bondedDevices() local
95 assertThat(bondedDevices).hasSize(2); in testGetPairedDevices_bondedDevices()
96 assertThat(bondedDevices).contains(mMockDeviceOne); in testGetPairedDevices_bondedDevices()
97 assertThat(bondedDevices).contains(mMockDeviceTwo); in testGetPairedDevices_bondedDevices()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoriesFragment.java79 final Set<BluetoothDevice> bondedDevices = mBtAdapter.getBondedDevices(); in updateAccessories() local
80 if (bondedDevices == null) { in updateAccessories()
87 final Set<String> touchedKeys = new ArraySet<>(bondedDevices.size() + 1); in updateAccessories()
92 for (final BluetoothDevice device : bondedDevices) { in updateAccessories()
DBluetoothAccessoryFragment.java138 final Set<BluetoothDevice> bondedDevices = btAdapter.getBondedDevices(); in onCreate() local
139 if (bondedDevices != null) { in onCreate()
140 for (BluetoothDevice device : bondedDevices) { in onCreate()
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java267 Set<BluetoothDevice> bondedDevices = mBluetoothAdapter.getBondedDevices(); in hasConnectedBluetoothDevices() local
269 if (bondedDevices != null) { in hasConnectedBluetoothDevices()
270 for (BluetoothDevice device : bondedDevices) { in hasConnectedBluetoothDevices()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java147 Set<BluetoothDevice> bondedDevices = mBluetoothAdapter.getBondedDevices(); in initialize() local
148 if (bondedDevices == null) { in initialize()
152 for (BluetoothDevice bd : bondedDevices) { in initialize()
/packages/services/Car/service/src/com/android/car/
DBluetoothProfileDeviceManager.java448 Set<BluetoothDevice> bondedDevices = mBluetoothAdapter.getBondedDevices(); in sync() local
449 for (BluetoothDevice device : bondedDevices) { in sync()
456 if (!bondedDevices.contains(device)) { in sync()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java777 BluetoothDevice[] bondedDevices = mAdapterService.getBondedDevices(); in removeUnusedMetadata() local
781 && !Arrays.asList(bondedDevices).stream().anyMatch(device -> in removeUnusedMetadata()
828 BluetoothDevice[] bondedDevices = mAdapterService.getBondedDevices(); in migrateSettingsGlobal() local
831 for (BluetoothDevice device : bondedDevices) { in migrateSettingsGlobal()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java340 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
342 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java395 final BluetoothDevice[] bondedDevices = mAdapterService.getBondedDevices(); in getDevicesMatchingConnectionStates() local
396 if (bondedDevices == null) { in getDevicesMatchingConnectionStates()
400 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java107 BluetoothDevice[] bondedDevices = {mTestDevice}; in setUp() local
108 doReturn(bondedDevices).when(mAdapterService).getBondedDevices(); in setUp()
300 BluetoothDevice[] bondedDevices = {otherDevice1, otherDevice2}; in testRemoveUnusedMetadata_WithMultiBondedDevices() local
301 doReturn(bondedDevices).when(mAdapterService).getBondedDevices(); in testRemoveUnusedMetadata_WithMultiBondedDevices()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java203 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
205 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java553 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
554 if (bondedDevices == null) { in getDevicesMatchingConnectionStates()
558 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java392 final BluetoothDevice[] bondedDevices = mAdapterService.getBondedDevices(); in getDevicesMatchingConnectionStates() local
393 if (bondedDevices == null) { in getDevicesMatchingConnectionStates()
397 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java589 final Set<BluetoothDevice> bondedDevices = mBtAdapter.getBondedDevices(); in updateAccessoryPref() local
590 if (bondedDevices.size() == 0) { in updateAccessoryPref()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java760 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
762 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java569 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
572 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java814 final BluetoothDevice[] bondedDevices = mAdapterService.getBondedDevices(); in getDevicesMatchingConnectionStates() local
815 if (bondedDevices == null) { in getDevicesMatchingConnectionStates()
818 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java1765 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
1768 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java2326 BluetoothDevice[] bondedDevices = getBondedDevices(); in updateUuids() local
2327 if (bondedDevices == null) { in updateUuids()
2331 for (BluetoothDevice device : bondedDevices) { in updateUuids()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1948 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local
1949 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()