Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java54 private static final int BOND_NONE = BluetoothDevice.BOND_NONE; field in BondStateMachineTest
123 TEST_BT_ADDR_BYTES, BOND_NONE); in testCreateBondAfterRemoveBond()
126 TEST_BT_ADDR_BYTES_2, BOND_NONE); in testCreateBondAfterRemoveBond()
155 testSendIntentNoPendingDevice(BOND_NONE, BOND_NONE, BOND_NONE, in testSendIntent()
156 false, BOND_NONE, BOND_NONE); in testSendIntent()
157 testSendIntentNoPendingDevice(BOND_NONE, BOND_BONDING, BOND_BONDING, in testSendIntent()
158 true, BOND_NONE, BOND_BONDING); in testSendIntent()
159 testSendIntentNoPendingDevice(BOND_NONE, BOND_BONDED, BOND_BONDED, in testSendIntent()
160 true, BOND_NONE, BOND_BONDING); in testSendIntent()
161 testSendIntentNoPendingDevice(BOND_NONE, badBondState, BOND_NONE, in testSendIntent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java161 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
225 if (newState == BluetoothDevice.BOND_NONE in processMessage()
238 if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
329 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond()
351 BluetoothDevice.BOND_NONE, BluetoothProtoEnums.BOND_SUB_STATE_UNKNOWN, in createBond()
354 sendIntent(dev, BluetoothDevice.BOND_NONE, BluetoothDevice.UNBOND_REASON_REMOVED); in createBond()
383 int oldState = BluetoothDevice.BOND_NONE; in sendIntent()
384 if (newState != BluetoothDevice.BOND_NONE in sendIntent()
426 if (oldState == BluetoothDevice.BOND_NONE) { in sendIntent()
438 if (newState == BluetoothDevice.BOND_NONE) { in sendIntent()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java250 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, false); in testOkToConnect()
252 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
254 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_ALLOWED, false); in testOkToConnect()
256 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
500 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
516 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
561 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
572 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
583 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
594 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java103 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, false); in testOkToConnect()
105 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
107 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_ALLOWED, false); in testOkToConnect()
109 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java291 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, false); in testOkToConnect()
293 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
295 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_ALLOWED, false); in testOkToConnect()
297 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
526 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
542 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
639 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testProcessAudioStateChangedCodecConfigChangedEvents()
663 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
674 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
685 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java248 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, false); in testOkToConnect()
250 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
252 BluetoothDevice.BOND_NONE, BluetoothProfile.CONNECTION_POLICY_ALLOWED, false); in testOkToConnect()
254 BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
610 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
626 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
671 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
682 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
693 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
704 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java168 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
382 BluetoothDevice.BOND_NONE); in onReceive()
383 if (bondState == BluetoothDevice.BOND_NONE && Objects.equals(mDevice, device)) { in onReceive()
435 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
504 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
DBluetoothDevicePairer.java225 BluetoothDevice.BOND_NONE);
227 BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.BOND_NONE);
234 if (bondState == BluetoothDevice.BOND_NONE &&
653 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DBluetoothBondedListReceiver.java50 if (intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE) in onReceive()
51 == BluetoothDevice.BOND_NONE) { in onReceive()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java111 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
149 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
150 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
152 BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java134 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
150 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
177 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue()
DBluetoothDeviceDetailsFragmentTest.java19 import static android.bluetooth.BluetoothDevice.BOND_NONE;
134 when(mCachedDevice.getBondState()).thenReturn(BOND_NONE); in finishFragmentIfNecessary_deviceIsBondNone_finishFragment()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragment.java19 import static android.bluetooth.BluetoothDevice.BOND_NONE;
139 if (mCachedDevice.getBondState() == BOND_NONE) { in finishFragmentIfNecessary()
DBluetoothPairingDialog.java54 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothPairingDetail.java186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DDevicePickerFragment.java166 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothUnbondedDevicesPreferenceControllerTest.java104 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
105 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java94 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
95 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
DBluetoothDevicePickerPreferenceControllerTest.java95 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
96 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DUtilsGetBondStateNameTest.java55 {BluetoothDevice.BOND_NONE, "unbonded"}, in provideParams()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialog.java54 bondState == BluetoothDevice.BOND_NONE) {
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java194 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
196 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
198 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection()
200 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, badPriorityValue, in testOkToAcceptConnection()
DHeadsetServiceAndStateMachineTest.java349 doReturn(BluetoothDevice.BOND_NONE).when(mAdapterService).getBondState(eq(device)); in testUnbondDevice_disconnectBeforeUnbond()
351 unbondIntent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE); in testUnbondDevice_disconnectBeforeUnbond()
396 doReturn(BluetoothDevice.BOND_NONE).when(mAdapterService).getBondState(eq(device)); in testUnbondDevice_disconnectAfterUnbond()
398 unbondIntent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE); in testUnbondDevice_disconnectAfterUnbond()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java356 if (mDevice.getBondState() != BluetoothDevice.BOND_NONE) { in nextStepConnect()
486 } else if (bond == BluetoothDevice.BOND_NONE) { in handleIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java523 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
593 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()

12