Closed
Bug 861725
Opened 12 years ago
Closed 11 years ago
B2G Emulator: support call forwarding
Categories
(Firefox OS Graveyard :: Emulator, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S4 (20june)
People
(Reporter: edgar, Assigned: edgar)
References
Details
(Whiteboard: [ft:ril][p=3])
Attachments
(5 files, 1 obsolete file)
60 bytes,
text/x-github-pull-request
|
vicamo
:
review+
|
Details | Review |
61 bytes,
text/x-github-pull-request
|
vicamo
:
review+
|
Details | Review |
1.04 KB,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
12.10 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
61 bytes,
text/x-github-pull-request
|
vicamo
:
review+
|
Details | Review |
Enhance emulator to support call forwarding.
- RIL_REQUEST_QUERY_CALL_FORWARD_STATUS [1]
- RIL_REQUEST_SET_CALL_FORWARD [2]
- AT+CCFC [3]
[1] https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/include/telephony/ril.h#L1676
[2] https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/include/telephony/ril.h#L1692
[3] Please see TS 27.007 session 7.11
Thanks
Assignee | ||
Comment 1•12 years ago
|
||
hardware/ril working branch:
https://github.com/EdgarChen/platform_hardware_ril/commits/bug_861725
Assignee: nobody → echen
Assignee | ||
Comment 2•12 years ago
|
||
external/qemu working branch:
https://github.com/EdgarChen/platform_external_qemu/commits/bug_861725
Updated•12 years ago
|
Blocks: b2g-emulator
Updated•12 years ago
|
Component: General → Emulator
Assignee | ||
Updated•11 years ago
|
Whiteboard: [ft:ril]
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
The changes of reference-ril and qemu break the current callforwarding test cases, so we have to disable those test first.
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Landing sequence:
1). Gecko part 1
2). qemu and hardware/ril
3). Gecko part 2
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8435472 [details] [diff] [review]
Part 1: Disable callforwarding test cases to wait emualtor changes, v1
Hi Vicamo, could you help to review this? Thank you
Attachment #8435472 -
Flags: review?(vyang)
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 8424721 [details] [review]
platform_hardware_ril: PR #37
Hi Vicamo, could you help to review this? Thank you
Attachment #8424721 -
Flags: review?(vyang)
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8424722 [details] [review]
platform_external_qemu: PR #85
Hi Vicamo, could you help to review this? Thank you
Attachment #8424722 -
Flags: review?(vyang)
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8435524 [details] [diff] [review]
Part 2: Revise the call forwarding test cases, v1
Hi Vicamo, could you help to review this? Thank you
Attachment #8435524 -
Flags: review?(vyang)
Assignee | ||
Updated•11 years ago
|
Whiteboard: [ft:ril] → [ft:ril][p=3]
Target Milestone: --- → 2.0 S3 (6june)
Updated•11 years ago
|
Attachment #8435472 -
Flags: review?(vyang) → review+
Comment 12•11 years ago
|
||
Comment on attachment 8435524 [details] [diff] [review]
Part 2: Revise the call forwarding test cases, v1
Review of attachment 8435524 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mobileconnection/tests/marionette/test_mobile_call_forwarding.js
@@ +36,5 @@
> + is(aEvent.timeSeconds, aOptions.timeSeconds, "check timeSeconds");
> + is(aEvent.serviceClass, aOptions.serviceClass, "check serviceClass");
> + }));
> + // Check DOMRequest's result.
> + promises.push(setCallForwardingOption(aOptions).then(() => {}, (aError) => {
nit: simply place a null for the onresolve handler.
@@ +40,5 @@
> + promises.push(setCallForwardingOption(aOptions).then(() => {}, (aError) => {
> + ok(false, "got '" + aError.name + "' error");
> + }));
> +
> + return Promise.all(promises);
Please check validity after |Promise.all()| resolves. Something like:
return Promise.all()
.then(function(aResults) {
// aResults[0] should be an DOMEvent for "cfstatechange".
...
});
@@ +84,5 @@
> + reason: reason,
> + action: MozMobileConnection.CALL_FORWARD_ACTION_ERASURE
> + };
> + promise =
> + promise.then(setCallForwardingOption(options).then(() => {}, () => {}));
nit: to prevent rejects, you can simply assign onreject handler only, which makes |.then(null, true)| in this case.
@@ +99,5 @@
> + .then(() => testGetCallForwardingOption(data.reason, data));
> + }
> + // reset call forwarding settings.
> + return promise.then(() => clearAllCallForwardingSettings(),
> + () => clearAllCallForwardingSettings());
nit: can be also rewritten as:
return promise.then(null, true)
.then(() => clearAllCallForwardingSettings());
Attachment #8435524 -
Flags: review?(vyang) → review+
Updated•11 years ago
|
Attachment #8424721 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8424722 [details] [review]
platform_external_qemu: PR #85
Thank you for your reivew, Vicamo. Will send review request again once comments on github addressed. :)
Attachment #8424722 -
Flags: review?(vyang)
Assignee | ||
Comment 14•11 years ago
|
||
Try with qemu/reference-ril changes: https://tbpl.mozilla.org/?tree=Try&rev=830e50b8a448
Assignee | ||
Updated•11 years ago
|
Attachment #8424722 -
Flags: review?(vyang)
Assignee | ||
Comment 15•11 years ago
|
||
Address nit in comment #12.
Attachment #8435524 -
Attachment is obsolete: true
Attachment #8437469 -
Flags: review+
Assignee | ||
Comment 16•11 years ago
|
||
Comment on attachment 8424722 [details] [review]
platform_external_qemu: PR #85
Need to address comments on github, cancel the review first.
Attachment #8424722 -
Flags: review?(vyang)
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 8424722 [details] [review]
platform_external_qemu: PR #85
Already updated patches on github, thank you.
Attachment #8424722 -
Flags: review?(vyang)
Comment 18•11 years ago
|
||
Comment on attachment 8424722 [details] [review]
platform_external_qemu: PR #85
Thank you :)
Attachment #8424722 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 19•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #7)
> Landing sequence:
> 1). Gecko part 1
> 2). qemu and hardware/ril
> 3). Gecko part 2
Gecko part1:
https://hg.mozilla.org/integration/b2g-inbound/rev/974b969d02c5
Keywords: leave-open
Comment 20•11 years ago
|
||
Comment 21•11 years ago
|
||
Comment 22•11 years ago
|
||
Assignee | ||
Comment 23•11 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #21)
> https://github.com/mozilla-b2g/platform_external_qemu/commit/
> eb0c93761bb9919567257d19bf25fa433cda3c00
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #22)
> https://github.com/mozilla-b2g/platform_hardware_ril/commit/
> cd88d860656c31c7da7bb310d6a160d0011b0961
http://hg.mozilla.org/integration/b2g-inbound/rev/9ec91eeb5299
Comment 24•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #23)
> http://hg.mozilla.org/integration/b2g-inbound/rev/9ec91eeb5299
http://hg.mozilla.org/mozilla-central/rev/c482c28b35b6
Assignee | ||
Comment 25•11 years ago
|
||
Ah, just found some typo in https://github.com/mozilla-b2g/platform_external_qemu/blob/eb0c93761bb9919567257d19bf25fa433cda3c00/telephony/android_modem.c#L2629-L2635. :(
It should be
if (reason == A_CALL_FORWARDING_REASON_ALL ||
reason == A_CALL_FORWARDING_REASON_ALL_CONDITIONAL) {
....
}
Assignee | ||
Comment 26•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #25)
> Ah, just found some typo in
> https://github.com/mozilla-b2g/platform_external_qemu/blob/
> eb0c93761bb9919567257d19bf25fa433cda3c00/telephony/android_modem.c#L2629-
> L2635. :(
>
> It should be
>
> if (reason == A_CALL_FORWARDING_REASON_ALL ||
> reason == A_CALL_FORWARDING_REASON_ALL_CONDITIONAL) {
> ....
> }
PR for this.
Assignee | ||
Updated•11 years ago
|
Attachment #8441205 -
Flags: review?(vyang)
Comment 27•11 years ago
|
||
Comment on attachment 8441205 [details] [review]
(follow-up) platform_external_qemu: PR #99
https://github.com/mozilla-b2g/platform_external_qemu/commit/3326b51017252e09ccdd715dec6c5e12a7d1ecfe
Attachment #8441205 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 28•11 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #27)
> Comment on attachment 8441205 [details] [review]
> (follow-up) platform_external_qemu: PR #99
>
> https://github.com/mozilla-b2g/platform_external_qemu/commit/
> 3326b51017252e09ccdd715dec6c5e12a7d1ecfe
Thank you, Vicamo. :)
http://hg.mozilla.org/integration/b2g-inbound/rev/b5ec958db6d3
Assignee | ||
Comment 29•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #28)
> http://hg.mozilla.org/integration/b2g-inbound/rev/b5ec958db6d3
http://hg.mozilla.org/mozilla-central/rev/b5ec958db6d3
Assignee | ||
Comment 30•11 years ago
|
||
Try result for part2: https://tbpl.mozilla.org/?tree=Try&rev=5026f7446843
Assignee | ||
Comment 31•11 years ago
|
||
Keywords: leave-open
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
You need to log in
before you can comment on or make changes to this bug.
Description
•