Closed Bug 1162464 Opened 9 years ago Closed 9 years ago

[B2G][ICC] Move LogicalChannel access from IccProvider to IccService.

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog, firefox41 fixed)

RESOLVED FIXED
2.2 S12 (15may)
tracking-b2g backlog
Tracking Status
firefox41 --- fixed

People

(Reporter: bevis, Assigned: bevis)

References

Details

Attachments

(3 files, 1 obsolete file)

To completely deprecate IccProvider, we also have to move the APIs of logical channel from IccProvider to IccService.

I planned to fix this in bug 1114938.
Since logical channel access is not part of STK feature,
it will be more clear to separate this task from bug 1114938.
This is the idl part to move the ICC Logical Channel API from IccProvider to IccService.

Hi Edgar,

May I have your review for this change?

Thanks!
Attachment #8603149 - Flags: review?(echen)
Attached patch Part 2: Implementation Changes. (obsolete) — Splinter Review
Implementation part.
Attachment #8603150 - Flags: review?(echen)
Attachment #8603149 - Attachment description: Part 1: IDL Changes. r=echen → Part 1: IDL Changes.
Hi Yoshi,

May I have your review in UiccConnector due to the API changes in this bug?

Thanks!
Attachment #8603151 - Flags: review?(allstars.chh)
[Tracking Requested - why for this release]:
Attachment #8603151 - Flags: review?(allstars.chh) → review+
Attachment #8603149 - Flags: review?(echen) → review+
Comment on attachment 8603150 [details] [diff] [review]
Part 2: Implementation Changes.

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

Thank you.

::: dom/icc/gonk/IccService.js
@@ +487,5 @@
> +  iccOpenChannel: function(aAid, aCallback) {
> +    this._radioInterface.sendWorkerMessage("iccOpenChannel",
> +                                           { aid: aAid },
> +                                           (aResponse) => {
> +      if (!aCallback) {

Other function doesn't have such check. Just curious, is there any special reason to have |aCallback| check for logicalChannel API?

@@ +491,5 @@
> +      if (!aCallback) {
> +        return;
> +      }
> +
> +      return !aResponse.errorMsg

Don't need 'return'.

@@ +518,5 @@
> +      if (!aCallback) {
> +        return;
> +      }
> +
> +      return !aResponse.errorMsg

Ditto.

@@ +534,5 @@
> +      if (!aCallback) {
> +        return;
> +      }
> +
> +      return !aResponse.errorMsg

Ditto.
Attachment #8603150 - Flags: review?(echen) → review+
Comment on attachment 8603150 [details] [diff] [review]
Part 2: Implementation Changes.

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

::: dom/icc/gonk/IccService.js
@@ +487,5 @@
> +  iccOpenChannel: function(aAid, aCallback) {
> +    this._radioInterface.sendWorkerMessage("iccOpenChannel",
> +                                           { aid: aAid },
> +                                           (aResponse) => {
> +      if (!aCallback) {

No, I also have the same question on this.
I just keep the same logic done in RILContentHelper.
I should revise more aggressively instead.

I'll address this in next update. :)

@@ +491,5 @@
> +      if (!aCallback) {
> +        return;
> +      }
> +
> +      return !aResponse.errorMsg

Ditto.

@@ +518,5 @@
> +      if (!aCallback) {
> +        return;
> +      }
> +
> +      return !aResponse.errorMsg

Ditto.
Target Milestone: --- → 2.2 S12 (15may)
address comment 5.
Attachment #8603150 - Attachment is obsolete: true
Attachment #8605642 - Flags: review+
Attachment #8603149 - Attachment description: Part 1: IDL Changes. → Part 1: IDL Changes. r=echen
Attachment #8603151 - Attachment description: Part 3: Refactor UiccConnector due to interface change. → Part 3: Refactor UiccConnector due to interface change. r=allstars.chh
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: