/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 50 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/ |
D | BondStateMachine.java | 148 } 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 …]
|
D | RemoteDevices.java | 222 mBondState = BluetoothDevice.BOND_NONE; in DeviceProperties() 317 if (mBondState == BluetoothDevice.BOND_NONE) { in setBondState()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
D | HidHostServiceTest.java | 100 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/ |
D | A2dpServiceTest.java | 307 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/ |
D | HearingAidServiceTest.java | 256 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/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 98 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()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 94 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 95 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 97 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 98 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 101 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/ |
D | BluetoothAccessoryFragment.java | 170 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()
|
D | BluetoothDevicePairer.java | 223 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/ |
D | BluetoothDevicePreferenceTest.java | 101 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()
|
D | SavedBluetoothDeviceUpdaterTest.java | 92 doReturn(BluetoothDevice.BOND_NONE).when(mBluetoothDevice).getBondState(); in update_filterNotMatch_removePreference()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 196 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()
|
D | HeadsetServiceAndStateMachineTest.java | 351 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/ |
D | BluetoothPairingDialog.java | 52 bondState == BluetoothDevice.BOND_NONE) {
|
D | DevicePickerFragment.java | 149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
D | BluetoothPairingDetail.java | 186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPairingDialog.java | 52 bondState == BluetoothDevice.BOND_NONE) {
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialog.java | 54 bondState == BluetoothDevice.BOND_NONE) {
|
D | BluetoothPairingDetail.java | 186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
D | DevicePickerFragment.java | 149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 354 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/ |
D | HearingAidService.java | 699 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged() 770 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
|