Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java66 private static final int BOND_NONE = BluetoothDevice.BOND_NONE; field in BondStateMachineTest
146 AbstractionLayer.BT_STATUS_SUCCESS, TEST_BT_ADDR_BYTES, BOND_NONE, 0); in testCreateBondAfterRemoveBond()
149 AbstractionLayer.BT_STATUS_SUCCESS, TEST_BT_ADDR_BYTES_2, BOND_NONE, 0); in testCreateBondAfterRemoveBond()
262 BOND_NONE, BOND_NONE, false, BOND_NONE, false, BOND_NONE, BOND_NONE, false); in testSendIntent()
265 BOND_NONE, BOND_BONDING, false, BOND_BONDING, true, BOND_NONE, BOND_BONDING, false); in testSendIntent()
267 BOND_NONE, BOND_BONDED, false, BOND_BONDED, true, BOND_NONE, BOND_BONDING, true); in testSendIntent()
269 BOND_NONE, badBondState, false, BOND_NONE, false, BOND_NONE, BOND_NONE, false); in testSendIntent()
271 BOND_BONDING, BOND_NONE, false, BOND_NONE, true, BOND_BONDING, BOND_NONE, false); in testSendIntent()
278 BOND_NONE, in testSendIntent()
279 BOND_NONE, in testSendIntent()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBondStateMachine.java199 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
273 if (newState == BluetoothDevice.BOND_NONE in processMessage()
286 if (newState == BluetoothDevice.BOND_NONE) { in processMessage()
416 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond()
470 BluetoothDevice.BOND_NONE, in createBond()
476 BluetoothDevice.BOND_NONE, in createBond()
518 int oldState = BluetoothDevice.BOND_NONE; in sendIntent()
519 if (newState != BluetoothDevice.BOND_NONE in sendIntent()
588 if (oldState == BluetoothDevice.BOND_NONE) { in sendIntent()
601 if (newState == BluetoothDevice.BOND_NONE) { in sendIntent()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java94 BluetoothDevice.BOND_NONE, in testOkToConnect()
99 BluetoothDevice.BOND_NONE, in testOkToConnect()
104 BluetoothDevice.BOND_NONE, in testOkToConnect()
107 testOkToConnectCase(mTestDevice, BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java157 BluetoothDevice.BOND_NONE, in testCanConnect()
162 BluetoothDevice.BOND_NONE, in testCanConnect()
167 BluetoothDevice.BOND_NONE, in testCanConnect()
170 testCanConnectCase(mDevice, BluetoothDevice.BOND_NONE, badPolicyValue, false); in testCanConnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java221 BluetoothDevice.BOND_NONE, in testOkToConnect()
226 BluetoothDevice.BOND_NONE, in testOkToConnect()
231 BluetoothDevice.BOND_NONE, in testOkToConnect()
234 testOkToConnectCase(sTestDevice, BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
494 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
522 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
625 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testProcessAudioStateChangedCodecConfigChangedEvents()
650 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
661 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
674 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java169 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
383 BluetoothDevice.BOND_NONE); in onReceive()
384 if (bondState == BluetoothDevice.BOND_NONE && Objects.equals(mDevice, device)) { in onReceive()
436 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
505 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
DBluetoothDevicePairer.java245 BluetoothDevice.BOND_NONE);
247 BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.BOND_NONE);
254 if (bondState == BluetoothDevice.BOND_NONE &&
692 if (state != BluetoothDevice.BOND_NONE) { in unpairDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java241 BluetoothDevice.BOND_NONE, in testOkToConnect()
246 BluetoothDevice.BOND_NONE, in testOkToConnect()
251 BluetoothDevice.BOND_NONE, in testOkToConnect()
254 testOkToConnectCase(mSingleDevice, BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
720 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
736 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
780 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
791 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
804 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
817 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairGattServerTest.java620 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testProcessPasskeyRequest_pairingConfirmed()
647 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testProcessPasskeyRequestWrongPasskey_pairingCancelled()
661 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testProcessPasskeyRequestShortPasskey_pairingCancelled()
672 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testProcessPasskeyRequestNullPasskey_pairingCancelled()
683 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testProcessPasskeyBeforePairingCodeReceived_pairingContinues()
696 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testReceivePairingCodeBeforeSeekerPasskey_noPairingResponseSent()
709 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testReceivePairingCodeAfterSeekerPasskey_sendsPairingResponse()
738 BluetoothDevice.BOND_BONDING, BluetoothDevice.BOND_NONE); in testReceivePairingCodeWhileDisconnected_nothingSent()
DBluetoothUtilsGetBondStateNameTest.java55 {BluetoothDevice.BOND_NONE, "unbonded"}, in provideParams()
DBluetoothConnectionRetryManagerTest.java347 sendBondStateChanged(device, BluetoothDevice.BOND_NONE); in testDeviceUnbondsBeforeFirstConnect_doNothing()
373 sendBondStateChanged(device, BluetoothDevice.BOND_NONE); in testDeviceUnbondsAfterRetryPosted_retriesRemoved()
/packages/modules/Bluetooth/android/pandora/server/src/
DSecurityStorage.kt21 import android.bluetooth.BluetoothDevice.BOND_NONE
108 ) == BluetoothDevice.BOND_NONE in deleteBond()
DSecurity.kt23 import android.bluetooth.BluetoothDevice.BOND_NONE in <lambda>()
162 .filter { it == BOND_BONDED || it == BOND_NONE } in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java150 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
166 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
193 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue()
DBluetoothDetailsPairOtherControllerTest.java164 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in isAvailable_deviceIsConnectedHearingAid_subDeviceIsNotBonded_available()
202 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in isAvailable_deviceIsConnectedHearingAid_memberDeviceIsNotBonded_available()
DBluetoothDeviceDetailsFragmentTest.java19 import static android.bluetooth.BluetoothDevice.BOND_NONE;
220 when(mCachedDevice.getBondState()).thenReturn(BOND_NONE); in finishFragmentIfNecessary_deviceIsBondNone_finishFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java135 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
185 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
186 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
189 BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
DBluetoothUnbondedDevicesPreferenceControllerTest.java122 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
123 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java442 BluetoothDevice.BOND_NONE, in testOkToConnect()
447 BluetoothDevice.BOND_NONE, in testOkToConnect()
452 BluetoothDevice.BOND_NONE, in testOkToConnect()
455 testOkToConnectCase(mSingleDevice, BluetoothDevice.BOND_NONE, badPriorityValue, false); in testOkToConnect()
778 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
802 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testCreateStateMachineStackEvents()
848 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
864 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
880 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
893 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_NONE); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java237 BluetoothDevice.BOND_NONE, in testOkToConnect()
242 BluetoothDevice.BOND_NONE, in testOkToConnect()
247 BluetoothDevice.BOND_NONE, in testOkToConnect()
250 testOkToConnectCase(mTestDevice, BluetoothDevice.BOND_NONE, badPolicyValue, false); in testOkToConnect()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialog.java54 bondState == BluetoothDevice.BOND_NONE) {
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java54 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothDevicePreference.java384 } else if (bondState == BluetoothDevice.BOND_NONE) { in onClicked()
424 if (mCachedDevice.getBondState() != BluetoothDevice.BOND_NONE) { in getConnectionSummary()
DBluetoothDeviceDetailsFragment.java19 import static android.bluetooth.BluetoothDevice.BOND_NONE;
318 if (mCachedDevice.getBondState() == BOND_NONE) { in finishFragmentIfNecessary()
DBluetoothDevicePairingDetailBase.java109 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()

123