/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 268 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/ |
D | BluetoothPairListLiveDataTest.java | 98 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/ |
D | BluetoothHelperTest.java | 94 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/ |
D | AccessoriesFragment.java | 79 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()
|
D | BluetoothAccessoryFragment.java | 138 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/ |
D | PeripheralHandoverService.java | 267 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/ |
D | A2dpReceiver.java | 147 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/ |
D | BluetoothProfileDeviceManager.java | 448 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/ |
D | DatabaseManager.java | 777 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/ |
D | A2dpSinkService.java | 340 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 342 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 395 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/ |
D | DatabaseManagerTest.java | 107 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/ |
D | MapClientService.java | 203 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 205 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 553 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/ |
D | A2dpService.java | 392 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/ |
D | MainFragment.java | 589 final Set<BluetoothDevice> bondedDevices = mBtAdapter.getBondedDevices(); in updateAccessoryPref() local 590 if (bondedDevices.size() == 0) { in updateAccessoryPref()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 760 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 762 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapService.java | 569 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 572 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 814 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/ |
D | HeadsetClientStateMachine.java | 1765 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 1768 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 2326 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/ |
D | GattService.java | 1948 Set<BluetoothDevice> bondedDevices = mAdapter.getBondedDevices(); in getDevicesMatchingConnectionStates() local 1949 for (BluetoothDevice device : bondedDevices) { in getDevicesMatchingConnectionStates()
|