Closed Bug 1124550 Opened 11 years ago Closed 11 years ago

[Telephony] Refactoring logics between TelephonyService and ril_worker

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S5 (6feb)

People

(Reporter: aknow, Assigned: aknow)

References

Details

Attachments

(12 files, 1 obsolete file)

1.13 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
1.52 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
2.76 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
1.54 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
1.73 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
4.27 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
3.07 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
9.01 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
4.80 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
18.38 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
6.41 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
4.06 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
My idea is to make ril_worker simple and move most of telephony-specific logics and cdma handling to TelephonyService.
Attached patch Part 01: Remove unused code (obsolete) — Splinter Review
Attachment #8552882 - Flags: review?(htsai)
Attachment #8552887 - Flags: review?(htsai)
Attachment #8552892 - Flags: review?(htsai)
Comment on attachment 8552882 [details] [diff] [review] Part 01: Remove unused code Review of attachment 8552882 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +2752,3 @@ > */ > sendUSSD: function(options) { > + if (!this._ussdSession) { We need to stay with the original logic. checkSession is used to indicate if ril_worker.sendUSSD is triggered by telephony.dial or ussdSession.send. ::: dom/telephony/gonk/TelephonyService.js @@ +958,5 @@ > this._defaultCallbackHandler.bind(this, aCallback)); > }, > > sendUSSD: function(aClientId, aUssd, aCallback) { > + this._sendToRilWorker(aClientId, "sendUSSD", { ussd: aUssd }, ditto: checkSession is necessary.
Attachment #8552882 - Flags: review?(htsai)
Attachment #8552883 - Flags: review?(htsai) → review+
Attachment #8552884 - Flags: review?(htsai) → review+
Attachment #8552885 - Flags: review?(htsai) → review+
Comment on attachment 8552886 [details] [diff] [review] Part 05: Refactoring sendUSSD, cancelUSSD Review of attachment 8552886 [details] [diff] [review]: ----------------------------------------------------------------- Looks good but please remember to rebase on the revision of part01.
Attachment #8552886 - Flags: review?(htsai) → review+
Attachment #8552887 - Flags: review?(htsai) → review+
Attachment #8552888 - Flags: review?(htsai) → review+
Attachment #8552889 - Flags: review?(htsai) → review+
Comment on attachment 8552890 [details] [diff] [review] Part 09: Refactoring conferenceCall, separateCall Review of attachment 8552890 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed, thank you. ::: dom/telephony/gonk/TelephonyService.js @@ +888,5 @@ > + _conferenceCallGsm: function(aClientId, aCallback) { > + this._sendToRilWorker(aClientId, "conferenceCall", null, response => { > + if (!response.success) { > + aCallback.notifyError(RIL.GECKO_ERROR_GENERIC_FAILURE); > + // TODO: Deprecate it. Use callback response is enough. Thanks for the comment. I just filed bug 1124993. Could you please note the bug number in the comment? @@ +907,5 @@ > return; > } > } > > + this._sendToRilWorker(aClientId, "cdmaFalsh", null, response => { s/cdmaFalsh/cdmaFlash/ @@ +912,3 @@ > if (!response.success) { > aCallback.notifyError(RIL.GECKO_ERROR_GENERIC_FAILURE); > + // TODO: Deprecate it. Use callback response is enough. ditto. @@ +946,5 @@ > this._sendToRilWorker(aClientId, "separateCall", { callIndex: aCallIndex }, > response => { > if (!response.success) { > aCallback.notifyError(RIL.GECKO_ERROR_GENERIC_FAILURE); > + // TODO: Deprecate it. Use callback response is enough. ditto. @@ +963,5 @@ > + _separateCallCdma: function(aClientId, aCallIndex, aCallback) { > + this._sendToRilWorker(aClientId, "cdmaFlash", null, response => { > + if (!response.success) { > + aCallback.notifyError(RIL.GECKO_ERROR_GENERIC_FAILURE); > + // TODO: Deprecate it. Use callback response is enough. ditto.
Attachment #8552890 - Flags: review?(htsai) → review+
Attachment #8552891 - Flags: review?(htsai) → review+
Attachment #8552892 - Flags: review?(htsai) → review+
Attachment #8552893 - Flags: review?(htsai) → review+
Attachment #8552882 - Attachment is obsolete: true
Attachment #8555658 - Flags: review?(htsai)
Attachment #8555658 - Flags: review?(htsai) → review+
Target Milestone: --- → 2.2 S5 (6feb)
This bug doesn't be included in 2.2 actually.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: