Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10574 from frsela/STK/Bug886286
Browse files Browse the repository at this point in the history
Bug 886286 - [STK] Move non-managed STK commands to system
  • Loading branch information
Fernando Rodríguez Sela committed Jun 25, 2013
2 parents 4dbce25 + 5dd48b5 commit 4563b1e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
15 changes: 0 additions & 15 deletions apps/settings/js/icc.js
Expand Up @@ -206,14 +206,6 @@
iccLastCommandProcessed = true;
break;

case icc.STK_CMD_REFRESH:
iccLastCommandProcessed = true;
responseSTKCommand({
resultCode: icc.STK_RESULT_OK
});
clearNotification();
break;

case icc.STK_CMD_SEND_SMS:
case icc.STK_CMD_SEND_SS:
case icc.STK_CMD_SEND_USSD:
Expand Down Expand Up @@ -836,13 +828,6 @@
tonePlayer.play();
}

/**
* Remove text on the notifications bar and Idle screen
*/
function clearNotification() {
// TO-DO
}

/**
* Auxiliar methods
*/
Expand Down
35 changes: 30 additions & 5 deletions apps/system/js/icc_worker.js
Expand Up @@ -4,14 +4,31 @@
'use strict';

var icc_worker = {
dummy: function icc_worker_dummy() {
DUMP('STK Command not implemented yet');
iccManager.responseSTKCommand({
resultCode: iccManager._icc.STK_RESULT_OK
});
},

// STK_CMD_REFRESH
//'0x01': function STK_CMD_REFRESH(command, iccManager) {},
'0x1': function STK_CMD_REFRESH(command, iccManager) {
// https://bugzilla.mozilla.org/show_bug.cgi?id=800271#c10
DUMP('STK_CMD_REFRESH', command.options);
icc_worker.dummy();
},

// STK_CMD_POLL_INTERVAL
//'0x03': function STK_CMD_POLL_INTERVAL(command, iccManager) {},
'0x3': function STK_CMD_POLL_INTERVAL(command, iccManager) {
DUMP('STK_CMD_POLL_INTERVAL', command.options);
icc_worker.dummy();
},

// STK_CMD_POLL_OFF
//'0x04': function STK_CMD_POLL_OFF(command, iccManager) {},
'0x4': function STK_CMD_POLL_OFF(command, iccManager) {
DUMP('STK_CMD_POLL_OFF', command.options);
icc_worker.dummy();
},

// STK_CMD_SET_UP_EVENT_LIST
//'0x05': function STK_CMD_SET_UP_EVENT_LIST(command, iccManager) {},
Expand Down Expand Up @@ -96,10 +113,18 @@ var icc_worker = {
},

// STK_CMD_PROVIDE_LOCAL_INFO
//'0x26': function STK_CMD_PROVIDE_LOCAL_INFO(command, iccManager) {},
'0x26': function STK_CMD_PROVIDE_LOCAL_INFO(command, iccManager) {
// https://bugzilla.mozilla.org/show_bug.cgi?id=817952
DUMP('STK_CMD_PROVIDE_LOCAL_INFO', command.options);
icc_worker.dummy();
},

// STK_CMD_TIMER_MANAGEMENT
//'0x27': function STK_CMD_TIMER_MANAGEMENT(command, iccManager) {},
'0x27': function STK_CMD_TIMER_MANAGEMENT(command, iccManager) {
// https://bugzilla.mozilla.org/show_bug.cgi?id=817954
DUMP('STK_CMD_TIMER_MANAGEMENT', command.options);
icc_worker.dummy();
},

// STK_CMD_SET_UP_IDLE_MODE_TEXT
'0x28': function STK_CMD_SET_UP_IDLE_MODE_TEXT(command, iccManager) {
Expand Down

0 comments on commit 4563b1e

Please sign in to comment.