Closed Bug 903257 Opened 11 years ago Closed 11 years ago

B2G RIL: Have a consistent information for signal and registration status

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(3 files, 4 obsolete files)

Attached file radiogonelog (deleted) —
+++ This bug was initially created as a clone of Bug #902380 +++ This is an interesting case we found in bug 902380. Device lost voice service but have data service. In this situation, Gaia may get a strange result for signal and voice state, voice service is not registered but has signal information. 08-07 13:50:53.001 I/Gecko ( 404): -*- RILContentHelper: Received message 'RIL:VoiceInfoChanged': {"clientId":0,"data":{"connected":false,"emergencyCallsOnly":true,"roaming":false,"network":null,"cell":null,"type":null,"signalStrength":-101,"relSignalStrength":36,"state":"searching"}}
Attachment #788047 - Attachment is obsolete: true
Attachment #788785 - Flags: review?(htsai)
Attachment #788786 - Flags: review?(htsai)
Comment on attachment 788785 [details] [diff] [review] Part 1: Have a consistent information for signal and registration status, v2 Review of attachment 788785 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/RadioInterfaceLayer.js @@ +764,5 @@ > /** > + * A utility function to compare objects. The srcInfo may contain > + * 'rilMessageType', should ignore it. > + */ > + infoChanged: function infoChanged(srcInfo, destInfo) { Can we rename it isInfoChanged()? ::: dom/system/gonk/ril_worker.js @@ +1614,1 @@ > }, Do we still need [1]? [1] http://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_worker.js#3328
Attachment #788785 - Flags: review?(htsai)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #4) > Comment on attachment 788785 [details] [diff] [review] > Part 1: Have a consistent information for signal and registration status, v2 > > Review of attachment 788785 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/system/gonk/RadioInterfaceLayer.js > @@ +764,5 @@ > > /** > > + * A utility function to compare objects. The srcInfo may contain > > + * 'rilMessageType', should ignore it. > > + */ > > + infoChanged: function infoChanged(srcInfo, destInfo) { > > Can we rename it isInfoChanged()? Yes, isInfoChanged seems more clear to me. > > ::: dom/system/gonk/ril_worker.js > @@ +1614,1 @@ > > }, > > Do we still need [1]? > [1] is redundant, |getSignalStrength()| was called in |requestNetworkInfo()| already. Thanks for catching this. > [1] > http://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_worker. > js#3328 I will address above comments in next version.
Comment on attachment 788786 [details] [diff] [review] Part 2: Marionette tests for signal when registration status changes, v1 Review of attachment 788786 [details] [diff] [review]: ----------------------------------------------------------------- Thank you.
Attachment #788786 - Flags: review?(htsai) → review+
Address review comment #4.
Attachment #788785 - Attachment is obsolete: true
Attachment #790050 - Flags: review?(htsai)
Comment on attachment 790050 [details] [diff] [review] Part 1: Have a consistent information for signal and registration status, v3 Review of attachment 790050 [details] [diff] [review]: ----------------------------------------------------------------- Perfect!
Attachment #790050 - Flags: review?(htsai) → review+
Comment on attachment 790072 [details] [diff] [review] Part 2: Marionette tests for signal when registration status changes, v1, r=hsinyi Add bug number in title.
Attachment #790072 - Attachment description: bug_903257_part2_marionette_tests_for_signal_when_registration_status_changes_v1_r=hsinyi.patch → Part 2: Marionette tests for signal when registration status changes, v1, r=hsinyi
Attachment #790072 - Flags: review+
Attachment #788786 - Attachment is obsolete: true
Rebase
Attachment #790050 - Attachment is obsolete: true
Attachment #790241 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
blocking-b2g: koi? → ---
Removing koi? since this is in gecko 26 which will be the basis for Firefox OS 1.2.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: