Home
last modified time | relevance | path

Searched refs:bondedDevice (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/android/pandora/server/src/
DSecurityStorage.kt70 val bondedDevice = in isBonded() constant
79 Log.i(TAG, "isBonded: device=$bondedDevice") in isBonded()
80 BoolValue.newBuilder().setValue(bondedDevice != null).build() in isBonded()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothUnbondedDevicesPreferenceControllerTest.java127 BluetoothDevice bondedDevice = mock(BluetoothDevice.class); in setUp() local
128 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()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java754 BluetoothDevice bondedDevice = getTestDevice(mAdapter, 0); in testAdapterOnAutoConnect() local
755 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() local
1096 db.setConnection(bondedDevice, BluetoothProfile.HEADSET); in testAutoConnectHfpOnly()
1099 .getConnectionPolicy(eq(bondedDevice)); in testAutoConnectHfpOnly()
[all …]