aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/android/internal/telephony/cat/CatService.java
diff options
context:
space:
mode:
authorPreeti Ahuja <preetia@codeaurora.org>2014-11-20 13:23:39 -0800
committerAmit Mahajan <amitmahajan@google.com>2014-11-22 00:08:52 +0000
commitcc0146c9f6800f82d0fbf2931775a8a1fd83681b (patch)
treea23bd08ca7a6735ab094bcdc0462f66285bcd159 /src/java/com/android/internal/telephony/cat/CatService.java
parentff62e12cd5a0f0feaaf965044be9231bf7aa82d9 (diff)
downloadtelephony-cc0146c9f6800f82d0fbf2931775a8a1fd83681b.tar.gz
STK: Remove dependency on idle screen notification
1. Remove support for Idle Screen available set up event list and event download. 2. Remove dependency of Set Up Idle Mode Text from idle screen notification. 3. Remove dependency of Display Text command from idle screen notification. Bug: 17553408 Change-Id: I9d15ae89cb0412032355a813f6c47b0e394504d3
Diffstat (limited to 'src/java/com/android/internal/telephony/cat/CatService.java')
-rw-r--r--src/java/com/android/internal/telephony/cat/CatService.java29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/java/com/android/internal/telephony/cat/CatService.java b/src/java/com/android/internal/telephony/cat/CatService.java
index 176d072c9f..bee6c58691 100644
--- a/src/java/com/android/internal/telephony/cat/CatService.java
+++ b/src/java/com/android/internal/telephony/cat/CatService.java
@@ -46,8 +46,6 @@ import java.util.List;
import java.util.Locale;
import static com.android.internal.telephony.cat.CatCmdMessage.
- SetupEventListConstants.IDLE_SCREEN_AVAILABLE_EVENT;
-import static com.android.internal.telephony.cat.CatCmdMessage.
SetupEventListConstants.LANGUAGE_SELECTION_EVENT;
class RilMessage {
@@ -341,10 +339,7 @@ public class CatService extends Handler implements AppInterface {
CatLog.d(this,"Event: " + eventVal);
switch (eventVal) {
/* Currently android is supporting only the below events in SetupEventList
- * Browser Termination,
- * Idle Screen Available and
* Language Selection. */
- case IDLE_SCREEN_AVAILABLE_EVENT:
case LANGUAGE_SELECTION_EVENT:
break;
default:
@@ -716,16 +711,11 @@ public class CatService extends Handler implements AppInterface {
/*
* Currently the below events are supported:
- * Browser Termination,
- * Idle Screen Available and
* Language Selection Event.
* Other event download commands should be encoded similar way
*/
/* TODO: eventDownload should be extended for other Envelope Commands */
switch (event) {
- case IDLE_SCREEN_AVAILABLE_EVENT:
- CatLog.d(sInstance, " Sending Idle Screen Available event download to ICC");
- break;
case LANGUAGE_SELECTION_EVENT:
CatLog.d(sInstance, " Sending Language Selection event download to ICC");
tag = 0x80 | ComprehensionTlvTag.LANGUAGE.value();
@@ -983,14 +973,8 @@ public class CatService extends Handler implements AppInterface {
}
break;
case DISPLAY_TEXT:
- if (resMsg.mResCode == ResultCode.TERMINAL_CRNTLY_UNABLE_TO_PROCESS) {
- // For screenbusy case there will be addtional information in the terminal
- // response. And the value of the additional information byte is 0x01.
- resMsg.setAdditionalInfo(0x01);
- } else {
- resMsg.mIncludeAdditionalInfo = false;
- resMsg.mAdditionalInfo = 0;
- }
+ resMsg.mIncludeAdditionalInfo = false;
+ resMsg.mAdditionalInfo = 0;
break;
case LAUNCH_BROWSER:
break;
@@ -1004,13 +988,8 @@ public class CatService extends Handler implements AppInterface {
mCurrntCmd = null;
return;
case SET_UP_EVENT_LIST:
- if (IDLE_SCREEN_AVAILABLE_EVENT == resMsg.mEventValue) {
- eventDownload(resMsg.mEventValue, DEV_ID_DISPLAY, DEV_ID_UICC,
- resMsg.mAddedInfo, false);
- } else {
- eventDownload(resMsg.mEventValue, DEV_ID_TERMINAL, DEV_ID_UICC,
- resMsg.mAddedInfo, false);
- }
+ eventDownload(resMsg.mEventValue, DEV_ID_TERMINAL, DEV_ID_UICC,
+ resMsg.mAddedInfo, false);
// No need to send the terminal response after event download.
return;
default: