Home
last modified time | relevance | path

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

12

/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.java49 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
51 if (bondState == BluetoothDevice.BOND_BONDED ||
52 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.java135 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
136 LOG.d("onDeviceBondStateChanged device: " + cachedDevice + " state: " + bondState); in onDeviceBondStateChanged()
DBluetoothBondedDevicesPreferenceController.java72 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
DBluetoothPreferenceController.java116 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingService.java80 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
82 … if ((bondState != BluetoothDevice.BOND_NONE) && (bondState != BluetoothDevice.BOND_BONDED)) {
90 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
93 mDevice.getName() + "), BondState: " + bondState);
DBluetoothPairingDialog.java49 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
51 if (bondState == BluetoothDevice.BOND_BONDED ||
52 bondState == BluetoothDevice.BOND_NONE) {
DDevicePickerFragment.java141 int bondState) { in onDeviceBondStateChanged() argument
146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
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()
DBluetoothDevicePreference.java206 int bondState = mCachedDevice.getBondState(); in onClicked() local
215 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
219 } else if (bondState == BluetoothDevice.BOND_NONE) { in onClicked()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingService.java80 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
82 … if ((bondState != BluetoothDevice.BOND_NONE) && (bondState != BluetoothDevice.BOND_BONDED)) {
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) {
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.java141 int bondState) { in onDeviceBondStateChanged() argument
146 if (bondState == BluetoothDevice.BOND_BONDED) { in onDeviceBondStateChanged()
149 } else if (bondState == BluetoothDevice.BOND_NONE) { in onDeviceBondStateChanged()
DBluetoothDevicePreference.java209 int bondState = mCachedDevice.getBondState(); in onClicked() local
218 } else if (bondState == BluetoothDevice.BOND_BONDED) { in onClicked()
222 } else if (bondState == BluetoothDevice.BOND_NONE) { in onClicked()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java360 int bondState = mAdapterService.getBondState(device); in okToConnect() local
363 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
364 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
694 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
696 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
699 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
769 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
770 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java355 int bondState = mAdapterService.getBondState(device); in okToConnect() local
358 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
359 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
980 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
982 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
985 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
1095 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
1096 if (bondState == BluetoothDevice.BOND_NONE) { in connectionStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java222 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
229 bondState);
232 if (bondState == BluetoothDevice.BOND_NONE &&
238 } else if (bondState == BluetoothDevice.BOND_BONDED) {
DBluetoothPairingDialog.java88 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
90 if (bondState == BluetoothDevice.BOND_BONDED ||
91 bondState == BluetoothDevice.BOND_NONE) {
DBluetoothAccessoryFragment.java387 final int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, in onReceive() local
389 if (bondState == BluetoothDevice.BOND_NONE && Objects.equals(mDevice, device)) { in onReceive()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java152 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
154 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java817 int bondState = adapterService.getBondState(device); in okToConnect() local
820 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
821 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

12