Home
last modified time | relevance | path

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

1234

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java68 private static final int BOND_BONDED = BluetoothDevice.BOND_BONDED; field in BondStateMachineTest
124 deviceProperties1.mBondState = BOND_BONDED; in testCreateBondAfterRemoveBond()
125 deviceProperties2.mBondState = BOND_BONDED; in testCreateBondAfterRemoveBond()
215 mBondStateMachine.sendIntent(pendingDevice, BOND_BONDED, TEST_BOND_REASON, false); in testUuidUpdateWithPendingDevice()
237 bondedMsg.arg1 = BOND_BONDED; in testUuidUpdateWithPendingDevice()
267 BOND_NONE, BOND_BONDED, false, BOND_BONDED, true, BOND_NONE, BOND_BONDING, true); in testSendIntent()
282 BOND_BONDING, BOND_BONDED, false, BOND_BONDED, false, BOND_NONE, BOND_NONE, true); in testSendIntent()
293 BOND_BONDED, BOND_NONE, false, BOND_NONE, true, BOND_BONDED, BOND_NONE, false); in testSendIntent()
295 BOND_BONDED, in testSendIntent()
300 BOND_BONDED, in testSendIntent()
[all …]
DAdapterPropertiesTest.java117 mAdapterProperties.onBondStateChanged(device1, BluetoothDevice.BOND_BONDED); in testCleanupPrevBondRecordsFor()
118 mAdapterProperties.onBondStateChanged(device2, BluetoothDevice.BOND_BONDED); in testCleanupPrevBondRecordsFor()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothConnectionRetryManagerTest.java206 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testSuccessfulFirstConnect_doNothing()
228 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testFailedFirstConnectMethod1_retryPosted()
250 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testFailedFirstConnectMethod2_retryPosted()
272 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testFailedFirstConnect_retryConnectInvoked()
299 sendBondStateChanged(deviceDoesNothing, BluetoothDevice.BOND_BONDED); in testFirstConnectTwoDevices_onlyOneDeviceRetries()
300 sendBondStateChanged(deviceFailsConnection, BluetoothDevice.BOND_BONDED); in testFirstConnectTwoDevices_onlyOneDeviceRetries()
346 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testDeviceUnbondsBeforeFirstConnect_doNothing()
370 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testDeviceUnbondsAfterRetryPosted_retriesRemoved()
396 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testSuccessfulFirstConnectFailedSecond_doNothing()
421 sendBondStateChanged(device, BluetoothDevice.BOND_BONDED); in testFailedFirstConnectTwice_retryTwice()
[all …]
DBluetoothUtilsGetBondStateNameTest.java53 {BluetoothDevice.BOND_BONDED, "bonded"}, in provideParams()
/packages/modules/Bluetooth/android/pandora/server/src/
DSecurity.kt22 import android.bluetooth.BluetoothDevice.BOND_BONDED in <lambda>()
155 if (bluetoothDevice.getBondState() == BOND_BONDED) { in <lambda>()
156 return BOND_BONDED in <lambda>()
162 .filter { it == BOND_BONDED || it == BOND_NONE } in <lambda>()
178 LEVEL1 -> !isEncrypted || bondState == BOND_BONDED in <lambda>()
179 LEVEL2 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
199 LE_LEVEL3 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdaterTest.java106 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
127 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference()
218 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference()
236 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference()
291 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_deviceNotContain_removePreference()
328 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_notExclusivelyManagedDevice_addDevice()
347 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_existingExclusivelyManagedDevice_packageEnabled_removePreference()
371 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_newExclusivelyManagedDevice_packageEnabled_doNotAddPreference()
394 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_exclusivelyManagedDevice_packageNotInstalled_addDevice()
418 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_exclusivelyManagedDevice_packageNotEnabled_addDevice()
DDevicePickerFragmentTest.java82 mFragment.onDeviceBondStateChanged(cachedDevice, BluetoothDevice.BOND_BONDED); in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage()
101 mFragment.onDeviceBondStateChanged(cachedDevice, BluetoothDevice.BOND_BONDED); in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend()
DBluetoothDetailsPairOtherControllerTest.java145 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailable_deviceIsConnectedHearingAid_subDeviceIsBonded_notAvailable()
183 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailable_deviceIsConnectedHearingAid_memberDeviceIsBonded_notAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DSavedHearingDeviceUpdaterTest.java84 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_savedHearingDevice_returnTrue()
96 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_savedNonHearingDevice_returnFalse()
120 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_connectedHearingDevice_returnFalse()
132 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
DAvailableHearingDeviceUpdaterTest.java84 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_connectedHearingDevice_returnTrue()
96 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_nonConnectedHearingDevice_returnFalse()
120 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java126 BluetoothDevice.BOND_BONDED, in testOkToConnect()
131 BluetoothDevice.BOND_BONDED, in testOkToConnect()
136 BluetoothDevice.BOND_BONDED, in testOkToConnect()
139 testOkToConnectCase(mTestDevice, BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java84 doReturn(BluetoothDevice.BOND_BONDED) in setUp()
189 BluetoothDevice.BOND_BONDED, in testCanConnect()
194 BluetoothDevice.BOND_BONDED, in testCanConnect()
199 BluetoothDevice.BOND_BONDED, in testCanConnect()
202 testCanConnectCase(mDevice, BluetoothDevice.BOND_BONDED, badPolicyValue, false); in testCanConnect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBondStateMachine.java211 sendIntent(dev, BluetoothDevice.BOND_BONDED, 0, true); in processMessage()
216 sendIntent(dev, BluetoothDevice.BOND_BONDED, 0, false); in processMessage()
383 if (devProp != null && devProp.getBondState() == BluetoothDevice.BOND_BONDED) { in removeBond()
521 && newState != BluetoothDevice.BOND_BONDED) { in sendIntent()
532 && (oldState != BluetoothDevice.BOND_BONDED in sendIntent()
533 || newState != BluetoothDevice.BOND_BONDED in sendIntent()
546 if (oldState == BluetoothDevice.BOND_BONDED) { in sendIntent()
578 && newState == BluetoothDevice.BOND_BONDED in sendIntent()
643 msg.arg1 = BluetoothDevice.BOND_BONDED; in bondStateChangeCallback()
830 } else if (state == BluetoothDevice.BOND_BONDED) { in state2str()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsPairOtherController.java118 subDevice != null && subDevice.getBondState() == BluetoothDevice.BOND_BONDED; in isOtherSideBonded()
123 device -> device.getBondState() == BluetoothDevice.BOND_BONDED); in isOtherSideBonded()
DSavedBluetoothDeviceUpdater.java111 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
116 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
DDevicePickerFragment.java144 BluetoothDevice.BOND_BONDED) || !mNeedAuth) { in onDevicePreferenceClick()
165 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
DBluetoothDevicePreference.java149 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget()
315 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder()
380 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicesService.java114 case BluetoothDevice.BOND_BONDED:
136 if (device.getBondState() == BluetoothDevice.BOND_BONDED) {
153 if (device.getBondState() == BluetoothDevice.BOND_BONDED) {
DAccessoryUtils.java110 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected()
117 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceController.java108 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
141 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceControllerTest.java127 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
128 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
329 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
354 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java138 doReturn(BluetoothDevice.BOND_BONDED) in setUp()
253 BluetoothDevice.BOND_BONDED, in testOkToConnect()
258 BluetoothDevice.BOND_BONDED, in testOkToConnect()
263 BluetoothDevice.BOND_BONDED, in testOkToConnect()
266 testOkToConnectCase(sTestDevice, BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
654 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
665 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
678 mA2dpService.bondStateChanged(sTestDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java128 doReturn(BluetoothDevice.BOND_BONDED) in setUp()
269 BluetoothDevice.BOND_BONDED, in testOkToConnect()
274 BluetoothDevice.BOND_BONDED, in testOkToConnect()
279 BluetoothDevice.BOND_BONDED, in testOkToConnect()
282 testOkToConnectCase(mTestDevice, BluetoothDevice.BOND_BONDED, badPolicyValue, false); in testOkToConnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java142 doReturn(BluetoothDevice.BOND_BONDED) in setUp()
273 BluetoothDevice.BOND_BONDED, in testOkToConnect()
278 BluetoothDevice.BOND_BONDED, in testOkToConnect()
283 BluetoothDevice.BOND_BONDED, in testOkToConnect()
286 testOkToConnectCase(mSingleDevice, BluetoothDevice.BOND_BONDED, badPriorityValue, false); in testOkToConnect()
784 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
795 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
808 mService.bondStateChanged(mLeftDevice, BluetoothDevice.BOND_BONDED); in testDeleteStateMachineUnbondEvents()
/packages/apps/Settings/src/com/android/settings/accessibility/
DSavedHearingDeviceUpdater.java43 && device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()

1234