Bug 908075 - Part1: "USER_ACTIVITY" event implement in RIL. r=yoshi

This commit is contained in:
Georgia Wang 2013-09-04 18:45:35 +08:00
parent 5e362298bb
commit 2689da2ec1
2 changed files with 7 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ this.STK_TERMINAL_SUPPORT_EVENT_MT_CALL = 1;
this.STK_TERMINAL_SUPPORT_EVENT_CALL_CONNECTED = 1;
this.STK_TERMINAL_SUPPORT_EVENT_CALL_DISCONNECTED = 1;
this.STK_TERMINAL_SUPPORT_EVENT_LOCATION_STATUS = 1;
this.STK_TERMINAL_SUPPORT_EVENT_USER_ACTIVITY = 0;
this.STK_TERMINAL_SUPPORT_EVENT_USER_ACTIVITY = 1;
this.STK_TERMINAL_SUPPORT_EVENT_IDLE_SCREEN_AVAILABLE = 1;
this.STK_TERMINAL_SUPPORT_EVENT_CARD_READER_STATUS = 0;

View File

@ -2724,6 +2724,12 @@ let RIL = {
};
command.transactionId = 0;
break;
case STK_EVENT_TYPE_USER_ACTIVITY:
command.deviceId = {
sourceId: STK_DEVICE_ID_ME,
destinationId: STK_DEVICE_ID_SIM
};
break;
case STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE:
command.deviceId = {
sourceId: STK_DEVICE_ID_DISPLAY,