Searched refs:bondedDevice (Results 1 – 3 of 3) sorted by relevance
70 val bondedDevice = in isBonded() constant79 Log.i(TAG, "isBonded: device=$bondedDevice") in isBonded()80 BoolValue.newBuilder().setValue(bondedDevice != null).build() in isBonded()
127 BluetoothDevice bondedDevice = mock(BluetoothDevice.class); in setUp() local128 when(bondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()129 when(mBluetoothAdapter.getBondedDevices()).thenReturn(Collections.singleton(bondedDevice)); in setUp()135 when(bondedCachedDevice.getDevice()).thenReturn(bondedDevice); in setUp()
754 BluetoothDevice bondedDevice = getTestDevice(mAdapter, 0); in testAdapterOnAutoConnect() local755 when(mDatabaseManager.getMostRecentlyConnectedA2dpDevice()).thenReturn(bondedDevice); in testAdapterOnAutoConnect()756 when(mAdapterService.getBondState(bondedDevice)).thenReturn(BluetoothDevice.BOND_BONDED); in testAdapterOnAutoConnect()759 when(mHeadsetService.getConnectionPolicy(bondedDevice)) in testAdapterOnAutoConnect()761 when(mA2dpService.getConnectionPolicy(bondedDevice)) in testAdapterOnAutoConnect()768 verify(mA2dpService).connect(eq(bondedDevice)); in testAdapterOnAutoConnect()769 verify(mHeadsetService).connect(eq(bondedDevice)); in testAdapterOnAutoConnect()1094 BluetoothDevice bondedDevice = getTestDevice(mAdapter, 0); in testAutoConnectHfpOnly() local1096 db.setConnection(bondedDevice, BluetoothProfile.HEADSET); in testAutoConnectHfpOnly()1099 .getConnectionPolicy(eq(bondedDevice)); in testAutoConnectHfpOnly()[all …]