Home | History | Annotate | Download | only in server

Lines Matching defs:BluetoothDevice

29 import android.bluetooth.BluetoothDevice;
359 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDING)) {
360 mBondState.setBondState(address, BluetoothDevice.BOND_NONE,
361 BluetoothDevice.UNBOND_REASON_AUTH_CANCELED);
613 setPin(address, BluetoothDevice.convertPinToBytes("0000"));
620 if (result == BluetoothDevice.BOND_SUCCESS) {
621 setBondState(address, BluetoothDevice.BOND_BONDED);
625 } else if (result == BluetoothDevice.UNBOND_REASON_AUTH_FAILED &&
629 } else if (result == BluetoothDevice.UNBOND_REASON_REMOTE_DEVICE_DOWN &&
633 setBondState(address, BluetoothDevice.BOND_NONE, result);
656 setBondState(address, BluetoothDevice.BOND_NONE, result);
667 BluetoothDevice.BOND_NONE, result);
721 BluetoothDevice.BOND_BONDED);
738 if (oldState == BluetoothDevice.BOND_BONDING) {
744 if (state == BluetoothDevice.BOND_BONDED) {
746 } else if (state == BluetoothDevice.BOND_NONE) {
752 Intent intent = new Intent(BluetoothDevice.ACTION_BOND_STATE_CHANGED);
753 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address));
754 intent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, state);
755 intent.putExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, oldState);
756 if (state == BluetoothDevice.BOND_NONE) {
760 reason = BluetoothDevice.UNBOND_REASON_REMOVED;
762 intent.putExtra(BluetoothDevice.EXTRA_REASON, reason);
803 return BluetoothDevice.BOND_NONE;
966 case BluetoothDevice.BOND_NONE:
968 case BluetoothDevice.BOND_BONDING:
970 case BluetoothDevice.BOND_BONDED:
1220 mBondState.getBondState(address) != BluetoothDevice.BOND_NONE) {
1242 mBondState.setBondState(address, BluetoothDevice.BOND_BONDING);
1257 mBondState.setBondState(address, BluetoothDevice.BOND_BONDING);
1279 Pair<byte[], byte[]> getDeviceOutOfBandData(BluetoothDevice device) {
1301 if (mBondState.getBondState(address) != BluetoothDevice.BOND_BONDING) {
1305 mBondState.setBondState(address, BluetoothDevice.BOND_NONE,
1306 BluetoothDevice.UNBOND_REASON_AUTH_CANCELED);
1334 return mBondState.listInState(BluetoothDevice.BOND_BONDED);
1344 return BluetoothDevice.ERROR;
1619 return BluetoothDevice.ERROR;
1730 mBondState.setBondState(address, BluetoothDevice.BOND_NONE,
1731 BluetoothDevice.UNBOND_REASON_AUTH_CANCELED);
1940 Intent intent = new Intent(BluetoothDevice.ACTION_UUID);
1941 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address));
1942 intent.putExtra(BluetoothDevice.EXTRA_UUID, uuid);