diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2009-10-08 02:27:52 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-10-08 04:25:45 -0700 |
commit | e5d93b7ed983f98855555d560faf060836f1a52f (patch) | |
tree | bd9b6c485e3c3af23f1a60944e114783c8add72b /core/java/android/bluetooth/BluetoothDevice.java | |
parent | b134b2038ecabcbec3f9b657834d45de27707068 (diff) | |
download | frameworks_base-e5d93b7ed983f98855555d560faf060836f1a52f.zip frameworks_base-e5d93b7ed983f98855555d560faf060836f1a52f.tar.gz frameworks_base-e5d93b7ed983f98855555d560faf060836f1a52f.tar.bz2 |
Set the Bond State to NONE when we receive a Agent Cancel.
Sometimes during OPP, we can get stuck in Pairing state when the remote
end, cancels the Pairing process - we will just get onAgentCancel
and thus not set the Pairing state properly.
DrNo: Eastham
Bug:2174874
Diffstat (limited to 'core/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 9c23746..39a74ac 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -287,9 +287,13 @@ public final class BluetoothDevice implements Parcelable { /** A bond attempt failed because of repeated attempts * @hide */ public static final int UNBOND_REASON_REPEATED_ATTEMPTS = 7; + /** A bond attempt failed because we received an Authentication Cancel + * by remote end + * @hide */ + public static final int UNBOND_REASON_REMOTE_AUTH_CANCELED = 8; /** An existing bond was explicitly revoked * @hide */ - public static final int UNBOND_REASON_REMOVED = 8; + public static final int UNBOND_REASON_REMOVED = 9; /** The user will be prompted to enter a pin * @hide */ |