Home
last modified time | relevance | path

Searched refs:bondState (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/
DBluetoothAudioPairer.java186 int bondState = sTestMode ? BOND_NONE : mDevice.getBondState(); in unpair() local
189 "Unpair for state: " + bondState)) { in unpair() argument
192 if (bondState == BluetoothDevice.BOND_BONDED) { in unpair()
198 } else if (bondState == BluetoothDevice.BOND_BONDING) { in unpair()
207 if (bondState != BluetoothDevice.BOND_NONE) { in unpair()
208 throw new PairingException("returned false, state=%s", bondState); in unpair()
437 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, ERROR); in onReceiveDeviceIntent() local
439 handleBondStateChanged(bondState, reason); in onReceiveDeviceIntent()
687 private void handleBondStateChanged(int bondState, int reason) in handleBondStateChanged() argument
690 Log.i(TAG, "Bond state changed to " + bondState + ", reason=" + reason); in handleBondStateChanged()
[all …]
DBluetoothClassicPairer.java153 private void handleBondStateChanged(int bondState, int reason) { in handleBondStateChanged() argument
155 "BluetoothClassicPairer, bond state changed to " + bondState + ", reason=" in handleBondStateChanged()
157 switch (bondState) { in handleBondStateChanged()
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/
DBluetoothController.kt183 val bondState = in getScanMode() constant
186 when (bondState) { in getScanMode()
195 bondState.bondStateToString() in getScanMode()
197 listener.onBondStateChanged(bondState) in getScanMode()
253 fun onBondStateChanged(bondState: Int) in onA2DPSinkProfileConnected()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingService.java91 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
93 Log.d(TAG, "onReceive() Bond state change : " + bondState + ", device name : "
95 … if ((bondState != BluetoothDevice.BOND_NONE) && (bondState != BluetoothDevice.BOND_BONDED)) {
103 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
106 mDevice.getName() + "), BondState: " + bondState);
DBluetoothPairingDetail.java180 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
181 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
185 } else if (bondState == BluetoothDevice.BOND_BONDING) { in onDeviceBondStateChanged()
196 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DBluetoothPairingDialog.java51 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
53 if (bondState == BluetoothDevice.BOND_BONDED ||
54 bondState == BluetoothDevice.BOND_NONE) {
DDevicePickerFragment.java160 int bondState) { in onDeviceBondStateChanged() argument
165 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
168 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DBluetoothDevicePreference.java264 int bondState = mCachedDevice.getBondState(); in onClicked() local
273 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
277 } else if (bondState == BluetoothDevice.BOND_NONE) { in onClicked()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingService.java79 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
81 if ((bondState != BluetoothDevice.BOND_NONE) && (bondState
90 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
93 + mDevice.getName() + "), BondState: " + bondState);
DBluetoothPairingDialog.java51 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
53 if (bondState == BluetoothDevice.BOND_BONDED ||
54 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothDevicePickerPreferenceController.java139 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
140 super.onDeviceBondStateChanged(cachedDevice, bondState); in onDeviceBondStateChanged()
141 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
DBluetoothScanningDevicesGroupPreferenceController.java166 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
167 LOG.d("onDeviceBondStateChanged device: " + cachedDevice + " state: " + bondState); in onDeviceBondStateChanged()
168 if (bondState == BluetoothDevice.BOND_NONE && isStarted()) { in onDeviceBondStateChanged()
DBluetoothPairingSelectionFragment.java52 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
53 if (bondState == BluetoothDevice.BOND_BONDED) {
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryService.java279 int bondState = mAdapterService.getBondState(device); in canConnect() local
282 if (bondState != BluetoothDevice.BOND_BONDED) { in canConnect()
283 Log.w(TAG, "canConnect: return false, bondState=" + bondState); in canConnect()
309 int bondState = mAdapterService.getBondState(device); in handleConnectionStateChanged() local
310 if (bondState == BluetoothDevice.BOND_NONE) { in handleConnectionStateChanged()
481 void handleBondStateChanged(BluetoothDevice device, int bondState) { in handleBondStateChanged() argument
483 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in handleBondStateChanged()
486 if (bondState != BluetoothDevice.BOND_NONE) { in handleBondStateChanged()
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/
DSecurity.kt110 val bondState = in <lambda>() constant
124 LE_LEVEL3 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
131 LEVEL1 -> !isEncrypted || bondState == BOND_BONDED in <lambda>()
132 LEVEL2 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java416 int bondState = mAdapterService.getBondState(device); in okToConnect() local
419 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
420 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
821 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
823 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
826 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
899 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
900 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java341 int bondState = mAdapterService.getBondState(device); in okToConnect() local
344 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
345 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
893 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
895 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
898 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
944 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
945 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java237 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
244 bondState);
247 if (bondState == BluetoothDevice.BOND_NONE &&
253 } else if (bondState == BluetoothDevice.BOND_BONDED) {
DBluetoothPairingDialog.java91 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
93 if (bondState == BluetoothDevice.BOND_BONDED ||
94 bondState == BluetoothDevice.BOND_NONE) {
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlService.java445 int bondState = mAdapterService.getBondState(device); in okToConnect() local
448 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
449 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
973 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
975 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
978 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
1022 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
1023 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/
DBlueletImpl.java304 public void setBondState(String remoteAddress, int bondState, int failureReason) { in setBondState() argument
307 .putExtra(BluetoothDevice.EXTRA_BOND_STATE, bondState) in setBondState()
319 address, remoteAddress, getBondState(remoteAddress), bondState, in setBondState()
321 mRemoteAddressToBondState.put(remoteAddress, bondState); in setBondState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientService.java251 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
253 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
257 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
420 int bondState = mAdapterService.getBondState(device); in okToConnect() local
423 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
424 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
446 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
447 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java149 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
151 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DBassClientService.java629 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
630 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
638 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
639 log("Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
642 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
722 int bondState = mAdapterService.getBondState(device); in okToConnect() local
725 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
726 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java401 int bondState = mAdapterService.getBondState(device); in okToConnect() local
404 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
405 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
1114 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
1116 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
1119 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()

12