public class

ImsSmsInterfaceManager

extends HtcIccSmsInterfaceManager
java.lang.Object
   ↳ android.os.Binder
     ↳ com.android.internal.telephony.ISms.Stub
       ↳ com.android.internal.telephony.IccSmsInterfaceManager
         ↳ com.android.internal.telephony.HtcIccSmsInterfaceManager
           ↳ com.android.internal.telephony.htcims.ImsSmsInterfaceManager

Class Overview

ImsSmsInterfaceManager to provide an inter-process communication to access Sms in Sim.

Summary

[Expand]
Inherited Constants
From interface android.os.IBinder
Fields
protected String mSmsc
protected final Object mSmscLock
[Expand]
Inherited Fields
From class com.android.internal.telephony.IccSmsInterfaceManager
Public Constructors
ImsSmsInterfaceManager(PhoneBase phone, SmsStorageMonitor storageMonitor, SmsUsageMonitor usageMonitor)
+[hTC_MSG]Kelvin@20111205, porting VZW customized functions public ImsSmsInterfaceManager(PhoneBase phone) { //** add new source code
Public Methods
boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc)
int copyMessageToIccEfForResult(int status, byte[] pdu, byte[] smsc)
int copyMessageToIccEfForResultWithType(boolean isCdmaFormat, int status, byte[] pdu, byte[] smsc)
Copy a raw SMS PDU to the SIM.
boolean copyMessageToIccEfWithType(boolean isCdmaFormat, int status, byte[] pdu, byte[] smsc)
Copy a raw SMS PDU to the SIM.
void dispose()
List<SmsRawData> getAllMessagesFromIccEf()
Retrieves all messages currently stored on ICC.
byte[] getMessageFromIccEf(int nIndexOnSim)
Retrieves a messages currently stored on ICC.
byte[] getMessageFromIccEfExt(int nIndexOnSim, int phoneType)
byte[] getMessageFromIccEfWithType(boolean bIsCdmaFormat, int nIndexOnSim)
String getSMSC()
Retrieve SMS Center address from SIM
int[] queryBCSMS(int funccode, int index)
void setSMSC(String address)
Update SMS Center address into SIM
boolean updateMessageOnIccEf(int index, int status, byte[] pdu)
boolean updateMessageOnIccEfWithType(boolean isCdmaFormat, int index, int status, byte[] pdu)
Update the specified message on the SIM.
void updateNvItem()
Protected Methods
void finalize()
void log(String msg)
[Expand]
Inherited Methods
From class com.android.internal.telephony.HtcIccSmsInterfaceManager
From class com.android.internal.telephony.IccSmsInterfaceManager
From class com.android.internal.telephony.ISms.Stub
From class android.os.Binder
From class java.lang.Object
From interface android.os.IBinder
From interface android.os.IInterface
From interface com.android.internal.telephony.ISms

Fields

protected String mSmsc

protected final Object mSmscLock

Public Constructors

public ImsSmsInterfaceManager (PhoneBase phone, SmsStorageMonitor storageMonitor, SmsUsageMonitor usageMonitor)

+[hTC_MSG]Kelvin@20111205, porting VZW customized functions public ImsSmsInterfaceManager(PhoneBase phone) { //** add new source code

Public Methods

public boolean copyMessageToIccEf (int status, byte[] pdu, byte[] smsc)

public int copyMessageToIccEfForResult (int status, byte[] pdu, byte[] smsc)

public int copyMessageToIccEfForResultWithType (boolean isCdmaFormat, int status, byte[] pdu, byte[] smsc)

Copy a raw SMS PDU to the SIM.

Parameters
status message status (STATUS_ON_ICC_READ, STATUS_ON_ICC_UNREAD, STATUS_ON_ICC_SENT, STATUS_ON_ICC_UNSENT)
pdu the raw PDU to store
Returns
  • index on sim, -1 if failed

public boolean copyMessageToIccEfWithType (boolean isCdmaFormat, int status, byte[] pdu, byte[] smsc)

Copy a raw SMS PDU to the SIM.

Parameters
status message status (STATUS_ON_ICC_READ, STATUS_ON_ICC_UNREAD, STATUS_ON_ICC_SENT, STATUS_ON_ICC_UNSENT)
pdu the raw PDU to store
Returns
  • success or not

public void dispose ()

Since: API Level

public List<SmsRawData> getAllMessagesFromIccEf ()

Retrieves all messages currently stored on ICC.

Returns
  • list of SmsRawData of all sms on ICC

public byte[] getMessageFromIccEf (int nIndexOnSim)

Retrieves a messages currently stored on ICC.

Returns
  • byte data of a sms on ICC record

public byte[] getMessageFromIccEfExt (int nIndexOnSim, int phoneType)

public byte[] getMessageFromIccEfWithType (boolean bIsCdmaFormat, int nIndexOnSim)

public String getSMSC ()

Retrieve SMS Center address from SIM

public int[] queryBCSMS (int funccode, int index)

public void setSMSC (String address)

Update SMS Center address into SIM

Parameters
address SMSC address

public boolean updateMessageOnIccEf (int index, int status, byte[] pdu)

public boolean updateMessageOnIccEfWithType (boolean isCdmaFormat, int index, int status, byte[] pdu)

Update the specified message on the SIM.

Parameters
index record index of message to update
status new message status (STATUS_ON_ICC_READ, STATUS_ON_ICC_UNREAD, STATUS_ON_ICC_SENT, STATUS_ON_ICC_UNSENT, STATUS_ON_ICC_FREE)
pdu the raw PDU to store
Returns
  • success or not

public void updateNvItem ()

Protected Methods

protected void finalize ()

Since: API Level

protected void log (String msg)