Closed
Bug 1148314
Opened 10 years ago
Closed 7 years ago
[Bluetooth] Discoverable property will be true to false immediately while turn Bluetooth state from off to on.
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: iliu, Unassigned)
Details
(Whiteboard: [webbt-api] [POVB])
== Description ==
Discoverable property will be true to false immediately while turn Bluetooth state from off to on. Since I'm working on Bug 1144532, I find out the problem that we have to fix.
== STR ==
1. Turn Bluetooth on and set visibility to be enabled.
2. Turn Bluetooth off while visibility is enabled.
3. Turn Bluetooth off --> on.
== Expected ==
The visibility should be false.
== Actual ==
The visibility is changed from enabled to disabled immediately.
Reporter | ||
Updated•10 years ago
|
Whiteboard: [webbt-api]
Reporter | ||
Comment 1•10 years ago
|
||
Jocelyn,
I have checked that the 'discoverable' property is changed to be false while I just turn Bluetooth state off. Under the condition and general use case, I think Gaia would not need to do adapter.setDiscoverable(false) before we do adapter.disable(). If there is any limitation, please feel free to let me know. Thanks.
Flags: needinfo?(joliu)
Comment 3•10 years ago
|
||
Hi Bruce,
Could you help to check on this?
Thanks,
Jocelyn
Flags: needinfo?(joliu) → needinfo?(brsun)
Comment 4•10 years ago
|
||
This is caused by the behavior of underlying bluedroid stack on flame. |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards. I'm going to try other devices for references.
Flags: needinfo?(brsun)
Updated•10 years ago
|
Assignee: nobody → brsun
Comment 5•10 years ago
|
||
On nexus-4 (JB), |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_NONE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards.
Comment 6•10 years ago
|
||
On nexus-5 (KK), |bt_callbacks_t::adapter_properties_cb| is called with |BT_SCAN_MODE_NONE| first and then with |BT_SCAN_MODE_CONNECTABLE| afterwards, which is the same as nexus-4 (JB).
Comment 7•10 years ago
|
||
The behavior of Bluetooth API v2 on flame is the same as that of Bluetooth API v1.
Comment 8•10 years ago
|
||
This issue is related to the underlying behavior of different Bluetooth backend. Gecko handles the status correctly. Un-assign myself from this bug.
Assignee: brsun → nobody
Whiteboard: [webbt-api] → [webbt-api] [POVB]
Comment 9•10 years ago
|
||
No longer blocks APIv2 testing since it's POVB and the behavior is also the same as v1.
No longer blocks: 1130946
Comment 10•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•