Home
last modified time | relevance | path

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

12

/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);
DBluetoothPairingDialog.java51 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
53 if (bondState == BluetoothDevice.BOND_BONDED ||
54 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothPairingDetail.java177 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
178 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
186 && bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DDevicePickerFragment.java158 int bondState) { in onDeviceBondStateChanged() argument
163 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
166 } 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()
DBluetoothDeviceUpdater.java166 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
/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.java126 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
127 super.onDeviceBondStateChanged(cachedDevice, bondState); in onDeviceBondStateChanged()
128 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
DBluetoothPairingSelectionFragment.java43 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
44 if (bondState == BluetoothDevice.BOND_BONDED) {
DBluetoothScanningDevicesGroupPreferenceController.java134 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
135 LOG.d("onDeviceBondStateChanged device: " + cachedDevice + " state: " + bondState); in onDeviceBondStateChanged()
DBluetoothPreferenceController.java126 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
DBluetoothBondedDevicesPreferenceController.java98 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java518 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
520 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
523 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
592 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
593 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
630 int bondState = mAdapterService.getBondState(device); in okToConnect() local
633 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
634 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java384 int bondState = mAdapterService.getBondState(device); in okToConnect() local
387 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
388 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
750 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
752 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
755 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
827 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
828 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java224 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
231 bondState);
234 if (bondState == BluetoothDevice.BOND_NONE &&
240 } else if (bondState == BluetoothDevice.BOND_BONDED) {
DBluetoothPairingDialog.java86 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
88 if (bondState == BluetoothDevice.BOND_BONDED ||
89 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothAccessoryFragment.java381 final int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, in onReceive() local
383 if (bondState == BluetoothDevice.BOND_NONE && Objects.equals(mDevice, device)) { in onReceive()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java144 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
146 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java377 int bondState = mAdapterService.getBondState(device); in okToConnect() local
380 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
381 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
1068 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
1070 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
1073 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java906 int bondState = adapterService.getBondState(device); in okToConnect() local
909 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
910 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragmentTest.java187 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {} in onDeviceBondStateChanged() argument
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java234 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
236 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java1832 int bondState = mAdapterService.getBondState(device); in okToAcceptConnection() local
1835 if (bondState != BluetoothDevice.BOND_BONDED) { in okToAcceptConnection()
1836 Log.w(TAG, "okToAcceptConnection: return false, bondState=" + bondState); in okToAcceptConnection()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java998 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
1000 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()

12