Closed Bug 1031239 Opened 10 years ago Closed 10 years ago

Automatically select sim card for emergency call

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S5 (4july)

People

(Reporter: aknow, Assigned: aknow)

References

Details

Attachments

(2 files, 3 obsolete files)

      No description provided.
Attached patch Part 1: Refactoring (obsolete) — Splinter Review
Attachment #8447080 - Flags: review?(htsai)
Attachment #8447081 - Flags: review?(htsai)
Comment on attachment 8447080 [details] [diff] [review]
Part 1: Refactoring

Review of attachment 8447080 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/telephony/gonk/TelephonyService.js
@@ +417,5 @@
>        aTelephonyCallback.notifyDialError(DIAL_ERROR_OTHER_CONNECTION_IN_USE);
>        return;
>      }
>  
> +    // We can only have at most two line on the same client.

nit: s/line/lines/
Attachment #8447080 - Flags: review?(htsai) → review+
Comment on attachment 8447081 [details] [diff] [review]
Part 2: select clientId for emergency call

Review of attachment 8447081 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/telephony/gonk/TelephonyService.js
@@ +370,5 @@
>      }
>      aListener.enumerateCallStateComplete();
>    },
>  
> +  // Automatically select a proper clinetId.

nit: s/clinetId/clientId

@@ +372,5 @@
>    },
>  
> +  // Automatically select a proper clinetId.
> +  // return -1 means none of the clients are available.
> +  _getClientForEmergencyCall: function() {

Expose to nsIRadioInterfaceLayer.idl as we discussed, thank you.

@@ +423,5 @@
>        aTelephonyCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
>        return;
>      }
>  
> +    // Select a proper cliendId for dialEmergency.

nit:s/cliendId/clientId/
Attachment #8447081 - Flags: review?(htsai)
Attachment #8447081 - Attachment is obsolete: true
Attachment #8447910 - Flags: review?(htsai)
Comment on attachment 8447910 [details] [diff] [review]
Part 2#2: select clientId for emergency call

Review of attachment 8447910 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good! Thank you~
Attachment #8447910 - Flags: review?(htsai) → review+
Attachment #8447080 - Attachment is obsolete: true
Attachment #8449320 - Flags: review+
https://hg.mozilla.org/integration/b2g-inbound/rev/1436162e1394
https://hg.mozilla.org/integration/b2g-inbound/rev/b3fc7fedfb65

In the future, please try to be more conscientious about what platforms and tests you run on your Try pushes (i.e. not running desktop/Android builds & tests on a B2G-only change). It saves a lot of resources and reduces the backlog felt by all developers when using Try. The link below gives some recommended practices if you need more assistance.
https://wiki.mozilla.org/Sheriffing/How:To:Recommended_Try_Practices
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1436162e1394
https://hg.mozilla.org/mozilla-central/rev/b3fc7fedfb65
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S5 (4july)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: