Bug 908075 - Part1: "USER_ACTIVITY" event implement in RIL. r=yoshi
authorGeorgia Wang <gwang@mozilla.com>
Wed, 04 Sep 2013 18:45:35 +0800
changeset 147269 288b2a3c063bf25f5ab66e85f4892fcb20e6b7a1
parent 147268 72c352e6ee3888de1bc3355be41f8afd993b4bcd
child 147270 9cf2be195a9a83a2179c4071c21f6443a7b602b7
push id1010
push useryhuang@mozilla.com
push dateSun, 15 Sep 2013 14:15:22 +0000
treeherderb2g-inbound@9cf2be195a9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi
bugs908075
milestone26.0a1
Bug 908075 - Part1: "USER_ACTIVITY" event implement in RIL. r=yoshi
dom/system/gonk/ril_consts.js
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_consts.js
+++ b/dom/system/gonk/ril_consts.js
@@ -1005,17 +1005,17 @@ this.STK_TERMINAL_SUPPORT_PROACTIVE_SET_
 this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO         = 1;
 this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_NMR     = 0;
 
 this.STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_EVENT_LIST  = 1;
 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;
 
 this.STK_TERMINAL_SUPPORT_EVENT_LANGUAGE_SELECTION     = 1;
 this.STK_TERMINAL_SUPPORT_EVENT_BROWSER_TERMINATION    = 0;
 this.STK_TERMINAL_SUPPORT_EVENT_DATA_AVAILABLE         = 0;
 this.STK_TERMINAL_SUPPORT_EVENT_CHANNEL_STATUS         = 0;
 
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -2719,16 +2719,22 @@ let RIL = {
       case STK_EVENT_TYPE_CALL_CONNECTED:
         command.deviceId = {
           sourceId: (command.event.isIssuedByRemote ?
                      STK_DEVICE_ID_NETWORK : STK_DEVICE_ID_ME),
           destinationId: STK_DEVICE_ID_SIM
         };
         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,
           destinationId: STK_DEVICE_ID_SIM
         };
         break;
       case STK_EVENT_TYPE_LANGUAGE_SELECTION:
         command.deviceId = {