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.java40 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
41 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.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.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.java376 int bondState = mAdapterService.getBondState(device); in okToConnect() local
379 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
380 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
743 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
745 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
748 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
818 int bondState = mAdapterService.getBondState(device); in connectionStateChanged() local
819 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/src/com/android/bluetooth/a2dp/
DA2dpService.java375 int bondState = mAdapterService.getBondState(device); in okToConnect() local
378 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
379 Log.w(TAG, "okToConnect: return false, bondState=" + bondState); in okToConnect()
1048 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument
1050 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged()
1053 if (bondState != BluetoothDevice.BOND_NONE) { in bondStateChanged()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java142 private void testOkToConnectCase(BluetoothDevice device, int bondState, int priority, in testOkToConnectCase() argument
144 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java891 int bondState = adapterService.getBondState(device); in okToConnect() local
894 if (bondState != BluetoothDevice.BOND_BONDED) { in okToConnect()
895 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