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)
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).
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
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)
Assignee | ||
Comment 3•10 years ago
|
||
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 4•10 years ago
|
||
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 5•10 years ago
|
||
Comment on attachment 8558909 [details] [review]
pull request 27897
Looks good to me.
Attachment #8558909 -
Flags: feedback?(jaliu) → feedback+
Assignee | ||
Comment 6•10 years ago
|
||
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 7•10 years ago
|
||
Comment on attachment 8558909 [details] [review]
pull request 27897
r=me with the comments addressed, thanks!
Attachment #8558909 -
Flags: review?(arthur.chen) → review+
Assignee | ||
Comment 8•10 years ago
|
||
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.
Description
•