diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2009-11-25 16:01:51 -0800 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-11-30 14:06:59 -0800 |
commit | 249345ee5ae6d7307594c7b80fefdb2a00f14443 (patch) | |
tree | 6ab5d3b6042f73fd66b0ac456d44a4596c619a50 /core/java/android/bluetooth | |
parent | cb37e71509da43e0d8d809591b09e8f5a582b5cd (diff) | |
download | frameworks_base-249345ee5ae6d7307594c7b80fefdb2a00f14443.zip frameworks_base-249345ee5ae6d7307594c7b80fefdb2a00f14443.tar.gz frameworks_base-249345ee5ae6d7307594c7b80fefdb2a00f14443.tar.bz2 |
Add AUTO_CONNECT priority for Headset profile.
Also, don't set priority to ON while disconnecting.
This logic has been pushed up to the Settings app.
Diffstat (limited to 'core/java/android/bluetooth')
-rw-r--r-- | core/java/android/bluetooth/BluetoothHeadset.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java index 90cff6b..5eb655a 100644 --- a/core/java/android/bluetooth/BluetoothHeadset.java +++ b/core/java/android/bluetooth/BluetoothHeadset.java @@ -100,9 +100,14 @@ public final class BluetoothHeadset { /** Connection canceled before completetion. */ public static final int RESULT_CANCELED = 2; - /** Default priority for headsets that should be auto-connected */ - public static final int PRIORITY_AUTO = 100; - /** Default priority for headsets that should not be auto-connected */ + /** Default priority for headsets that for which we will accept + * inconing connections and auto-connect */ + public static final int PRIORITY_AUTO_CONNECT = 1000; + /** Default priority for headsets that for which we will accept + * inconing connections but not auto-connect */ + public static final int PRIORITY_ON = 100; + /** Default priority for headsets that should not be auto-connected + * and not allow incoming connections. */ public static final int PRIORITY_OFF = 0; /** The voice dialer 'works' but the user experience is poor. The voice |