Closed
Bug 928773
Opened 11 years ago
Closed 7 years ago
B2G STK: Move STK code out of ril_worker.js
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:-)
RESOLVED
WONTFIX
blocking-b2g | - |
People
(Reporter: allstars.chh, Unassigned)
References
Details
Attachments
(3 files, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
We should move STK code in ril_worker to another file, called ril_stk.js... etc.
Updated•11 years ago
|
Assignee: nobody → gwang
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Attachment #825786 -
Attachment is obsolete: true
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 825808 [details] [diff] [review]
Part1: Move stk code to ril_worker_stk.js
Review of attachment 825808 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker_stk.js
@@ +23,5 @@
> + stkHandleCallSetup: function stkHandleCallSetup(options) {
> + Buf.newParcel(REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM);
> + Buf.writeInt32(1);
> + Buf.writeInt32(options.hasConfirmed ? 1 : 0);
> + Buf.sendParcel();
In this file, Buf, GsmPDUHelper, and RIL are actually from the worker.
You might also think the dependency here.
Comment 6•11 years ago
|
||
The push include Bug 921322, Bug 908535 and Bug 908536.
Try result: https://tbpl.mozilla.org/?tree=Try&rev=8253908770b9
Comment 7•11 years ago
|
||
(In reply to Yoshi Huang[:allstars.chh][:yoshi] from comment #5)
> Comment on attachment 825808 [details] [diff] [review]
> Part1: Move stk code to ril_worker_stk.js
>
> Review of attachment 825808 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/system/gonk/ril_worker_stk.js
> @@ +23,5 @@
> > + stkHandleCallSetup: function stkHandleCallSetup(options) {
> > + Buf.newParcel(REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM);
> > + Buf.writeInt32(1);
> > + Buf.writeInt32(options.hasConfirmed ? 1 : 0);
> > + Buf.sendParcel();
>
> In this file, Buf, GsmPDUHelper, and RIL are actually from the worker.
>
> You might also think the dependency here.
The modify is base on Bug 811754's attachment.
I'm trying to make ril_worker.js more clear, just leave:
Four function handler in RIL.
(In order to handle RIL function call from RadioInterfaceLayer)
>
sendStkTerminalResponse: function sendStkTerminalResponse(response) {
STK.sendStkTerminalResponse(response);
},
sendStkMenuSelection: function sendStkMenuSelection(command) {
STK.sendStkMenuSelection(command);
},
sendStkTimerExpiration: function sendStkTimerExpiration(command) {
STK.sendStkTimerExpiration(command);
},
sendStkEventDownload: function sendStkEventDownload(command) {
STK.sendStkEventDownload(command);
},
Four ril request and unsolicited command redirection.
RIL[REQUEST_STK_SEND_ENVELOPE_WITH_STATUS] = STK[REQUEST_STK_SEND_ENVELOPE_WITH_STATUS].bind(STK);
RIL[UNSOLICITED_STK_SESSION_END] = STK[UNSOLICITED_STK_SESSION_END].bind(STK);
RIL[UNSOLICITED_STK_PROACTIVE_COMMAND] = STK[UNSOLICITED_STK_PROACTIVE_COMMAND].bind(STK);
RIL[UNSOLICITED_STK_EVENT_NOTIFY] = STK[UNSOLICITED_STK_EVENT_NOTIFY].bind(STK);
Other stk related function are moved into STK.
Buf, GsmPDUHelper and few RIL function are also used in "StkProactiveCmdHelper and StkCommandParamsFactory"
So I think they are more like utilities function, should be reasonable to separate them.
Updated•11 years ago
|
Assignee: gwang → nobody
Updated•10 years ago
|
blocking-b2g: backlog → -
Reporter | ||
Updated•7 years ago
|
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
•