Closed Bug 1122365 Opened 10 years ago Closed 10 years ago

[Bluetooth][Settings] According to Bluetooth class of device to implement icon style.

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iliu, Assigned: iliu)

References

Details

Attachments

(2 files)

Since Bluetooth API v2 changed, the icon style of Bluetooth device is needed to mapping from Bluetooth class of device(COD).
Status: NEW → ASSIGNED
Attached file pull request 27897
Arthur and Jamin, the patch is relative with the device type/icon. And we use class of device to make a decision for the device type. I reference following doc. to write done the rule. It's meaningful to make our type/icon more readable while a user see these devices in list. So I would like both of your feedback here. Thanks:)
Attachment #8558909 - Flags: feedback?(jaliu)
Attachment #8558909 - Flags: feedback?(arthur.chen)
Blocks: 1121904
Reference: * Bluetooth API v1, BluetoothDevice icon property: https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice.icon * Bluetooth API v2, BluetoothClassOfDevice object: https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/ * Bluetooth Class of Device Reference: https://www.bluetooth.org/en-us/specification/assigned-numbers/baseband * Android source code: http://code.metager.de/source/xref/android/4.0.4/external/bluetooth/bluez/src/dbus-common.c#192 * Bluetooth Baseband: The General- and Device-Specific Inquiry Access Codes (DIACs) http://www.ampedrftech.com/guides/cod_definition.pdf
Comment on attachment 8558909 [details] [review] pull request 27897 Good work! Please check my comments in github.
Attachment #8558909 - Flags: feedback?(arthur.chen) → feedback+
Comment on attachment 8558909 [details] [review] pull request 27897 Looks good to me.
Attachment #8558909 - Flags: feedback?(jaliu) → feedback+
Comment on attachment 8558909 [details] [review] pull request 27897 Arthur, I have updated the patch with you and Jamin's feedback. The major change are: * Given definition 'reserved' for those mapping in major device class, but not in minor device class.(All other values reserved) * Add unit tests. I will update the change in Bluetooth app after the patch is reviewed. Thanks.
Attachment #8558909 - Flags: review?(arthur.chen)
Comment on attachment 8558909 [details] [review] pull request 27897 r=me with the comments addressed, thanks!
Attachment #8558909 - Flags: review?(arthur.chen) → review+
Since the pull request is landed, we can close the issue now. Gaia/master: 7622d2cd1866f4326a82afe22e6b8d695a7b9b60
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Component: Bluetooth → Gaia::Settings
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: