Closed Bug 905558 Opened 11 years ago Closed 11 years ago

[Bluetooth] HFP PTS test cases TC_AG_TWC_BV_03_I & TC_AG_TWC_BV_05_I fails (test cases for CHLD=2 and CHLD=1)

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(blocking-b2g:leo+, firefox26 fixed, b2g18 fixed, b2g-v1.1hd fixed)

VERIFIED FIXED
blocking-b2g leo+
Tracking Status
firefox26 --- fixed
b2g18 --- fixed
b2g-v1.1hd --- fixed

People

(Reporter: ben.tian, Assigned: arthurcc)

References

Details

(Keywords: regression)

Attachments

(1 file)

HFP PTS test case TC_AG_TWC_BV_03_I examines "CHLD=2" command that puts current active call on hold and held call active. During test gecko bluetooth sends command to gaia dialer but doesn't get expected call state changes. Require Gaia dialer app revise the call holding/answering flow.
`holdAndAnswer` should handle only the case of there exists a connected call and an incoming call. In the other case we should use `toggleCalls`.

Etienne, could you help review the change? Thanks!
Attachment #790682 - Flags: review?(etienne)
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

`endAndAnswer` is also affected. This bug was regressed by bug 895226. The patch of bug 895226 assumes that the active call is the last one but which is wrong.

Cancel the review at first.
Attachment #790682 - Flags: review?(etienne)
Rename bug title. Both test cases TC_AG_TWC_BV_03_I and TC_AG_TWC_BV_05_I are affected by bug 895226.
Summary: [Bluetooth] HFP PTS test case TC_AG_TWC_BV_03_I fails (test case for CHLD=2) → [Bluetooth] HFP PTS test cases TC_AG_TWC_BV_03_I & TC_AG_TWC_BV_05_I fails (test cases for CHLD=2 and CHLD=1)
Nominate for leo+ as it fails the BT certification test cases.
blocking-b2g: --- → leo?
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

The patch respects to the telephony.active if exists. If telephony.active is null, it fallbacks to a proper call object. In the case of `holdAndAnswer`, it answers the last call. And in the case of `endAndAnswer`, it hangs up the previous call. Etienne, could you help review the patch? Thanks!
Attachment #790682 - Flags: review?(etienne)
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

The change makes sense, r- for the failing tests.
Some nits on github.

|calls_handler.js|'s unit-test coverage is now descent. Which means that you can update and add tests for your change (yay!).

I've also CC'ed you on bug 902994, I think it would greatly help with BT certification.
Attachment #790682 - Flags: review?(etienne) → review-
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

Etienne, thanks for reviewing! I've added the test cases and addressed the comments. Could you help take a look at it again?
Attachment #790682 - Flags: review- → review?(etienne)
blocking-b2g: leo? → leo+
Arthur, the following lists commands from gecko bluetooth to dial app:

--
ATA
  Answer call.
CHUP
  Hang-up call.
BLDN
  Call the last phone number dialed. BLDN stands for Bluetooth Last Dial Number.
ATD>nnn...
  Call the n-th last phone number dialed. n=1 is the same as BLDN.
ATDdd...dd
  Call phone number dd...dd.
VTS=<DTMF>
  Generate DTMF sound of <DTMF>.
CHLD=0
  Release all held calls or sets user determined user busy (DDUB) for a waiting call.
CHLD=1 (CHUP+ATA in b2g18)
  Release all active calls (if any exist) and accept the other (held or waiting) call.
CHLD=2 (CHLD+ATA in b2g18)
  Place all active calls (if any exist) on hold and accept the other (held or waiting) call.
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

Almost there! Comments on github, all test-related.
Attachment #790682 - Flags: review?(etienne)
Blocks: 906717
Blocks: 906991
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

Comments addressed. Thanks!
Attachment #790682 - Flags: review?(etienne)
Comment on attachment 790682 [details]
link to https://github.com/mozilla-b2g/gaia/pull/11544

All good, thanks you for the clean work!
Attachment #790682 - Flags: review?(etienne) → review+
Thanks Etienne!

master: https://github.com/mozilla-b2g/gaia/commit/18fbbb23111ca4e7c43816ebeef729e6444a1457
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 907441
v1.1.0hd: 3bd5c3b4ac36be37b0127e1dd6293fbf2890072d
No longer depends on: 907441
This issue was verified in below vesion of Unagi, and the result is passed.

Gaia:     9fb5802df60a9081846d704def01df814ed8fbd4
  B-D     2013-09-01 02:12:02
Gecko:    7f9a1195fb6f3b51ad9200ac995d4ff8eb7a4939
BuildID   20130902060051
Version   26.0a1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: