Closed
Bug 1140259
Opened 10 years ago
Closed 10 years ago
[B2G][RIL] Handle new error codes introduced in RIL version 10
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(tracking-b2g:backlog, firefox39 fixed)
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
Details
Attachments
(2 files, 3 obsolete files)
5.70 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
40.44 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a follow-up of Bug #1113054 +++
There are some new error codes introduced in version 10 [1], we should map them into proper error string.
[1] https://github.com/android/platform_hardware_ril/blob/lollipop-release/include/telephony/ril.h#L78-L103
Assignee | ||
Comment 1•10 years ago
|
||
ril_consts contains some error codes which are not lived in standard AOSP ril.h [1]. I guess they are partner's specific errors.
[1] https://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_consts.js?from=ril_consts.js&case=true#232-243
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → echen
Updated•10 years ago
|
blocking-b2g: --- → backlog
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8575190 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8576471 -
Attachment is obsolete: true
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8575188 [details] [diff] [review]
Part 1: RIL error for version 10, v1
Review of attachment 8575188 [details] [diff] [review]:
-----------------------------------------------------------------
In this part, I add new error code introduced in ril v10 (note that error code 16 was already added in bug 1139063).
And also remove the partner's specific error code given that we didn't use them actually and they are conflicted with standard error code.
Hi Hinsyi, may I have your review? Thank you.
Attachment #8575188 -
Flags: review?(htsai)
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8576478 [details] [diff] [review]
Part 2: [RIL] Handle options.errorMsg in processParcel() and map unknown error code to "UnspecifiedError", v3
Review of attachment 8576478 [details] [diff] [review]:
-----------------------------------------------------------------
Changes in this part:
1. Handle errorMsg in proccessParcel().
2. Map unknown error code to "UnspecifiedError".
Attachment #8576478 -
Flags: review?(htsai)
Updated•10 years ago
|
Attachment #8575188 -
Flags: review?(htsai) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8576478 [details] [diff] [review]
Part 2: [RIL] Handle options.errorMsg in processParcel() and map unknown error code to "UnspecifiedError", v3
Review of attachment 8576478 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with comments addressed, thank you!
::: dom/system/gonk/ril_worker.js
@@ +5718,1 @@
> if ((!options.success || this.IMEI == null) && !options.errorMsg) {
The condition is dazzling. We could simplify it as |if (this.IMEI == null && options.success)|.
Since we are here, please modify it, too.
@@ +5834,5 @@
>
> this._updateNetworkSelectionMode(selectionMode);
> };
> RilObject.prototype[REQUEST_SET_NETWORK_SELECTION_AUTOMATIC] = function REQUEST_SET_NETWORK_SELECTION_AUTOMATIC(length, options) {
> + if (!options.errorMsg) {
In most cases, we still use "options.rilRequestError." Can we keep using that term?
Alternatively, I will also be okay if we replace all existing "options.rilRequestError" with "options.errorMsg." Just want to have consistency.
@@ +5841,4 @@
> this.sendChromeMessage(options);
> };
> RilObject.prototype[REQUEST_SET_NETWORK_SELECTION_MANUAL] = function REQUEST_SET_NETWORK_SELECTION_MANUAL(length, options) {
> + if (!options.errorMsg) {
ditto.
@@ +5847,4 @@
> this.sendChromeMessage(options);
> };
> RilObject.prototype[REQUEST_QUERY_AVAILABLE_NETWORKS] = function REQUEST_QUERY_AVAILABLE_NETWORKS(length, options) {
> + if (!options.errorMsg) {
ditto.
Attachment #8576478 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #8)
> Comment on attachment 8576478 [details] [diff] [review]
> Part 2: [RIL] Handle options.errorMsg in processParcel() and map unknown
> error code to "UnspecifiedError", v3
>
> Review of attachment 8576478 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with comments addressed, thank you!
>
> ::: dom/system/gonk/ril_worker.js
> @@ +5718,1 @@
> > if ((!options.success || this.IMEI == null) && !options.errorMsg) {
>
> The condition is dazzling. We could simplify it as |if (this.IMEI == null &&
> options.success)|.
> Since we are here, please modify it, too.
Okay, will do in next version.
>
> @@ +5834,5 @@
> >
> > this._updateNetworkSelectionMode(selectionMode);
> > };
> > RilObject.prototype[REQUEST_SET_NETWORK_SELECTION_AUTOMATIC] = function REQUEST_SET_NETWORK_SELECTION_AUTOMATIC(length, options) {
> > + if (!options.errorMsg) {
>
> In most cases, we still use "options.rilRequestError." Can we keep using
> that term?
> Alternatively, I will also be okay if we replace all existing
> "options.rilRequestError" with "options.errorMsg." Just want to have
> consistency.
Agree with you, I will use |rilRequestError| in this bug to have consistency.
In fact, I already have a patch to deprecate all rilRequestError usage in bug 991582. Let's replace |rilRequestError| with |errorMsg| there.
Thank you.
Assignee | ||
Comment 10•10 years ago
|
||
Address review comment #8.
- if (this.IMEI == null && options.success)
- Using |rilRequestError| to have consistency.
Attachment #8576478 -
Attachment is obsolete: true
Attachment #8577072 -
Flags: review+
Assignee | ||
Comment 11•10 years ago
|
||
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5cf436417378
https://hg.mozilla.org/mozilla-central/rev/5825affccf38
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S8 (20mar)
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•