am a27353c1
: Cat: Generalize stk into cat
Merge commit 'a27353c1965911f69be8d02a01b15389189eab9d' into gingerbread-plus-aosp * commit 'a27353c1965911f69be8d02a01b15389189eab9d': Cat: Generalize stk into cat
This commit is contained in:
@ -73,10 +73,10 @@ public abstract class BaseCommands implements CommandsInterface {
|
|||||||
protected Registrant mSmsOnSimRegistrant;
|
protected Registrant mSmsOnSimRegistrant;
|
||||||
protected Registrant mSmsStatusRegistrant;
|
protected Registrant mSmsStatusRegistrant;
|
||||||
protected Registrant mSsnRegistrant;
|
protected Registrant mSsnRegistrant;
|
||||||
protected Registrant mStkSessionEndRegistrant;
|
protected Registrant mCatSessionEndRegistrant;
|
||||||
protected Registrant mStkProCmdRegistrant;
|
protected Registrant mCatProCmdRegistrant;
|
||||||
protected Registrant mStkEventRegistrant;
|
protected Registrant mCatEventRegistrant;
|
||||||
protected Registrant mStkCallSetUpRegistrant;
|
protected Registrant mCatCallSetUpRegistrant;
|
||||||
protected Registrant mIccSmsFullRegistrant;
|
protected Registrant mIccSmsFullRegistrant;
|
||||||
protected Registrant mEmergencyCallbackModeRegistrant;
|
protected Registrant mEmergencyCallbackModeRegistrant;
|
||||||
protected Registrant mIccRefreshRegistrant;
|
protected Registrant mIccRefreshRegistrant;
|
||||||
@ -395,36 +395,36 @@ public abstract class BaseCommands implements CommandsInterface {
|
|||||||
mSsnRegistrant.clear();
|
mSsnRegistrant.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnStkSessionEnd(Handler h, int what, Object obj) {
|
public void setOnCatSessionEnd(Handler h, int what, Object obj) {
|
||||||
mStkSessionEndRegistrant = new Registrant (h, what, obj);
|
mCatSessionEndRegistrant = new Registrant (h, what, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unSetOnStkSessionEnd(Handler h) {
|
public void unSetOnCatSessionEnd(Handler h) {
|
||||||
mStkSessionEndRegistrant.clear();
|
mCatSessionEndRegistrant.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnStkProactiveCmd(Handler h, int what, Object obj) {
|
public void setOnCatProactiveCmd(Handler h, int what, Object obj) {
|
||||||
mStkProCmdRegistrant = new Registrant (h, what, obj);
|
mCatProCmdRegistrant = new Registrant (h, what, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unSetOnStkProactiveCmd(Handler h) {
|
public void unSetOnCatProactiveCmd(Handler h) {
|
||||||
mStkProCmdRegistrant.clear();
|
mCatProCmdRegistrant.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnStkEvent(Handler h, int what, Object obj) {
|
public void setOnCatEvent(Handler h, int what, Object obj) {
|
||||||
mStkEventRegistrant = new Registrant (h, what, obj);
|
mCatEventRegistrant = new Registrant (h, what, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unSetOnStkEvent(Handler h) {
|
public void unSetOnCatEvent(Handler h) {
|
||||||
mStkEventRegistrant.clear();
|
mCatEventRegistrant.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnStkCallSetUp(Handler h, int what, Object obj) {
|
public void setOnCatCallSetUp(Handler h, int what, Object obj) {
|
||||||
mStkCallSetUpRegistrant = new Registrant (h, what, obj);
|
mCatCallSetUpRegistrant = new Registrant (h, what, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unSetOnStkCallSetUp(Handler h) {
|
public void unSetOnCatCallSetUp(Handler h) {
|
||||||
mStkCallSetUpRegistrant.clear();
|
mCatCallSetUpRegistrant.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnIccSmsFull(Handler h, int what, Object obj) {
|
public void setOnIccSmsFull(Handler h, int what, Object obj) {
|
||||||
|
@ -374,48 +374,48 @@ public interface CommandsInterface {
|
|||||||
void unSetOnSuppServiceNotification(Handler h);
|
void unSetOnSuppServiceNotification(Handler h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the handler for Session End Notifications for STK.
|
* Sets the handler for Session End Notifications for CAT.
|
||||||
* Unlike the register* methods, there's only one notification handler
|
* Unlike the register* methods, there's only one notification handler
|
||||||
*
|
*
|
||||||
* @param h Handler for notification message.
|
* @param h Handler for notification message.
|
||||||
* @param what User-defined message code.
|
* @param what User-defined message code.
|
||||||
* @param obj User object.
|
* @param obj User object.
|
||||||
*/
|
*/
|
||||||
void setOnStkSessionEnd(Handler h, int what, Object obj);
|
void setOnCatSessionEnd(Handler h, int what, Object obj);
|
||||||
void unSetOnStkSessionEnd(Handler h);
|
void unSetOnCatSessionEnd(Handler h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the handler for Proactive Commands for STK.
|
* Sets the handler for Proactive Commands for CAT.
|
||||||
* Unlike the register* methods, there's only one notification handler
|
* Unlike the register* methods, there's only one notification handler
|
||||||
*
|
*
|
||||||
* @param h Handler for notification message.
|
* @param h Handler for notification message.
|
||||||
* @param what User-defined message code.
|
* @param what User-defined message code.
|
||||||
* @param obj User object.
|
* @param obj User object.
|
||||||
*/
|
*/
|
||||||
void setOnStkProactiveCmd(Handler h, int what, Object obj);
|
void setOnCatProactiveCmd(Handler h, int what, Object obj);
|
||||||
void unSetOnStkProactiveCmd(Handler h);
|
void unSetOnCatProactiveCmd(Handler h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the handler for Event Notifications for STK.
|
* Sets the handler for Event Notifications for CAT.
|
||||||
* Unlike the register* methods, there's only one notification handler
|
* Unlike the register* methods, there's only one notification handler
|
||||||
*
|
*
|
||||||
* @param h Handler for notification message.
|
* @param h Handler for notification message.
|
||||||
* @param what User-defined message code.
|
* @param what User-defined message code.
|
||||||
* @param obj User object.
|
* @param obj User object.
|
||||||
*/
|
*/
|
||||||
void setOnStkEvent(Handler h, int what, Object obj);
|
void setOnCatEvent(Handler h, int what, Object obj);
|
||||||
void unSetOnStkEvent(Handler h);
|
void unSetOnCatEvent(Handler h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the handler for Call Set Up Notifications for STK.
|
* Sets the handler for Call Set Up Notifications for CAT.
|
||||||
* Unlike the register* methods, there's only one notification handler
|
* Unlike the register* methods, there's only one notification handler
|
||||||
*
|
*
|
||||||
* @param h Handler for notification message.
|
* @param h Handler for notification message.
|
||||||
* @param what User-defined message code.
|
* @param what User-defined message code.
|
||||||
* @param obj User object.
|
* @param obj User object.
|
||||||
*/
|
*/
|
||||||
void setOnStkCallSetUp(Handler h, int what, Object obj);
|
void setOnCatCallSetUp(Handler h, int what, Object obj);
|
||||||
void unSetOnStkCallSetUp(Handler h);
|
void unSetOnCatCallSetUp(Handler h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables/disbables supplementary service related notifications from
|
* Enables/disbables supplementary service related notifications from
|
||||||
|
@ -2481,8 +2481,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
|||||||
case RIL_UNSOL_STK_SESSION_END:
|
case RIL_UNSOL_STK_SESSION_END:
|
||||||
if (RILJ_LOGD) unsljLog(response);
|
if (RILJ_LOGD) unsljLog(response);
|
||||||
|
|
||||||
if (mStkSessionEndRegistrant != null) {
|
if (mCatSessionEndRegistrant != null) {
|
||||||
mStkSessionEndRegistrant.notifyRegistrant(
|
mCatSessionEndRegistrant.notifyRegistrant(
|
||||||
new AsyncResult (null, ret, null));
|
new AsyncResult (null, ret, null));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2490,8 +2490,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
|||||||
case RIL_UNSOL_STK_PROACTIVE_COMMAND:
|
case RIL_UNSOL_STK_PROACTIVE_COMMAND:
|
||||||
if (RILJ_LOGD) unsljLogRet(response, ret);
|
if (RILJ_LOGD) unsljLogRet(response, ret);
|
||||||
|
|
||||||
if (mStkProCmdRegistrant != null) {
|
if (mCatProCmdRegistrant != null) {
|
||||||
mStkProCmdRegistrant.notifyRegistrant(
|
mCatProCmdRegistrant.notifyRegistrant(
|
||||||
new AsyncResult (null, ret, null));
|
new AsyncResult (null, ret, null));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2499,8 +2499,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
|||||||
case RIL_UNSOL_STK_EVENT_NOTIFY:
|
case RIL_UNSOL_STK_EVENT_NOTIFY:
|
||||||
if (RILJ_LOGD) unsljLogRet(response, ret);
|
if (RILJ_LOGD) unsljLogRet(response, ret);
|
||||||
|
|
||||||
if (mStkEventRegistrant != null) {
|
if (mCatEventRegistrant != null) {
|
||||||
mStkEventRegistrant.notifyRegistrant(
|
mCatEventRegistrant.notifyRegistrant(
|
||||||
new AsyncResult (null, ret, null));
|
new AsyncResult (null, ret, null));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2508,8 +2508,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
|||||||
case RIL_UNSOL_STK_CALL_SETUP:
|
case RIL_UNSOL_STK_CALL_SETUP:
|
||||||
if (RILJ_LOGD) unsljLogRet(response, ret);
|
if (RILJ_LOGD) unsljLogRet(response, ret);
|
||||||
|
|
||||||
if (mStkCallSetUpRegistrant != null) {
|
if (mCatCallSetUpRegistrant != null) {
|
||||||
mStkCallSetUpRegistrant.notifyRegistrant(
|
mCatCallSetUpRegistrant.notifyRegistrant(
|
||||||
new AsyncResult (null, ret, null));
|
new AsyncResult (null, ret, null));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -14,29 +14,29 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for communication between STK App and STK Telephony
|
* Interface for communication between STK App and CAT Telephony
|
||||||
*
|
*
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
public interface AppInterface {
|
public interface AppInterface {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Intent's actions which are broadcasted by the Telephony once a new STK
|
* Intent's actions which are broadcasted by the Telephony once a new CAT
|
||||||
* proactive command, session end arrive.
|
* proactive command, session end arrive.
|
||||||
*/
|
*/
|
||||||
public static final String STK_CMD_ACTION =
|
public static final String CAT_CMD_ACTION =
|
||||||
"android.intent.action.stk.command";
|
"android.intent.action.stk.command";
|
||||||
public static final String STK_SESSION_END_ACTION =
|
public static final String CAT_SESSION_END_ACTION =
|
||||||
"android.intent.action.stk.session_end";
|
"android.intent.action.stk.session_end";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function from app to telephony to pass a result code and user's
|
* Callback function from app to telephony to pass a result code and user's
|
||||||
* input back to the SIM.
|
* input back to the ICC.
|
||||||
*/
|
*/
|
||||||
void onCmdResponse(StkResponseMessage resMsg);
|
void onCmdResponse(CatResponseMessage resMsg);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enumeration for representing "Type of Command" of proactive commands.
|
* Enumeration for representing "Type of Command" of proactive commands.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -14,17 +14,17 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class used to pass STK messages from telephony to application. Application
|
* Class used to pass CAT messages from telephony to application. Application
|
||||||
* should call getXXX() to get commands's specific values.
|
* should call getXXX() to get commands's specific values.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class StkCmdMessage implements Parcelable {
|
public class CatCmdMessage implements Parcelable {
|
||||||
// members
|
// members
|
||||||
CommandDetails mCmdDet;
|
CommandDetails mCmdDet;
|
||||||
private TextMessage mTextMsg;
|
private TextMessage mTextMsg;
|
||||||
@ -50,7 +50,7 @@ public class StkCmdMessage implements Parcelable {
|
|||||||
public TextMessage callMsg;
|
public TextMessage callMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
StkCmdMessage(CommandParams cmdParams) {
|
CatCmdMessage(CommandParams cmdParams) {
|
||||||
mCmdDet = cmdParams.cmdDet;
|
mCmdDet = cmdParams.cmdDet;
|
||||||
switch(getCmdType()) {
|
switch(getCmdType()) {
|
||||||
case SET_UP_MENU:
|
case SET_UP_MENU:
|
||||||
@ -88,7 +88,7 @@ public class StkCmdMessage implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public StkCmdMessage(Parcel in) {
|
public CatCmdMessage(Parcel in) {
|
||||||
mCmdDet = in.readParcelable(null);
|
mCmdDet = in.readParcelable(null);
|
||||||
mTextMsg = in.readParcelable(null);
|
mTextMsg = in.readParcelable(null);
|
||||||
mMenu = in.readParcelable(null);
|
mMenu = in.readParcelable(null);
|
||||||
@ -130,13 +130,13 @@ public class StkCmdMessage implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Parcelable.Creator<StkCmdMessage> CREATOR = new Parcelable.Creator<StkCmdMessage>() {
|
public static final Parcelable.Creator<CatCmdMessage> CREATOR = new Parcelable.Creator<CatCmdMessage>() {
|
||||||
public StkCmdMessage createFromParcel(Parcel in) {
|
public CatCmdMessage createFromParcel(Parcel in) {
|
||||||
return new StkCmdMessage(in);
|
return new CatCmdMessage(in);
|
||||||
}
|
}
|
||||||
|
|
||||||
public StkCmdMessage[] newArray(int size) {
|
public CatCmdMessage[] newArray(int size) {
|
||||||
return new StkCmdMessage[size];
|
return new CatCmdMessage[size];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,18 +14,18 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.util.AndroidException;
|
import android.util.AndroidException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all the exceptions in STK service.
|
* Base class for all the exceptions in CAT service.
|
||||||
*
|
*
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
class StkException extends AndroidException {
|
class CatException extends AndroidException {
|
||||||
public StkException() {
|
public CatException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
public abstract class StkLog {
|
public abstract class CatLog {
|
||||||
static final boolean DEBUG = true;
|
static final boolean DEBUG = true;
|
||||||
|
|
||||||
public static void d(Object caller, String msg) {
|
public static void d(Object caller, String msg) {
|
||||||
@ -27,7 +27,7 @@ public abstract class StkLog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String className = caller.getClass().getName();
|
String className = caller.getClass().getName();
|
||||||
Log.d("STK", className.substring(className.lastIndexOf('.') + 1) + ": "
|
Log.d("CAT", className.substring(className.lastIndexOf('.') + 1) + ": "
|
||||||
+ msg);
|
+ msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,6 +36,6 @@ public abstract class StkLog {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.d("STK", caller + ": " + msg);
|
Log.d("CAT", caller + ": " + msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
public class StkResponseMessage {
|
public class CatResponseMessage {
|
||||||
CommandDetails cmdDet = null;
|
CommandDetails cmdDet = null;
|
||||||
ResultCode resCode = ResultCode.OK;
|
ResultCode resCode = ResultCode.OK;
|
||||||
int usersMenuSelection = 0;
|
int usersMenuSelection = 0;
|
||||||
@ -24,7 +24,7 @@ public class StkResponseMessage {
|
|||||||
boolean usersYesNoSelection = false;
|
boolean usersYesNoSelection = false;
|
||||||
boolean usersConfirm = false;
|
boolean usersConfirm = false;
|
||||||
|
|
||||||
public StkResponseMessage(StkCmdMessage cmdMsg) {
|
public CatResponseMessage(CatCmdMessage cmdMsg) {
|
||||||
this.cmdDet = cmdMsg.mCmdDet;
|
this.cmdDet = cmdMsg.mCmdDet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@ -111,17 +111,17 @@ class RilMessage {
|
|||||||
*
|
*
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
public class StkService extends Handler implements AppInterface {
|
public class CatService extends Handler implements AppInterface {
|
||||||
|
|
||||||
// Class members
|
// Class members
|
||||||
private static IccRecords mIccRecords;
|
private static IccRecords mIccRecords;
|
||||||
|
|
||||||
// Service members.
|
// Service members.
|
||||||
private static StkService sInstance;
|
private static CatService sInstance;
|
||||||
private CommandsInterface mCmdIf;
|
private CommandsInterface mCmdIf;
|
||||||
private Context mContext;
|
private Context mContext;
|
||||||
private StkCmdMessage mCurrntCmd = null;
|
private CatCmdMessage mCurrntCmd = null;
|
||||||
private StkCmdMessage mMenuCmd = null;
|
private CatCmdMessage mMenuCmd = null;
|
||||||
|
|
||||||
private RilMessageDecoder mMsgDecoder = null;
|
private RilMessageDecoder mMsgDecoder = null;
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
private static final int DEV_ID_NETWORK = 0x83;
|
private static final int DEV_ID_NETWORK = 0x83;
|
||||||
|
|
||||||
/* Intentionally private for singleton */
|
/* Intentionally private for singleton */
|
||||||
private StkService(CommandsInterface ci, IccRecords ir, Context context,
|
private CatService(CommandsInterface ci, IccRecords ir, Context context,
|
||||||
IccFileHandler fh, IccCard ic) {
|
IccFileHandler fh, IccCard ic) {
|
||||||
if (ci == null || ir == null || context == null || fh == null
|
if (ci == null || ir == null || context == null || fh == null
|
||||||
|| ic == null) {
|
|| ic == null) {
|
||||||
@ -160,10 +160,10 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
mMsgDecoder = RilMessageDecoder.getInstance(this, fh);
|
mMsgDecoder = RilMessageDecoder.getInstance(this, fh);
|
||||||
|
|
||||||
// Register ril events handling.
|
// Register ril events handling.
|
||||||
mCmdIf.setOnStkSessionEnd(this, MSG_ID_SESSION_END, null);
|
mCmdIf.setOnCatSessionEnd(this, MSG_ID_SESSION_END, null);
|
||||||
mCmdIf.setOnStkProactiveCmd(this, MSG_ID_PROACTIVE_COMMAND, null);
|
mCmdIf.setOnCatProactiveCmd(this, MSG_ID_PROACTIVE_COMMAND, null);
|
||||||
mCmdIf.setOnStkEvent(this, MSG_ID_EVENT_NOTIFY, null);
|
mCmdIf.setOnCatEvent(this, MSG_ID_EVENT_NOTIFY, null);
|
||||||
mCmdIf.setOnStkCallSetUp(this, MSG_ID_CALL_SETUP, null);
|
mCmdIf.setOnCatCallSetUp(this, MSG_ID_CALL_SETUP, null);
|
||||||
//mCmdIf.setOnSimRefresh(this, MSG_ID_REFRESH, null);
|
//mCmdIf.setOnSimRefresh(this, MSG_ID_REFRESH, null);
|
||||||
|
|
||||||
mIccRecords = ir;
|
mIccRecords = ir;
|
||||||
@ -172,21 +172,21 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
mIccRecords.registerForRecordsLoaded(this, MSG_ID_ICC_RECORDS_LOADED, null);
|
mIccRecords.registerForRecordsLoaded(this, MSG_ID_ICC_RECORDS_LOADED, null);
|
||||||
|
|
||||||
mCmdIf.reportStkServiceIsRunning(null);
|
mCmdIf.reportStkServiceIsRunning(null);
|
||||||
StkLog.d(this, "StkService: is running");
|
CatLog.d(this, "Is running");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
mIccRecords.unregisterForRecordsLoaded(this);
|
mIccRecords.unregisterForRecordsLoaded(this);
|
||||||
mCmdIf.unSetOnStkSessionEnd(this);
|
mCmdIf.unSetOnCatSessionEnd(this);
|
||||||
mCmdIf.unSetOnStkProactiveCmd(this);
|
mCmdIf.unSetOnCatProactiveCmd(this);
|
||||||
mCmdIf.unSetOnStkEvent(this);
|
mCmdIf.unSetOnCatEvent(this);
|
||||||
mCmdIf.unSetOnStkCallSetUp(this);
|
mCmdIf.unSetOnCatCallSetUp(this);
|
||||||
|
|
||||||
this.removeCallbacksAndMessages(null);
|
this.removeCallbacksAndMessages(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void finalize() {
|
protected void finalize() {
|
||||||
StkLog.d(this, "Service finalized");
|
CatLog.d(this, "Service finalized");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleRilMsg(RilMessage rilMsg) {
|
private void handleRilMsg(RilMessage rilMsg) {
|
||||||
@ -241,9 +241,9 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private void handleProactiveCommand(CommandParams cmdParams) {
|
private void handleProactiveCommand(CommandParams cmdParams) {
|
||||||
StkLog.d(this, cmdParams.getCommandType().name());
|
CatLog.d(this, cmdParams.getCommandType().name());
|
||||||
|
|
||||||
StkCmdMessage cmdMsg = new StkCmdMessage(cmdParams);
|
CatCmdMessage cmdMsg = new CatCmdMessage(cmdParams);
|
||||||
switch (cmdParams.getCommandType()) {
|
switch (cmdParams.getCommandType()) {
|
||||||
case SET_UP_MENU:
|
case SET_UP_MENU:
|
||||||
if (removeMenu(cmdMsg.getMenu())) {
|
if (removeMenu(cmdMsg.getMenu())) {
|
||||||
@ -285,11 +285,11 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
// nothing to do on telephony!
|
// nothing to do on telephony!
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
StkLog.d(this, "Unsupported command");
|
CatLog.d(this, "Unsupported command");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mCurrntCmd = cmdMsg;
|
mCurrntCmd = cmdMsg;
|
||||||
Intent intent = new Intent(AppInterface.STK_CMD_ACTION);
|
Intent intent = new Intent(AppInterface.CAT_CMD_ACTION);
|
||||||
intent.putExtra("STK CMD", cmdMsg);
|
intent.putExtra("STK CMD", cmdMsg);
|
||||||
mContext.sendBroadcast(intent);
|
mContext.sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
@ -299,10 +299,10 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private void handleSessionEnd() {
|
private void handleSessionEnd() {
|
||||||
StkLog.d(this, "SESSION END");
|
CatLog.d(this, "SESSION END");
|
||||||
|
|
||||||
mCurrntCmd = mMenuCmd;
|
mCurrntCmd = mMenuCmd;
|
||||||
Intent intent = new Intent(AppInterface.STK_SESSION_END_ACTION);
|
Intent intent = new Intent(AppInterface.CAT_SESSION_END_ACTION);
|
||||||
mContext.sendBroadcast(intent);
|
mContext.sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,7 +353,7 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
byte[] rawData = buf.toByteArray();
|
byte[] rawData = buf.toByteArray();
|
||||||
String hexString = IccUtils.bytesToHexString(rawData);
|
String hexString = IccUtils.bytesToHexString(rawData);
|
||||||
if (Config.LOGD) {
|
if (Config.LOGD) {
|
||||||
StkLog.d(this, "TERMINAL RESPONSE: " + hexString);
|
CatLog.d(this, "TERMINAL RESPONSE: " + hexString);
|
||||||
}
|
}
|
||||||
|
|
||||||
mCmdIf.sendTerminalResponse(hexString, null);
|
mCmdIf.sendTerminalResponse(hexString, null);
|
||||||
@ -455,26 +455,26 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
* @param ic Icc card
|
* @param ic Icc card
|
||||||
* @return The only Service object in the system
|
* @return The only Service object in the system
|
||||||
*/
|
*/
|
||||||
public static StkService getInstance(CommandsInterface ci, IccRecords ir,
|
public static CatService getInstance(CommandsInterface ci, IccRecords ir,
|
||||||
Context context, IccFileHandler fh, IccCard ic) {
|
Context context, IccFileHandler fh, IccCard ic) {
|
||||||
if (sInstance == null) {
|
if (sInstance == null) {
|
||||||
if (ci == null || ir == null || context == null || fh == null
|
if (ci == null || ir == null || context == null || fh == null
|
||||||
|| ic == null) {
|
|| ic == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
HandlerThread thread = new HandlerThread("Stk Telephony service");
|
HandlerThread thread = new HandlerThread("Cat Telephony service");
|
||||||
thread.start();
|
thread.start();
|
||||||
sInstance = new StkService(ci, ir, context, fh, ic);
|
sInstance = new CatService(ci, ir, context, fh, ic);
|
||||||
StkLog.d(sInstance, "NEW sInstance");
|
CatLog.d(sInstance, "NEW sInstance");
|
||||||
} else if ((ir != null) && (mIccRecords != ir)) {
|
} else if ((ir != null) && (mIccRecords != ir)) {
|
||||||
StkLog.d(sInstance, "Reinitialize the Service with SIMRecords");
|
CatLog.d(sInstance, "Reinitialize the Service with SIMRecords");
|
||||||
mIccRecords = ir;
|
mIccRecords = ir;
|
||||||
|
|
||||||
// re-Register for SIM ready event.
|
// re-Register for SIM ready event.
|
||||||
mIccRecords.registerForRecordsLoaded(sInstance, MSG_ID_ICC_RECORDS_LOADED, null);
|
mIccRecords.registerForRecordsLoaded(sInstance, MSG_ID_ICC_RECORDS_LOADED, null);
|
||||||
StkLog.d(sInstance, "sr changed reinitialize and return current sInstance");
|
CatLog.d(sInstance, "sr changed reinitialize and return current sInstance");
|
||||||
} else {
|
} else {
|
||||||
StkLog.d(sInstance, "Return current sInstance");
|
CatLog.d(sInstance, "Return current sInstance");
|
||||||
}
|
}
|
||||||
return sInstance;
|
return sInstance;
|
||||||
}
|
}
|
||||||
@ -496,7 +496,7 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
case MSG_ID_PROACTIVE_COMMAND:
|
case MSG_ID_PROACTIVE_COMMAND:
|
||||||
case MSG_ID_EVENT_NOTIFY:
|
case MSG_ID_EVENT_NOTIFY:
|
||||||
case MSG_ID_REFRESH:
|
case MSG_ID_REFRESH:
|
||||||
StkLog.d(this, "ril message arrived");
|
CatLog.d(this, "ril message arrived");
|
||||||
String data = null;
|
String data = null;
|
||||||
if (msg.obj != null) {
|
if (msg.obj != null) {
|
||||||
AsyncResult ar = (AsyncResult) msg.obj;
|
AsyncResult ar = (AsyncResult) msg.obj;
|
||||||
@ -519,14 +519,14 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
handleRilMsg((RilMessage) msg.obj);
|
handleRilMsg((RilMessage) msg.obj);
|
||||||
break;
|
break;
|
||||||
case MSG_ID_RESPONSE:
|
case MSG_ID_RESPONSE:
|
||||||
handleCmdResponse((StkResponseMessage) msg.obj);
|
handleCmdResponse((CatResponseMessage) msg.obj);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new AssertionError("Unrecognized STK command: " + msg.what);
|
throw new AssertionError("Unrecognized CAT command: " + msg.what);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void onCmdResponse(StkResponseMessage resMsg) {
|
public synchronized void onCmdResponse(CatResponseMessage resMsg) {
|
||||||
if (resMsg == null) {
|
if (resMsg == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -535,7 +535,7 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
msg.sendToTarget();
|
msg.sendToTarget();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean validateResponse(StkResponseMessage resMsg) {
|
private boolean validateResponse(CatResponseMessage resMsg) {
|
||||||
if (mCurrntCmd != null) {
|
if (mCurrntCmd != null) {
|
||||||
return (resMsg.cmdDet.compareTo(mCurrntCmd.mCmdDet));
|
return (resMsg.cmdDet.compareTo(mCurrntCmd.mCmdDet));
|
||||||
}
|
}
|
||||||
@ -548,13 +548,13 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (NullPointerException e) {
|
} catch (NullPointerException e) {
|
||||||
StkLog.d(this, "Unable to get Menu's items size");
|
CatLog.d(this, "Unable to get Menu's items size");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleCmdResponse(StkResponseMessage resMsg) {
|
private void handleCmdResponse(CatResponseMessage resMsg) {
|
||||||
// Make sure the response details match the last valid command. An invalid
|
// Make sure the response details match the last valid command. An invalid
|
||||||
// response is a one that doesn't have a corresponding proactive command
|
// response is a one that doesn't have a corresponding proactive command
|
||||||
// and sending it can "confuse" the baseband/ril.
|
// and sending it can "confuse" the baseband/ril.
|
||||||
@ -563,7 +563,7 @@ public class StkService extends Handler implements AppInterface {
|
|||||||
// by the framework inside the history stack. That activity will be
|
// by the framework inside the history stack. That activity will be
|
||||||
// available for relaunch using the latest application dialog
|
// available for relaunch using the latest application dialog
|
||||||
// (long press on the home button). Relaunching that activity can send
|
// (long press on the home button). Relaunching that activity can send
|
||||||
// the same command's result again to the StkService and can cause it to
|
// the same command's result again to the CatService and can cause it to
|
||||||
// get out of sync with the SIM.
|
// get out of sync with the SIM.
|
||||||
if (!validateResponse(resMsg)) {
|
if (!validateResponse(resMsg)) {
|
||||||
return;
|
return;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
@ -79,7 +79,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
try {
|
try {
|
||||||
cmdDet = ValueParser.retrieveCommandDetails(ctlvCmdDet);
|
cmdDet = ValueParser.retrieveCommandDetails(ctlvCmdDet);
|
||||||
} catch (ResultException e) {
|
} catch (ResultException e) {
|
||||||
StkLog.d(this, "Failed to procees command details");
|
CatLog.d(this, "Failed to procees command details");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -259,7 +259,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
List<ComprehensionTlv> ctlvs)
|
List<ComprehensionTlv> ctlvs)
|
||||||
throws ResultException {
|
throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process DisplayText");
|
CatLog.d(this, "process DisplayText");
|
||||||
|
|
||||||
TextMessage textMsg = new TextMessage();
|
TextMessage textMsg = new TextMessage();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -319,7 +319,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processSetUpIdleModeText(CommandDetails cmdDet,
|
private boolean processSetUpIdleModeText(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process SetUpIdleModeText");
|
CatLog.d(this, "process SetUpIdleModeText");
|
||||||
|
|
||||||
TextMessage textMsg = new TextMessage();
|
TextMessage textMsg = new TextMessage();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -362,7 +362,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processGetInkey(CommandDetails cmdDet,
|
private boolean processGetInkey(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process GetInkey");
|
CatLog.d(this, "process GetInkey");
|
||||||
|
|
||||||
Input input = new Input();
|
Input input = new Input();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -412,7 +412,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processGetInput(CommandDetails cmdDet,
|
private boolean processGetInput(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process GetInput");
|
CatLog.d(this, "process GetInput");
|
||||||
|
|
||||||
Input input = new Input();
|
Input input = new Input();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -476,7 +476,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processRefresh(CommandDetails cmdDet,
|
private boolean processRefresh(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) {
|
List<ComprehensionTlv> ctlvs) {
|
||||||
|
|
||||||
StkLog.d(this, "process Refresh");
|
CatLog.d(this, "process Refresh");
|
||||||
|
|
||||||
// REFRESH proactive command is rerouted by the baseband and handled by
|
// REFRESH proactive command is rerouted by the baseband and handled by
|
||||||
// the telephony layer. IDLE TEXT should be removed for a REFRESH command
|
// the telephony layer. IDLE TEXT should be removed for a REFRESH command
|
||||||
@ -505,7 +505,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processSelectItem(CommandDetails cmdDet,
|
private boolean processSelectItem(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process SelectItem");
|
CatLog.d(this, "process SelectItem");
|
||||||
|
|
||||||
Menu menu = new Menu();
|
Menu menu = new Menu();
|
||||||
IconId titleIconId = null;
|
IconId titleIconId = null;
|
||||||
@ -534,7 +534,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
|
|
||||||
ctlv = searchForTag(ComprehensionTlvTag.ITEM_ID, ctlvs);
|
ctlv = searchForTag(ComprehensionTlvTag.ITEM_ID, ctlvs);
|
||||||
if (ctlv != null) {
|
if (ctlv != null) {
|
||||||
// STK items are listed 1...n while list start at 0, need to
|
// CAT items are listed 1...n while list start at 0, need to
|
||||||
// subtract one.
|
// subtract one.
|
||||||
menu.defaultItem = ValueParser.retrieveItemId(ctlv) - 1;
|
menu.defaultItem = ValueParser.retrieveItemId(ctlv) - 1;
|
||||||
}
|
}
|
||||||
@ -602,7 +602,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processEventNotify(CommandDetails cmdDet,
|
private boolean processEventNotify(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process EventNotify");
|
CatLog.d(this, "process EventNotify");
|
||||||
|
|
||||||
TextMessage textMsg = new TextMessage();
|
TextMessage textMsg = new TextMessage();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -645,7 +645,7 @@ class CommandParamsFactory extends Handler {
|
|||||||
private boolean processSetUpEventList(CommandDetails cmdDet,
|
private boolean processSetUpEventList(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) {
|
List<ComprehensionTlv> ctlvs) {
|
||||||
|
|
||||||
StkLog.d(this, "process SetUpEventList");
|
CatLog.d(this, "process SetUpEventList");
|
||||||
//
|
//
|
||||||
// ComprehensionTlv ctlv = searchForTag(ComprehensionTlvTag.EVENT_LIST,
|
// ComprehensionTlv ctlv = searchForTag(ComprehensionTlvTag.EVENT_LIST,
|
||||||
// ctlvs);
|
// ctlvs);
|
||||||
@ -670,10 +670,10 @@ class CommandParamsFactory extends Handler {
|
|||||||
* asynchronous processing is required.
|
* asynchronous processing is required.
|
||||||
* @throws ResultException
|
* @throws ResultException
|
||||||
*/
|
*/
|
||||||
private boolean processLaunchBrowser(CommandDetails cmdDet,
|
private boolean processLaunchBrowser(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process LaunchBrowser");
|
CatLog.d(this, "process LaunchBrowser");
|
||||||
|
|
||||||
TextMessage confirmMsg = new TextMessage();
|
TextMessage confirmMsg = new TextMessage();
|
||||||
IconId iconId = null;
|
IconId iconId = null;
|
||||||
@ -744,10 +744,10 @@ class CommandParamsFactory extends Handler {
|
|||||||
* asynchronous processing is required.t
|
* asynchronous processing is required.t
|
||||||
* @throws ResultException
|
* @throws ResultException
|
||||||
*/
|
*/
|
||||||
private boolean processPlayTone(CommandDetails cmdDet,
|
private boolean processPlayTone(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
|
|
||||||
StkLog.d(this, "process PlayTone");
|
CatLog.d(this, "process PlayTone");
|
||||||
|
|
||||||
Tone tone = null;
|
Tone tone = null;
|
||||||
TextMessage textMsg = new TextMessage();
|
TextMessage textMsg = new TextMessage();
|
||||||
@ -810,9 +810,9 @@ class CommandParamsFactory extends Handler {
|
|||||||
* @return true if the command is processing is pending and additional
|
* @return true if the command is processing is pending and additional
|
||||||
* asynchronous processing is required.
|
* asynchronous processing is required.
|
||||||
*/
|
*/
|
||||||
private boolean processSetupCall(CommandDetails cmdDet,
|
private boolean processSetupCall(CommandDetails cmdDet,
|
||||||
List<ComprehensionTlv> ctlvs) throws ResultException {
|
List<ComprehensionTlv> ctlvs) throws ResultException {
|
||||||
StkLog.d(this, "process SetupCall");
|
CatLog.d(this, "process SetupCall");
|
||||||
|
|
||||||
Iterator<ComprehensionTlv> iter = ctlvs.iterator();
|
Iterator<ComprehensionTlv> iter = ctlvs.iterator();
|
||||||
ComprehensionTlv ctlv = null;
|
ComprehensionTlv ctlv = null;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for representing "Duration" object for STK.
|
* Class for representing "Duration" object for CAT.
|
||||||
*
|
*
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import com.android.internal.telephony.IccFileHandler;
|
import com.android.internal.telephony.IccFileHandler;
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ class IconLoader extends Handler {
|
|||||||
return sLoader;
|
return sLoader;
|
||||||
}
|
}
|
||||||
if (fh != null) {
|
if (fh != null) {
|
||||||
HandlerThread thread = new HandlerThread("Stk Icon Loader");
|
HandlerThread thread = new HandlerThread("Cat Icon Loader");
|
||||||
thread.start();
|
thread.start();
|
||||||
return new IconLoader(thread.getLooper(), fh);
|
return new IconLoader(thread.getLooper(), fh);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ class IconLoader extends Handler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
StkLog.d(this, "Icon load failed");
|
CatLog.d(this, "Icon load failed");
|
||||||
// post null icon back to the caller.
|
// post null icon back to the caller.
|
||||||
postIcon();
|
postIcon();
|
||||||
}
|
}
|
||||||
@ -254,7 +254,7 @@ class IconLoader extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pixelIndex != numOfPixels) {
|
if (pixelIndex != numOfPixels) {
|
||||||
StkLog.d("IconLoader", "parseToBnW; size error");
|
CatLog.d("IconLoader", "parseToBnW; size error");
|
||||||
}
|
}
|
||||||
return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@hide}
|
* {@hide}
|
||||||
@ -69,7 +69,7 @@ public class ImageDescriptor {
|
|||||||
|
|
||||||
d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));
|
d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
StkLog.d("ImageDescripter", "parse; failed parsing image descriptor");
|
CatLog.d("ImageDescripter", "parse; failed parsing image descriptor");
|
||||||
d = null;
|
d = null;
|
||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Container class for STK GET INPUT, GET IN KEY commands parameters.
|
* Container class for CAT GET INPUT, GET IN KEY commands parameters.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Input implements Parcelable {
|
public class Input implements Parcelable {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
@ -24,7 +24,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Container class for STK menu (SET UP MENU, SELECT ITEM) parameters.
|
* Container class for CAT menu (SET UP MENU, SELECT ITEM) parameters.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Menu implements Parcelable {
|
public class Menu implements Parcelable {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* the License.
|
* the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import com.android.internal.telephony.EncodeException;
|
import com.android.internal.telephony.EncodeException;
|
||||||
import com.android.internal.telephony.GsmAlphabet;
|
import com.android.internal.telephony.GsmAlphabet;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -22,7 +22,7 @@ package com.android.internal.telephony.gsm.stk;
|
|||||||
*
|
*
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
public class ResultException extends StkException {
|
public class ResultException extends CatException {
|
||||||
private ResultCode mResult;
|
private ResultCode mResult;
|
||||||
private int mAdditionalInfo;
|
private int mAdditionalInfo;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import com.android.internal.telephony.IccFileHandler;
|
import com.android.internal.telephony.IccFileHandler;
|
||||||
import com.android.internal.telephony.IccUtils;
|
import com.android.internal.telephony.IccUtils;
|
||||||
@ -26,7 +26,7 @@ import android.os.Message;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class used for queuing raw ril messages, decoding them into CommanParams
|
* Class used for queuing raw ril messages, decoding them into CommanParams
|
||||||
* objects and sending the result back to the STK Service.
|
* objects and sending the result back to the CAT Service.
|
||||||
*/
|
*/
|
||||||
class RilMessageDecoder extends HierarchicalStateMachine {
|
class RilMessageDecoder extends HierarchicalStateMachine {
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ class RilMessageDecoder extends HierarchicalStateMachine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sendCmdForExecution(RilMessage rilMsg) {
|
private void sendCmdForExecution(RilMessage rilMsg) {
|
||||||
Message msg = mCaller.obtainMessage(StkService.MSG_ID_RIL_MSG_DECODED,
|
Message msg = mCaller.obtainMessage(CatService.MSG_ID_RIL_MSG_DECODED,
|
||||||
new RilMessage(rilMsg));
|
new RilMessage(rilMsg));
|
||||||
msg.sendToTarget();
|
msg.sendToTarget();
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ class RilMessageDecoder extends HierarchicalStateMachine {
|
|||||||
transitionTo(mStateCmdParamsReady);
|
transitionTo(mStateCmdParamsReady);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
StkLog.d(this, "StateStart unexpected expecting START=" +
|
CatLog.d(this, "StateStart unexpected expecting START=" +
|
||||||
CMD_START + " got " + msg.what);
|
CMD_START + " got " + msg.what);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -123,7 +123,7 @@ class RilMessageDecoder extends HierarchicalStateMachine {
|
|||||||
sendCmdForExecution(mCurrentRilMessage);
|
sendCmdForExecution(mCurrentRilMessage);
|
||||||
transitionTo(mStateStart);
|
transitionTo(mStateStart);
|
||||||
} else {
|
} else {
|
||||||
StkLog.d(this, "StateCmdParamsReady expecting CMD_PARAMS_READY="
|
CatLog.d(this, "StateCmdParamsReady expecting CMD_PARAMS_READY="
|
||||||
+ CMD_PARAMS_READY + " got " + msg.what);
|
+ CMD_PARAMS_READY + " got " + msg.what);
|
||||||
deferMessage(msg);
|
deferMessage(msg);
|
||||||
}
|
}
|
||||||
@ -136,21 +136,21 @@ class RilMessageDecoder extends HierarchicalStateMachine {
|
|||||||
|
|
||||||
mCurrentRilMessage = rilMsg;
|
mCurrentRilMessage = rilMsg;
|
||||||
switch(rilMsg.mId) {
|
switch(rilMsg.mId) {
|
||||||
case StkService.MSG_ID_SESSION_END:
|
case CatService.MSG_ID_SESSION_END:
|
||||||
case StkService.MSG_ID_CALL_SETUP:
|
case CatService.MSG_ID_CALL_SETUP:
|
||||||
mCurrentRilMessage.mResCode = ResultCode.OK;
|
mCurrentRilMessage.mResCode = ResultCode.OK;
|
||||||
sendCmdForExecution(mCurrentRilMessage);
|
sendCmdForExecution(mCurrentRilMessage);
|
||||||
decodingStarted = false;
|
decodingStarted = false;
|
||||||
break;
|
break;
|
||||||
case StkService.MSG_ID_PROACTIVE_COMMAND:
|
case CatService.MSG_ID_PROACTIVE_COMMAND:
|
||||||
case StkService.MSG_ID_EVENT_NOTIFY:
|
case CatService.MSG_ID_EVENT_NOTIFY:
|
||||||
case StkService.MSG_ID_REFRESH:
|
case CatService.MSG_ID_REFRESH:
|
||||||
byte[] rawData = null;
|
byte[] rawData = null;
|
||||||
try {
|
try {
|
||||||
rawData = IccUtils.hexStringToBytes((String) rilMsg.mData);
|
rawData = IccUtils.hexStringToBytes((String) rilMsg.mData);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// zombie messages are dropped
|
// zombie messages are dropped
|
||||||
StkLog.d(this, "decodeMessageParams dropping zombie messages");
|
CatLog.d(this, "decodeMessageParams dropping zombie messages");
|
||||||
decodingStarted = false;
|
decodingStarted = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
* the License.
|
* the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.internal.telephony.gsm.stk;
|
package com.android.internal.telephony.cat;
|
||||||
|
|
||||||
import com.android.internal.telephony.GsmAlphabet;
|
import com.android.internal.telephony.GsmAlphabet;
|
||||||
import com.android.internal.telephony.IccUtils;
|
import com.android.internal.telephony.IccUtils;
|
||||||
import com.android.internal.telephony.gsm.stk.Duration.TimeUnit;
|
import com.android.internal.telephony.cat.Duration.TimeUnit;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -182,7 +182,7 @@ abstract class ValueParser {
|
|||||||
*/
|
*/
|
||||||
static ItemsIconId retrieveItemsIconId(ComprehensionTlv ctlv)
|
static ItemsIconId retrieveItemsIconId(ComprehensionTlv ctlv)
|
||||||
throws ResultException {
|
throws ResultException {
|
||||||
StkLog.d("ValueParser", "retrieveItemsIconId:");
|
CatLog.d("ValueParser", "retrieveItemsIconId:");
|
||||||
ItemsIconId id = new ItemsIconId();
|
ItemsIconId id = new ItemsIconId();
|
||||||
|
|
||||||
byte[] rawValue = ctlv.getRawValue();
|
byte[] rawValue = ctlv.getRawValue();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<HTML>
|
<HTML>
|
||||||
<BODY>
|
<BODY>
|
||||||
Provides classes for SIM Toolkit Service.
|
Provides classes for ICC Toolkit Service (CAT).
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -42,6 +42,7 @@ import android.telephony.SignalStrength;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.android.internal.telephony.cat.CatService;
|
||||||
import com.android.internal.telephony.Call;
|
import com.android.internal.telephony.Call;
|
||||||
import com.android.internal.telephony.CallStateException;
|
import com.android.internal.telephony.CallStateException;
|
||||||
import com.android.internal.telephony.CommandException;
|
import com.android.internal.telephony.CommandException;
|
||||||
@ -49,7 +50,6 @@ import com.android.internal.telephony.CommandsInterface;
|
|||||||
import com.android.internal.telephony.Connection;
|
import com.android.internal.telephony.Connection;
|
||||||
import com.android.internal.telephony.DataConnection;
|
import com.android.internal.telephony.DataConnection;
|
||||||
import com.android.internal.telephony.MccTable;
|
import com.android.internal.telephony.MccTable;
|
||||||
import com.android.internal.telephony.gsm.stk.StkService;
|
|
||||||
import com.android.internal.telephony.IccCard;
|
import com.android.internal.telephony.IccCard;
|
||||||
import com.android.internal.telephony.IccException;
|
import com.android.internal.telephony.IccException;
|
||||||
import com.android.internal.telephony.IccFileHandler;
|
import com.android.internal.telephony.IccFileHandler;
|
||||||
@ -110,7 +110,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
PhoneSubInfo mSubInfo;
|
PhoneSubInfo mSubInfo;
|
||||||
EriManager mEriManager;
|
EriManager mEriManager;
|
||||||
WakeLock mWakeLock;
|
WakeLock mWakeLock;
|
||||||
StkService mStkService;
|
CatService mCcatService;
|
||||||
|
|
||||||
// mNvLoadedRegistrants are informed after the EVENT_NV_READY
|
// mNvLoadedRegistrants are informed after the EVENT_NV_READY
|
||||||
private RegistrantList mNvLoadedRegistrants = new RegistrantList();
|
private RegistrantList mNvLoadedRegistrants = new RegistrantList();
|
||||||
@ -162,7 +162,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
mRuimSmsInterfaceManager = new RuimSmsInterfaceManager(this);
|
mRuimSmsInterfaceManager = new RuimSmsInterfaceManager(this);
|
||||||
mSubInfo = new PhoneSubInfo(this);
|
mSubInfo = new PhoneSubInfo(this);
|
||||||
mEriManager = new EriManager(this, context, EriManager.ERI_FROM_XML);
|
mEriManager = new EriManager(this, context, EriManager.ERI_FROM_XML);
|
||||||
mStkService = StkService.getInstance(mCM, mRuimRecords, mContext,
|
mCcatService = CatService.getInstance(mCM, mRuimRecords, mContext,
|
||||||
mIccFileHandler, mRuimCard);
|
mIccFileHandler, mRuimCard);
|
||||||
|
|
||||||
mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
|
mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
|
||||||
@ -239,7 +239,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
mRuimSmsInterfaceManager.dispose();
|
mRuimSmsInterfaceManager.dispose();
|
||||||
mSubInfo.dispose();
|
mSubInfo.dispose();
|
||||||
mEriManager.dispose();
|
mEriManager.dispose();
|
||||||
mStkService.dispose();
|
mCcatService.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
this.mCT = null;
|
this.mCT = null;
|
||||||
this.mSST = null;
|
this.mSST = null;
|
||||||
this.mEriManager = null;
|
this.mEriManager = null;
|
||||||
this.mStkService = null;
|
this.mCcatService = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void finalize() {
|
protected void finalize() {
|
||||||
|
@ -49,6 +49,7 @@ import static com.android.internal.telephony.CommandsInterface.CF_REASON_UNCONDI
|
|||||||
import static com.android.internal.telephony.CommandsInterface.SERVICE_CLASS_VOICE;
|
import static com.android.internal.telephony.CommandsInterface.SERVICE_CLASS_VOICE;
|
||||||
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_BASEBAND_VERSION;
|
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_BASEBAND_VERSION;
|
||||||
|
|
||||||
|
import com.android.internal.telephony.cat.CatService;
|
||||||
import com.android.internal.telephony.Call;
|
import com.android.internal.telephony.Call;
|
||||||
import com.android.internal.telephony.CallForwardInfo;
|
import com.android.internal.telephony.CallForwardInfo;
|
||||||
import com.android.internal.telephony.CallStateException;
|
import com.android.internal.telephony.CallStateException;
|
||||||
@ -68,7 +69,6 @@ import com.android.internal.telephony.PhoneProxy;
|
|||||||
import com.android.internal.telephony.PhoneSubInfo;
|
import com.android.internal.telephony.PhoneSubInfo;
|
||||||
import com.android.internal.telephony.TelephonyProperties;
|
import com.android.internal.telephony.TelephonyProperties;
|
||||||
import com.android.internal.telephony.UUSInfo;
|
import com.android.internal.telephony.UUSInfo;
|
||||||
import com.android.internal.telephony.gsm.stk.StkService;
|
|
||||||
import com.android.internal.telephony.test.SimulatedRadioControl;
|
import com.android.internal.telephony.test.SimulatedRadioControl;
|
||||||
import com.android.internal.telephony.IccVmNotSupportedException;
|
import com.android.internal.telephony.IccVmNotSupportedException;
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ public class GSMPhone extends PhoneBase {
|
|||||||
GsmSMSDispatcher mSMS;
|
GsmSMSDispatcher mSMS;
|
||||||
SIMRecords mSIMRecords;
|
SIMRecords mSIMRecords;
|
||||||
SimCard mSimCard;
|
SimCard mSimCard;
|
||||||
StkService mStkService;
|
CatService mStkService;
|
||||||
ArrayList <GsmMmiCode> mPendingMMIs = new ArrayList<GsmMmiCode>();
|
ArrayList <GsmMmiCode> mPendingMMIs = new ArrayList<GsmMmiCode>();
|
||||||
SimPhoneBookInterfaceManager mSimPhoneBookIntManager;
|
SimPhoneBookInterfaceManager mSimPhoneBookIntManager;
|
||||||
SimSmsInterfaceManager mSimSmsIntManager;
|
SimSmsInterfaceManager mSimSmsIntManager;
|
||||||
@ -154,7 +154,7 @@ public class GSMPhone extends PhoneBase {
|
|||||||
mSimSmsIntManager = new SimSmsInterfaceManager(this);
|
mSimSmsIntManager = new SimSmsInterfaceManager(this);
|
||||||
mSubInfo = new PhoneSubInfo(this);
|
mSubInfo = new PhoneSubInfo(this);
|
||||||
}
|
}
|
||||||
mStkService = StkService.getInstance(mCM, mSIMRecords, mContext,
|
mStkService = CatService.getInstance(mCM, mSIMRecords, mContext,
|
||||||
(SIMFileHandler)mIccFileHandler, mSimCard);
|
(SIMFileHandler)mIccFileHandler, mSimCard);
|
||||||
|
|
||||||
mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
|
mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
|
||||||
|
Reference in New Issue
Block a user