Hello,
In cupcake version, the discovered BT devices are listed with its type
icon.
I found that some laptops (with windows XP) are shown with headphone
icon.

My debugging result is that
(1) their COD (class of device) is 0x1c010B, which  indicates that its
major service is "rendering" and its major class is "computer".
(2)
android.bluetooth.BluetoothA2dp.java's doesClassMachSink method return
true if COD's 18th bit ("rendering" is set.
(3) Setting package's LocalBluetoothProfileManager.java's fill method
adds A2DP profile once (2) is satisfied.
(4) Setting package's LocalBluetoothDevice.java's getBtClassDrawable
method checks the device's profile first and then major class. If the
device contains A2DP profile, a "headphone" icon is displayed.

My question is that
- why "rendering" bit of major service is considered as A2DP profile?
- why getBtClassDrawable method can check the device's major device
class first rather than checking major service class. If so, the
laptops announcing 0x1c010B can display a laptop icon properly.

Thanks a lot,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to