Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePairingDetailBase.java93 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
94 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
98 } else if (bondState == BluetoothDevice.BOND_BONDING) { in onDeviceBondStateChanged()
109 && 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) {
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)) {
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.java371 int bondState = mCachedDevice.getBondState(); in onClicked() local
380 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
384 } 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.java261 int bondState = mAdapterService.getBondState(device); in canConnect() local
264 if (bondState != BluetoothDevice.BOND_BONDED) { in canConnect()
265 Log.w(TAG, "canConnect: return false, bondState=" + bondState); in canConnect()
294 int bondState = mAdapterService.getBondState(device); in handleConnectionStateChanged() local
295 if (bondState == BluetoothDevice.BOND_NONE) { in handleConnectionStateChanged()
443 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
444 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
446 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
/packages/modules/Bluetooth/android/pandora/server/src/
DSecurity.kt175 val bondState = waitBondIntent(bluetoothDevice) in <lambda>() constant
178 LEVEL1 -> !isEncrypted || bondState == BOND_BONDED in <lambda>()
179 LEVEL2 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
195 val bondState = waitBondIntent(bluetoothDevice) in <lambda>() constant
199 LE_LEVEL3 -> isEncrypted && bondState == BOND_BONDED in <lambda>()
/packages/apps/Settings/src/com/android/settings/accessibility/
DHearingDevicePairingFragment.java193 int bondState) { in onDeviceBondStateChanged() argument
196 + bondState); in onDeviceBondStateChanged()
198 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
203 } else if (bondState == BluetoothDevice.BOND_BONDING) { in onDeviceBondStateChanged()
213 if (mSelectedDevice.equals(device) && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java381 int bondState = mAdapterService.getBondState(device); in okToConnect() local
384 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
385 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
840 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
841 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
843 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
920 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
921 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java333 int bondState = mAdapterService.getBondState(device); in okToConnect() local
336 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
337 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
941 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
942 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
943 if (bondState == BluetoothDevice.BOND_BONDING in bondStateChanged()
949 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
1014 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
1015 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java244 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
251 bondState);
254 if (bondState == BluetoothDevice.BOND_NONE &&
260 } 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/hap/
DHapClientService.java220 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
221 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
224 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
383 int bondState = mAdapterService.getBondState(device); in okToConnect() local
386 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
387 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
414 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
415 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java163 BluetoothDevice device, int bondState, int priority, boolean expected) { in testOkToConnectCase() argument
164 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlService.java430 int bondState = mAdapterService.getBondState(device); in okToConnect() local
433 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
434 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
1300 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
1301 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
1303 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
1362 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
1363 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java277 BluetoothDevice device, int bondState, int policy, boolean expected) { in testCanConnectCase() argument
278 doReturn(bondState).when(mAdapterService).getBondState(device); in testCanConnectCase()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragmentTest.kt224 whenever(mockBluetoothDevice.bondState).thenReturn(BluetoothDevice.BOND_NONE) in <lambda>()
238 whenever(mockBluetoothDevice.bondState).thenReturn(BluetoothDevice.BOND_BONDED) in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DPairedBluetoothDevicesWorker.java73 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java400 int bondState = mAdapterService.getBondState(device); in okToConnect() local
403 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
404 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
1193 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
1194 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
1196 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothConnectionRetryManager.java87 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, in onReceive() local
90 mFirstConnectionTracker.handleDeviceBondStateChange(device, bondState); in onReceive()

12