Closed Bug 1187250 Opened 10 years ago Closed 10 years ago

[Aries][Bluetooth]The Bluetooth state at Settings view does not display the device name

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.2 unaffected, b2g-master affected)

RESOLVED WORKSFORME
Tracking Status
b2g-v2.2 --- unaffected
b2g-master --- affected

People

(Reporter: wangxin, Unassigned)

References

Details

(Whiteboard: [2.5-aries-test-run-1])

Attachments

(3 files)

[1.Description]: [Aries][2.5][Bluetooth]Pair device with other devices, then connect a Bluetooth headset. The Bluetooth state at Settings view does not display the name of headset. See video: "Aries_v2.5.3GP". See log:"logcat_0217.txt" See picture: "Aries_v2.5.png" Found Time:02:17 [2.Testing Steps]: 1. Launch Settings. 2. Choose Bluetooth item. 3. Pair with more than 2 devices. 4. Connect to a Bluetooth headset 5. Back to Settings page [3.Expected Result]: 5. The Bluetooth state at Settings view should display as "device, + more". [4.Actual Result]: 5. The Bluetooth state at Setting view didn't display the name of headset. [5.Reproduction build]: Aries v2.5 version (Affected) Build ID 20150723024716 Gaia Revision f04fdbfa1943dddeab8ecd1299a76ab56e590d00 Gaia Date 2015-07-22 18:44:09 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/2ddec2dedced Gecko Version 42.0a1 Device Name aries Firmware(Release) 4.4.2 Firmware(Incremental) eng.worker.20150723.023231 Firmware Date Thu Jul 23 02:32:39 UTC 2015 Bootloader s1 Flame 2.2 version (Unaffected) Build ID 20150723002503 Gaia Revision e1e6317f17a840b19af9dbb25f5a771d8d9fa161 Gaia Date 2015-07-15 21:05:11 Gecko Revision https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/d8326043baec Gecko Version 37.0 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) eng.cltbld.20150723.041700 Firmware Date Thu Jul 23 04:17:12 EDT 2015 Firmware Version v18D v4 Bootloader L1TC000118D0 Flame master version (Unaffected) Build ID 20150723160204 Gaia Revision ec2199b324304d3678b6a98a08a31bdc13c9e984 Gaia Date 2015-07-23 17:16:25 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/cb8bdb8ffaef Gecko Version 42.0a1 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) eng.cltbld.20150723.193607 Firmware Date Thu Jul 23 19:36:19 EDT 2015 Firmware Version v18D v4 Bootloader L1TC000118D0 [6.Reproduction Frequency]: Always Recurrence,5/5 [7.TCID]: 1385 [8. Note]: This problem can be solved via Restart device.
ni? gaia dev. Fred, can you help check why Settings app display bluetooth state incorrectly? Paired devices are shown on bluetooth panel correctly but the state is incorrect per comment 2 video.
Flags: needinfo?(gasolin)
I can reproduce with 1. 1 device paired 2. pair the headset back to root panel and the name is not shown
Assignee: nobody → gasolin
Flags: needinfo?(gasolin)
Status: NEW → ASSIGNED
@jocelyn I found adapter.getPairedDevices() will get blank name when pairing headset after another device. After tracing code I found the root panel will call `bluetooth.firstPairedDeviceName` https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/panels/root/bluetooth_item.js#L105 Which is set in bluetooth_context. https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/modules/bluetooth/bluetooth_context.js#L436 With above steps I got ''(blank) string for headset device and the correct string for other device. (I test by pairing Macbook Air then a BT headset) Unpairing the other device (Macbook Air) then the headset name is shown again. Could you help check it?
Assignee: gasolin → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(joliu)
Fred, did you reproduce on the latest gecko build? Bug 1181827's fix was landed yesterday and it also relates to empty pairing device name. Unsure whether it fixes this bug as well. (In reply to Fred Lin [:gasolin] from comment #6) > After tracing code I found the root panel will call > `bluetooth.firstPairedDeviceName` > https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/panels/root/ > bluetooth_item.js#L105 > Which is set in bluetooth_context. > https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/modules/ > bluetooth/bluetooth_context.js#L436 > > With above steps I got ''(blank) string for headset device and the correct > string for other device. (I test by pairing Macbook Air then a BT headset) > > Unpairing the other device (Macbook Air) then the headset name is shown > again.
Flags: needinfo?(gasolin)
Update to nightly gecko and the issue is gone, thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(joliu)
Flags: needinfo?(gasolin)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: