Home
last modified time | relevance | path

Searched refs:BOND_BONDED (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java52 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/Settings/tests/robotests/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdaterTest.java85 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
100 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference()
156 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference()
174 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference()
229 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_deviceNotContain_removePreference()
DBluetoothDeviceUpdaterTest.java193 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected()
201 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
DBluetoothDevicePreferenceTest.java109 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent()
179 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java116 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, true); in testOkToConnect()
118 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
120 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_ALLOWED, true); in testOkToConnect()
122 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java158 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()
402 && newState == BluetoothDevice.BOND_BONDED && devProp.getUuids() == null)) { in sendIntent()
444 msg.arg1 = BluetoothDevice.BOND_BONDED; in bondStateChangeCallback()
569 } else if (state == BluetoothDevice.BOND_BONDED) { in state2str()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceControllerTest.java98 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
99 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
248 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
269 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDevicePreference.java94 || 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()
DDevicePickerFragment.java125 BluetoothDevice.BOND_BONDED) || !mNeedAuth) { in onDevicePreferenceClick()
146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
DSavedBluetoothDeviceUpdater.java49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
DBluetoothPairingDialog.java51 if (bondState == BluetoothDevice.BOND_BONDED ||
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java113 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget()
182 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder()
243 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
DDevicePickerFragment.java125 BluetoothDevice.BOND_BONDED) || !mNeedAuth) { in onDevicePreferenceClick()
146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
DBluetoothPairingDialog.java53 if (bondState == BluetoothDevice.BOND_BONDED ||
DSavedBluetoothDeviceUpdater.java104 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java116 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp()
308 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, true); in testOkToConnect()
310 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
312 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_ALLOWED, true); in testOkToConnect()
314 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
677 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
688 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
699 mA2dpService.bondStateChanged(mTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java118 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp()
265 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_UNKNOWN, true); in testOkToConnect()
267 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, false); in testOkToConnect()
269 BluetoothDevice.BOND_BONDED, BluetoothProfile.CONNECTION_POLICY_ALLOWED, true); in testOkToConnect()
271 BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
684 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
695 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
706 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceController.java95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
128 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
DBluetoothPairingSelectionFragment.java41 if (bondState == BluetoothDevice.BOND_BONDED) {
DBluetoothPairingDialog.java51 if (bondState == BluetoothDevice.BOND_BONDED ||
DBluetoothUnbondedDevicesPreferenceController.java89 boolean matches = device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java349 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()
365 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()
482 if (bond == BluetoothDevice.BOND_BONDED) { in handleIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java113 if (value instanceof Integer && d.getBondState() == BluetoothDevice.BOND_BONDED) { in AvrcpVolumeManager()
124 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java111 doReturn(BluetoothDevice.BOND_BONDED).when(mAdapterService) in setUp()
211 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection()
213 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection()
215 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, in testOkToAcceptConnection()
217 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_BONDED, badPriorityValue, in testOkToAcceptConnection()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java238 } else if (bondState == BluetoothDevice.BOND_BONDED) {
566 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding()

123