/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 52 private static final int BOND_BONDED = BluetoothDevice.BOND_BONDED; field in BondStateMachineTest 106 testSendIntentNoPendingDevice(BOND_NONE, BOND_BONDED, BOND_BONDED, in testSendIntent() 114 testSendIntentNoPendingDevice(BOND_BONDING, BOND_BONDED, BOND_BONDED, in testSendIntent() 118 testSendIntentNoPendingDevice(BOND_BONDED, BOND_NONE, BOND_NONE, in testSendIntent() 119 true, BOND_BONDED, BOND_NONE); in testSendIntent() 120 testSendIntentNoPendingDevice(BOND_BONDED, BOND_BONDING, BOND_BONDING, in testSendIntent() 121 true, BOND_BONDED, BOND_BONDING); in testSendIntent() 122 testSendIntentNoPendingDevice(BOND_BONDED, BOND_BONDED, BOND_BONDED, in testSendIntent() 124 testSendIntentNoPendingDevice(BOND_BONDED, badBondState, BOND_BONDED, in testSendIntent() 132 testSendIntentPendingDevice(BOND_NONE, BOND_BONDED, BOND_NONE, in testSendIntent() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
D | HidHostServiceTest.java | 120 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_UNDEFINED, true); in testOkToConnect() 122 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect() 124 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_ON, true); in testOkToConnect() 126 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_AUTO_CONNECT, true); in testOkToConnect() 128 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 158 sendIntent(dev, BluetoothDevice.BOND_BONDED, 0); in processMessage() 300 if (dev.getBondState() == BluetoothDevice.BOND_BONDED) { in removeBond() 367 && newState != BluetoothDevice.BOND_BONDED) { in sendIntent() 376 if (oldState == BluetoothDevice.BOND_BONDED) { in sendIntent() 400 && newState == BluetoothDevice.BOND_BONDED && devProp.getUuids() == null)) { in sendIntent() 442 msg.arg1 = BluetoothDevice.BOND_BONDED; in bondStateChangeCallback() 564 } else if (state == BluetoothDevice.BOND_BONDED) { in state2str()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePickerPreferenceControllerTest.java | 104 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 105 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 255 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent() 276 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 122 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp() 327 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_UNDEFINED, true); in testOkToConnect() 329 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect() 331 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_ON, true); in testOkToConnect() 333 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_AUTO_CONNECT, true); in testOkToConnect() 335 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect() 700 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents() 711 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents() 722 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDevicePreference.java | 94 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 163 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 215 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
|
D | DevicePickerFragment.java | 125 BluetoothDevice.BOND_BONDED) || !mNeedAuth) { in onDevicePreferenceClick() 146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
|
D | SavedBluetoothDeviceUpdater.java | 49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
|
D | BluetoothPairingDialog.java | 51 if (bondState == BluetoothDevice.BOND_BONDED ||
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 95 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 164 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 218 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
|
D | DevicePickerFragment.java | 125 BluetoothDevice.BOND_BONDED) || !mNeedAuth) { in onDevicePreferenceClick() 146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
|
D | SavedBluetoothDeviceUpdater.java | 49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
|
D | BluetoothPairingDialog.java | 53 if (bondState == BluetoothDevice.BOND_BONDED ||
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 118 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp() 276 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_UNDEFINED, true); in testOkToConnect() 278 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_OFF, false); in testOkToConnect() 280 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_ON, true); in testOkToConnect() 282 BluetoothDevice.BOND_BONDED, BluetoothProfile.PRIORITY_AUTO_CONNECT, true); in testOkToConnect() 284 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect() 678 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents() 689 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents() 700 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePickerPreferenceController.java | 95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal() 128 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
|
D | BluetoothPairingSelectionFragment.java | 44 if (bondState == BluetoothDevice.BOND_BONDED) {
|
D | BluetoothPairingDialog.java | 51 if (bondState == BluetoothDevice.BOND_BONDED ||
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 70 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 82 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference()
|
D | BluetoothDevicePreferenceTest.java | 90 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 160 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
|
D | BluetoothDeviceUpdaterTest.java | 187 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected() 195 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 112 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp() 216 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection() 218 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection() 220 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection() 222 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection() 224 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, badPriorityValue, in testOkToAcceptConnection()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 108 if (value instanceof Integer && d.getBondState() == BluetoothDevice.BOND_BONDED) { in AvrcpVolumeManager() 119 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 347 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect() 363 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect() 480 if (bond == BluetoothDevice.BOND_BONDED) { in handleIntent()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 238 } else if (bondState == BluetoothDevice.BOND_BONDED) { 566 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding()
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothProfileDeviceManager.java | 214 } else if (state == BluetoothDevice.BOND_BONDED) { in handleDeviceBondStateChange() 719 if (device.getBondState() != BluetoothDevice.BOND_BONDED) return; in addBondedDeviceIfSupported()
|