Closed Bug 830164 Opened 12 years ago Closed 12 years ago

B2G RIL: use nsIDOMMozMobileICCInfo instead of nsIICCRecords in nsIRilContext

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: vicamo, Assigned: allstars.chh)

References

Details

Attachments

(6 files, 22 obsolete files)

(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
(deleted), patch
Details | Diff | Splinter Review
All that we need for RILContentHelper is actually something implements nsIDOMMozMobileICCInfo.
Depends on: 828330
Attached patch Part 1: IDL Changed. (obsolete) (deleted) — Splinter Review
Assignee: nobody → allstars.chh
Status: NEW → ASSIGNED
Attached patch Part 4: Update GPS (obsolete) (deleted) — Splinter Review
Attachment #703186 - Flags: review?(vyang)
Attachment #703186 - Flags: feedback?(anygregor)
Comment on attachment 703185 [details] [diff] [review] Part 4: Update GPS Hi, Doug This bug is about to change some IDL in nsIRadioInterfaceLayer, so there will be also some changes in GPS, Could you review this for me? thanks
Attachment #703185 - Flags: review?(doug.turner)
Attached patch Part 2: rename icc to iccInfo v2 (obsolete) (deleted) — Splinter Review
Removed empty white spaces and updated SmsDatabaseService
Attachment #703183 - Attachment is obsolete: true
Attachment #703183 - Flags: review?(vyang)
Attachment #703243 - Flags: review?(vyang)
Attachment #703185 - Flags: review?(doug.turner) → review+
Attachment #703186 - Flags: feedback?(anygregor) → feedback+
Attached patch Part 2: rename icc to iccInfo v2 (obsolete) (deleted) — Splinter Review
I found I didn't update the bug comment correctly.
Attachment #703243 - Attachment is obsolete: true
Attachment #703243 - Flags: review?(vyang)
Attachment #703182 - Flags: review?(vyang) → review+
Attachment #703184 - Flags: review?(vyang) → review+
Comment on attachment 703186 [details] [diff] [review] Part 5: update lastKnownMcc. Review of attachment 703186 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/RadioInterfaceLayer.js @@ +1629,5 @@ > + > + if (message.mcc) { > + message['lastKnownMcc'] = message.mcc; > + try { > + Services.prefs.setIntPref("ril.lastKnownMcc", message.mcc); Please set pref only when it changes.
Attachment #703186 - Flags: review?(vyang)
Attachment #703736 - Flags: review?(vyang) → review+
Attachment #703182 - Flags: superreview?(jonas)
Attached patch Part 4: Update GPS (obsolete) (deleted) — Splinter Review
add r=dougt
Attachment #703185 - Attachment is obsolete: true
Attached patch Part 5: update lastKnownMcc. v2 (obsolete) (deleted) — Splinter Review
Attachment #703186 - Attachment is obsolete: true
Attachment #703784 - Flags: review?(vyang) → review+
As I've discussed with Gregor, lastKnownMcc should be in nsIDOMMozMobileNetworkInfo, instead of nsIDOMMozMobileICCInfo. So I will remove the lastKnownMcc code in Part 5.
Attached patch Part 1: IDL Changed. (obsolete) (deleted) — Splinter Review
rebase
Attachment #703182 - Attachment is obsolete: true
Attachment #703182 - Flags: superreview?(jonas)
Attached patch Part 2: rename icc to iccInfo v3 (obsolete) (deleted) — Splinter Review
rebase and remove lastKnownMcc
Attachment #703736 - Attachment is obsolete: true
Attached patch Part 5: remove lastKnownMcc. v3 (obsolete) (deleted) — Splinter Review
Hi, Vicamo I r? again for lastKnownMcc should be in network info instead of icc info, I'll file another bug for that. So in this patch I remove related code to lastKnownMcc.
Attachment #703784 - Attachment is obsolete: true
Attachment #705265 - Flags: review?(vyang)
Attachment #705265 - Flags: review?(vyang) → review+
Try run for 427081dd9a96 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=427081dd9a96 Results (out of 326 total builds): success: 308 warnings: 15 failure: 3 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-427081dd9a96
Bug 833908 requests the same thing and claims to block bug 808607.
blocking-b2g: --- → tef?
Vicamo, yes this bug fixes the issue reported in bug 833908 but we have a concern that this bug has a lot more impact so close to v1 release. Wondering if you could reconsider fixing bug 833908.
(In reply to Anshul from comment #19) > Vicamo, yes this bug fixes the issue reported in bug 833908 but > we have a concern that this bug has a lot more impact so close > to v1 release. Wondering if you could reconsider fixing > bug 833908. No problem.
blocking-b2g: tef? → ---
I'll wait for Bug 833908 is landed then rebase and commit.
Depends on: 833908
Comment on attachment 705265 [details] [diff] [review] Part 5: remove lastKnownMcc. v3 I move this patch to Bug 833711.
Attachment #705265 - Attachment is obsolete: true
Attached patch Part 2: rename icc to iccInfo v4 (obsolete) (deleted) — Splinter Review
Add RILContentHelper changes.
Attachment #705264 - Attachment is obsolete: true
Attached patch Part 1: IDL Changed. v2 (obsolete) (deleted) — Splinter Review
rebase
Attachment #705263 - Attachment is obsolete: true
Attached patch Part 5: remove SST from iccInfo. (obsolete) (deleted) — Splinter Review
Attachment #706231 - Flags: review?(vyang)
Try run for 1c51d756b861 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=1c51d756b861 Results (out of 241 total builds): exception: 48 success: 44 failure: 149 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-1c51d756b861
Attachment #706231 - Flags: review?(vyang) → review+
I interrupted try server, so I got so many failures in comment 26. The latest result is from https://tbpl.mozilla.org/?tree=Try&rev=85e0b813e27a, However there's still one xpcshell failure, will address that in Part 6 Patch.
Attached patch Part 6: update xpcshell tests for SST. r=vicamo (obsolete) (deleted) — Splinter Review
To fix xpcshell tests.
Attachment #706931 - Flags: review?(vyang)
Attachment #706931 - Flags: review?(vyang) → review+
Try run for 1a36de801182 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=1a36de801182 Results (out of 331 total builds): success: 313 warnings: 16 failure: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-1a36de801182
Attached patch Part 1: IDL Changed. v3 (obsolete) (deleted) — Splinter Review
rebase
Attachment #706197 - Attachment is obsolete: true
Attached patch Part 2: rename icc to iccInfo v5 (obsolete) (deleted) — Splinter Review
rebase
Attachment #705795 - Attachment is obsolete: true
Attachment #706962 - Attachment description: rename icc to iccInfo v5 → Part 2: rename icc to iccInfo v5
Attached patch Part 3: update read IMSI. v2 (obsolete) (deleted) — Splinter Review
rebase
Attachment #703184 - Attachment is obsolete: true
Attached patch Part 4: Update GPS v2 (obsolete) (deleted) — Splinter Review
rebase
Attachment #703781 - Attachment is obsolete: true
Attached patch Part 5: remove SST from iccInfo. v2 (obsolete) (deleted) — Splinter Review
rebase
Attachment #706231 - Attachment is obsolete: true
Attached patch Part 6: update xpcshell tests for SST. v2 (obsolete) (deleted) — Splinter Review
rebase
Attachment #706931 - Attachment is obsolete: true
Try run for 86f0f1e49c8a is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=86f0f1e49c8a Results (out of 328 total builds): success: 313 warnings: 14 failure: 1 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-86f0f1e49c8a
Sorry for that. In the try run, I saw the follow message "Bug 825722 - Intermittent end-of-year timebomb in test_incoming.js: TEST-UNEXPECTED-FAIL | false was false, expected true | got false, expected true Bug 760199 - test_incoming.js: TEST-UNEXPECTED-FAIL | got false, expected true 00:11:17 ERROR .... Bug 832662 - Intermittent test_outgoing_delete.js | TimeoutException: socket.timeout Only displaying first 20 of 100+ failures - View log." I saw Bug ID on it, and I though that's caused by other bugs. I'll test again.
Try run for e156384cb584 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=e156384cb584 Results (out of 2 total builds): success: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-e156384cb584
Try run for f49ceb92685c is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=f49ceb92685c Results (out of 2 total builds): success: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-f49ceb92685c
Try run for dc272059c514 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=dc272059c514 Results (out of 2 total builds): success: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-dc272059c514
Try run for 2f365d15e8c8 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=2f365d15e8c8 Results (out of 2 total builds): success: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-2f365d15e8c8
Try run for a405cd93c384 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=a405cd93c384 Results (out of 333 total builds): exception: 1 success: 322 warnings: 8 failure: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/yhuang@mozilla.com-a405cd93c384
Comment on attachment 706962 [details] [diff] [review] Part 2: rename icc to iccInfo v5 Review of attachment 706962 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/sms/src/ril/SmsDatabaseService.js @@ +771,5 @@ > if (sender === undefined || sender === "undefined") { > sender = null; > } > > let receiver = aReceiver; In this line below I didn't rename icc to iccInfo. Will address that in next patch. ::: dom/system/gonk/RadioInterfaceLayer.js @@ +214,5 @@ > > this.rilContext = { > radioState: RIL.GECKO_RADIOSTATE_UNAVAILABLE, > cardState: RIL.GECKO_CARDSTATE_UNAVAILABLE, > + imsi: null, I'll move imsi to part 3.
Comment on attachment 706964 [details] [diff] [review] Part 4: Update GPS v2 Review of attachment 706964 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/GonkGPSGeolocationProvider.cpp @@ +418,5 @@ > + rilCtx->GetImsi(id); > + } > + > + if (flags & AGPS_RIL_REQUEST_SETID_MSISDN) { > + nsCOMPtr<nsIDOMMozMobileICCInfo> icc; To make naming consistent, I'll rename this to iccInfo as well.
Attached patch Part 1: IDL Changed. v4 (deleted) — Splinter Review
rebase
Attachment #706961 - Attachment is obsolete: true
update SmsDatabaseService, and move imsi in RadioInterfaceLayer.js to part 3.
Attachment #706962 - Attachment is obsolete: true
Attached patch Part 3: update read IMSI. v3 (deleted) — Splinter Review
rebase
Attachment #706963 - Attachment is obsolete: true
Attached patch Part 4: Update GPS v3 (deleted) — Splinter Review
rename icc to iccInfo
Attachment #706964 - Attachment is obsolete: true
rebase
Attachment #706965 - Attachment is obsolete: true
rebase
Attachment #706967 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: