/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 54 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/ |
D | BondStateMachine.java | 161 } 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/ |
D | LeAudioServiceTest.java | 250 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/ |
D | HidHostServiceTest.java | 103 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/ |
D | A2dpServiceTest.java | 291 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/ |
D | HearingAidServiceTest.java | 248 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/ |
D | BluetoothAccessoryFragment.java | 168 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()
|
D | BluetoothDevicePairer.java | 225 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/ |
D | BluetoothBondedListReceiver.java | 50 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/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 111 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/ |
D | BluetoothDevicePreferenceTest.java | 134 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()
|
D | BluetoothDeviceDetailsFragmentTest.java | 19 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/ |
D | BluetoothDeviceDetailsFragment.java | 19 import static android.bluetooth.BluetoothDevice.BOND_NONE; 139 if (mCachedDevice.getBondState() == BOND_NONE) { in finishFragmentIfNecessary()
|
D | BluetoothPairingDialog.java | 54 bondState == BluetoothDevice.BOND_NONE) {
|
D | BluetoothPairingDetail.java | 186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
D | DevicePickerFragment.java | 166 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 104 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 105 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 94 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 95 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 95 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/ |
D | UtilsGetBondStateNameTest.java | 55 {BluetoothDevice.BOND_NONE, "unbonded"}, in provideParams()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPairingDialog.java | 54 bondState == BluetoothDevice.BOND_NONE) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 194 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()
|
D | HeadsetServiceAndStateMachineTest.java | 349 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/ |
D | BluetoothPeripheralHandover.java | 356 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/ |
D | LeAudioService.java | 523 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged() 593 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
|