Bug 804680 - Part 1: Support MORE_TIME in RIL. r=allstars.chh

This commit is contained in:
Edgar Chen 2012-11-19 16:44:33 +08:00
parent 57c48cf12d
commit d7974b1cff
2 changed files with 20 additions and 1 deletions

View File

@ -573,6 +573,7 @@ this.STK_DEVICE_ID_NETWORK = 0x83;
// STK Proactive commands.
this.STK_CMD_REFRESH = 0x01;
this.STK_CMD_MORE_TIME = 0x02;
this.STK_CMD_POLL_INTERVAL = 0x03;
this.STK_CMD_POLL_OFF = 0x04;
this.STK_CMD_SET_UP_EVENT_LIST = 0x05;
@ -800,7 +801,7 @@ this.STK_TERMINAL_SUPPORT_EXTENSION_TEXT = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_DISPLAY_TEXT = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_GET_INKEY = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_GET_INPUT = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_MORE_TIME = 0;
this.STK_TERMINAL_SUPPORT_PROACTIVE_MORE_TIME = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_PLAY_TONE = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_POLL_INTERVAL = 1;
this.STK_TERMINAL_SUPPORT_PROACTIVE_POLL_OFF = 1;

View File

@ -6618,6 +6618,9 @@ let StkCommandParamsFactory = {
case STK_CMD_REFRESH:
param = this.processRefresh(cmdDetails, ctlvs);
break;
case STK_CMD_MORE_TIME:
param = this.processMoreTime(cmdDetails, ctlvs);
break;
case STK_CMD_POLL_INTERVAL:
param = this.processPollInterval(cmdDetails, ctlvs);
break;
@ -6692,6 +6695,21 @@ let StkCommandParamsFactory = {
return {};
},
/**
* Construct a param for MORE TIME.
*
* @param cmdDetails
* The value object of CommandDetails TLV.
* @param ctlvs
* The all TLVs in this proactive command.
*/
processMoreTime: function processMoreTime(cmdDetails, ctlvs) {
RIL.sendStkTerminalResponse({
command: cmdDetails,
resultCode: STK_RESULT_OK});
return null;
},
/**
* Construct a param for Poll Interval.
*