Home
last modified time | relevance | path

Searched refs:BOND_NONE (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java50 private static final int BOND_NONE = BluetoothDevice.BOND_NONE; field in BondStateMachineTest
102 testSendIntentNoPendingDevice(BOND_NONE, BOND_NONE, BOND_NONE, in testSendIntent()
103 false, BOND_NONE, BOND_NONE); in testSendIntent()
104 testSendIntentNoPendingDevice(BOND_NONE, BOND_BONDING, BOND_BONDING, in testSendIntent()
105 true, BOND_NONE, BOND_BONDING); in testSendIntent()
106 testSendIntentNoPendingDevice(BOND_NONE, BOND_BONDED, BOND_BONDED, in testSendIntent()
107 true, BOND_NONE, BOND_BONDING); in testSendIntent()
108 testSendIntentNoPendingDevice(BOND_NONE, badBondState, BOND_NONE, in testSendIntent()
109 false, BOND_NONE, BOND_NONE); in testSendIntent()
110 testSendIntentNoPendingDevice(BOND_BONDING, BOND_NONE, BOND_NONE, in testSendIntent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java148 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
211 if (newState == BluetoothDevice.BOND_NONE in processMessage()
227 if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
317 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond()
335 BluetoothDevice.BOND_NONE, BluetoothProtoEnums.BOND_SUB_STATE_UNKNOWN, in createBond()
338 sendIntent(dev, BluetoothDevice.BOND_NONE, BluetoothDevice.UNBOND_REASON_REMOVED); in createBond()
364 int oldState = BluetoothDevice.BOND_NONE; in sendIntent()
365 if (newState != BluetoothDevice.BOND_NONE in sendIntent()
405 if (oldState == BluetoothDevice.BOND_NONE) { in sendIntent()
417 if (newState == BluetoothDevice.BOND_NONE) { in sendIntent()
[all …]
DRemoteDevices.java222 mBondState = BluetoothDevice.BOND_NONE; in DeviceProperties()
317 if (mBondState == BluetoothDevice.BOND_NONE) { in setBondState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java100 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_UNDEFINED, false); in testOkToConnect()
102 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect()
104 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_ON, false); in testOkToConnect()
106 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_AUTO_CONNECT, false); in testOkToConnect()
108 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java307 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_UNDEFINED, false); in testOkToConnect()
309 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect()
311 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_ON, false); in testOkToConnect()
313 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_AUTO_CONNECT, false); in testOkToConnect()
315 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
557 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
573 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
671 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testProcessAudioStateChangedCodecConfigChangedEvents()
696 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
707 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java256 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_UNDEFINED, false); in testOkToConnect()
258 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect()
260 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_ON, false); in testOkToConnect()
262 BluetoothDevice.BOND_NONE, BluetoothProfile.PRIORITY_AUTO_CONNECT, false); in testOkToConnect()
264 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
615 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
631 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
674 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
685 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
696 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java98 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
140 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
141 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
142 mController.onDeviceBondStateChanged(mBondedCachedDevice, BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
DBluetoothUnbondedDevicesPreferenceControllerTest.java94 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
95 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java97 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
98 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
DBluetoothDevicePickerPreferenceControllerTest.java101 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
102 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java170 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
388 BluetoothDevice.BOND_NONE); in onReceive()
389 if (bondState == BluetoothDevice.BOND_NONE && Objects.equals(mDevice, device)) { in onReceive()
443 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
514 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
DBluetoothDevicePairer.java223 BluetoothDevice.BOND_NONE);
225 BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.BOND_NONE);
232 if (bondState == BluetoothDevice.BOND_NONE &&
632 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java101 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
117 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
144 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue()
DSavedBluetoothDeviceUpdaterTest.java92 doReturn(BluetoothDevice.BOND_NONE).when(mBluetoothDevice).getBondState(); in update_filterNotMatch_removePreference()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java196 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
198 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
200 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
202 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
204 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, badPriorityValue, in testOkToAcceptConnection()
DHeadsetServiceAndStateMachineTest.java351 doReturn(BluetoothDevice.BOND_NONE).when(mAdapterService).getBondState(eq(device)); in testUnbondDevice_disconnectBeforeUnbond()
353 unbondIntent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE); in testUnbondDevice_disconnectBeforeUnbond()
399 doReturn(BluetoothDevice.BOND_NONE).when(mAdapterService).getBondState(eq(device)); in testUnbondDevice_disconnectAfterUnbond()
401 unbondIntent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE); in testUnbondDevice_disconnectAfterUnbond()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingDialog.java52 bondState == BluetoothDevice.BOND_NONE) {
DDevicePickerFragment.java149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DBluetoothPairingDetail.java186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialog.java52 bondState == BluetoothDevice.BOND_NONE) {
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java54 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothPairingDetail.java186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DDevicePickerFragment.java149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java354 if (mDevice.getBondState() != BluetoothDevice.BOND_NONE) { in nextStepConnect()
483 } else if (bond == BluetoothDevice.BOND_NONE) { in handleIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java699 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
770 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()

12