diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2009-11-30 14:17:30 -0800 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-11-30 16:37:18 -0800 |
commit | 5f24a24004a9694db757dd6e666d0061dfbdf2b0 (patch) | |
tree | 6c62004d1abcec91229cb4ed170b328be072922c /core/java/android/server/BluetoothService.java | |
parent | f817218e09a556f20efc81309ba2cdb3475a370b (diff) | |
download | frameworks_base-5f24a24004a9694db757dd6e666d0061dfbdf2b0.zip frameworks_base-5f24a24004a9694db757dd6e666d0061dfbdf2b0.tar.gz frameworks_base-5f24a24004a9694db757dd6e666d0061dfbdf2b0.tar.bz2 |
Register Handsfree profile before headset profile. DO NOT MERGE.
There is a delay between registering the two profiles,
and handsfree profile is a superset of the headset profile.
So some devices do an SDP and get the headset profile record
before we have registered the handsfree profile.
a) We can reject all incoming connections till all profiles are
registered, but then this would mean we connect later in some cases.
Registering profiles in this order seems fine to me.
Note: There is a also the need to fix forking sdptool to register
profiles, which would obliviate the need to wait 500 msecs between
profile registrations.
Bug: 2293792
Dr No: Eastham
Diffstat (limited to 'core/java/android/server/BluetoothService.java')
-rw-r--r-- | core/java/android/server/BluetoothService.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index db9f34a..765d510 100644 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -344,14 +344,14 @@ public class BluetoothService extends IBluetooth.Stub { // records, use a DBUS call instead. switch (msg.arg1) { case 1: - Log.d(TAG, "Registering hsag record"); - SystemService.start("hsag"); + Log.d(TAG, "Registering hfag record"); + SystemService.start("hfag"); mHandler.sendMessageDelayed( mHandler.obtainMessage(MESSAGE_REGISTER_SDP_RECORDS, 2, -1), 500); break; case 2: - Log.d(TAG, "Registering hfag record"); - SystemService.start("hfag"); + Log.d(TAG, "Registering hsag record"); + SystemService.start("hsag"); mHandler.sendMessageDelayed( mHandler.obtainMessage(MESSAGE_REGISTER_SDP_RECORDS, 3, -1), 500); break; |