public class

HtcCmasMessage

extends Object
java.lang.Object
   ↳ android.telephony.HtcCmasMessage
Known Direct Subclasses

Summary

Constants
int CERTAINTY_LIKELY
int CERTAINTY_OBSERVED CMAE_certainty Encoding of E_RECORD_TYPE type 1 elements.
int FORMAT_CDMA
int FORMAT_GSM
int FORMAT_UNKNOWN
int SEVERITY_EXTREME CMAE_severity Encoding of E_RECORD_TYPE type 1 elements.
int SEVERITY_SEVERE
int URGENCY_EXPECTED
int URGENCY_IMMEDIATE CMAE_urgency Encoding of E_RECORD_TYPE type 1 elements.
Fields
protected int alertHandling
protected byte[] alertText
protected String alertTextStr
protected int category
protected int certainty
protected int charSetEncoding
protected boolean charSetEncodingSet
protected int cmasFormat
protected int cmasId
protected int cmasType CMAS type defined for Db.
protected long expiredMillis
protected int gs
protected int language
protected byte[] mPdu
protected SmsMessage.MessageClass messageClass
protected int msgId
protected int pageCount
protected int pageSeg
protected int protocolVersion CDMA: CMAE_protocol_version
protected int responseType
protected int severity
protected int sn GSM (See 3GPP TS 23.041, 9.4.1.2 Message Parameter)
protected int urgency
Public Constructors
HtcCmasMessage()
Public Methods
int getAlertHandling()
byte[] getAlertText()
String getAlertTextStr()
int getCategory()
int getCertainty()
int getCharSetEncoding()
static String getCmaeCategory(int format, int cateId)
CDMA ONLY.
static String getCmaeCertainty(int cerId)
static String getCmaeResponseType(int format, int respId)
CDMA ONLY.
static String getCmaeSeverity(int sevId)
static String getCmaeUrgency(int urgId)
int getCmasFormat()
int getCmasId()
static HtcCmasMessage getCmasMessage(int format, byte[] pdu)
int getCmasType()
long getExpiredMillis()
int getGs()
static int getGsmAllCmasChannelCount()
static String getGsmAllCmasChannelListStr()
static int[] getGsmCmasChannelList(int c_type)
static String getGsmCmasChannelListStr(int c_type)
int getLanguage()
SmsMessage.MessageClass getMessageClass()
int getMsgId()
int getPageCount()
int getPageSeg()
byte[] getPdu()
int getProtocolVersion()
int getResponseType()
int getSeverity()
int getSn()
int getUrgency()
boolean isCharSetEncodingSet()
static boolean isGsmCmas(int msgId)
void parseGsmPdu(byte[] pdu)
void setAlertHandling(int alertHandling)
void setAlertText(byte[] alertText)
void setAlertTextStr(String alertTextStr)
void setCategory(int category)
void setCertainty(int certainty)
void setCharSetEncoding(int charSetEncoding)
void setCharSetEncodingSet(boolean charSetEncodingSet)
void setCmasFormat(int cmasFormat)
void setCmasId(int cmasId)
void setExpiredMillis(long expiredMillis)
void setGs(int gs)
void setLanguage(int language)
void setMessageClass(SmsMessage.MessageClass messageClass)
void setMsgId(int msgId)
void setPageCount(int pageCount)
void setPageSeg(int pageSeg)
void setProtocolVersion(int protocolVersion)
void setResponseType(int responseType)
void setSeverity(int severity)
void setSn(int sn)
void setUrgency(int urgency)
void setmPdu(byte[] mPdu)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CERTAINTY_LIKELY

Constant Value: 1 (0x00000001)

public static final int CERTAINTY_OBSERVED

CMAE_certainty Encoding of E_RECORD_TYPE type 1 elements. (See TIA-1149-0-1, Table 4-8) [leverage to GSM]

Constant Value: 0 (0x00000000)

public static final int FORMAT_CDMA

Constant Value: 2 (0x00000002)

public static final int FORMAT_GSM

Constant Value: 1 (0x00000001)

public static final int FORMAT_UNKNOWN

Constant Value: 0 (0x00000000)

public static final int SEVERITY_EXTREME

CMAE_severity Encoding of E_RECORD_TYPE type 1 elements. (See TIA-1149-0-1, Table 4-6) [leverage to GSM]

Constant Value: 0 (0x00000000)

public static final int SEVERITY_SEVERE

Constant Value: 1 (0x00000001)

public static final int URGENCY_EXPECTED

Constant Value: 1 (0x00000001)

public static final int URGENCY_IMMEDIATE

CMAE_urgency Encoding of E_RECORD_TYPE type 1 elements. (See TIA-1149-0-1, Table 4-7) [leverage to GSM]

Constant Value: 0 (0x00000000)

Fields

protected int alertHandling

protected byte[] alertText

protected String alertTextStr

protected int category

protected int certainty

protected int charSetEncoding

protected boolean charSetEncodingSet

protected int cmasFormat

protected int cmasId

protected int cmasType

CMAS type defined for Db. {android.provider.Telephony.Sms#CMAS_TYPE_UNKNOWN}, {android.provider.Telephony.Sms#CMAS_TYPE_PRESIDENTIAL} ...

protected long expiredMillis

protected int gs

protected int language

protected byte[] mPdu

protected SmsMessage.MessageClass messageClass

protected int msgId

protected int pageCount

protected int pageSeg

protected int protocolVersion

CDMA: CMAE_protocol_version

protected int responseType

protected int severity

protected int sn

GSM (See 3GPP TS 23.041, 9.4.1.2 Message Parameter)

protected int urgency

Public Constructors

public HtcCmasMessage ()

Public Methods

public int getAlertHandling ()

Returns
  • the alertHandling

public byte[] getAlertText ()

Returns
  • the alertText

public String getAlertTextStr ()

Returns
  • the alertTextStr

public int getCategory ()

Returns
  • the category

public int getCertainty ()

Returns
  • the certainty

public int getCharSetEncoding ()

Returns
  • the charSetEncoding

public static String getCmaeCategory (int format, int cateId)

CDMA ONLY. (See TIA-1149-0-1, Table 4-4)

Parameters
format CMAS format. (CDMA or GSM)
cateId CMAE_category id

public static String getCmaeCertainty (int cerId)

public static String getCmaeResponseType (int format, int respId)

CDMA ONLY. (See TIA-1149-0-1, Table 4-5)

Parameters
format CMAS format. (CDMA or GSM)
respId CMAE_response_type id

public static String getCmaeSeverity (int sevId)

Parameters
sevId severity id

public static String getCmaeUrgency (int urgId)

public int getCmasFormat ()

Returns
  • the cmasFormat

public int getCmasId ()

Returns
  • the cmasId

public static HtcCmasMessage getCmasMessage (int format, byte[] pdu)

public int getCmasType ()

Returns
  • one value of CMAS type: {android.provider.Telephony.Sms#CMAS_TYPE_UNKNOWN}, {android.provider.Telephony.Sms#CMAS_TYPE_PRESIDENTIAL} and so on

public long getExpiredMillis ()

Returns
  • the expiredMillis

public int getGs ()

Returns
  • the gs

public static int getGsmAllCmasChannelCount ()

public static String getGsmAllCmasChannelListStr ()

public static int[] getGsmCmasChannelList (int c_type)

public static String getGsmCmasChannelListStr (int c_type)

public int getLanguage ()

Returns
  • the language

public SmsMessage.MessageClass getMessageClass ()

Returns
  • the messageClass

public int getMsgId ()

Returns
  • the msgId

public int getPageCount ()

Returns
  • the pageCount

public int getPageSeg ()

Returns
  • the pageSeg

public byte[] getPdu ()

Returns
  • the mPdu

public int getProtocolVersion ()

Returns
  • the protocolVersion

public int getResponseType ()

Returns
  • the responseType

public int getSeverity ()

Returns
  • the severity

public int getSn ()

Returns
  • the sn

public int getUrgency ()

Returns
  • the urgency

public boolean isCharSetEncodingSet ()

Returns
  • the charSetEncodingSet

public static boolean isGsmCmas (int msgId)

public void parseGsmPdu (byte[] pdu)

public void setAlertHandling (int alertHandling)

Parameters
alertHandling the alertHandling to set

public void setAlertText (byte[] alertText)

Parameters
alertText the alertText to set

public void setAlertTextStr (String alertTextStr)

Parameters
alertTextStr the alertTextStr to set

public void setCategory (int category)

Parameters
category the category to set

public void setCertainty (int certainty)

Parameters
certainty the certainty to set

public void setCharSetEncoding (int charSetEncoding)

Parameters
charSetEncoding the charSetEncoding to set

public void setCharSetEncodingSet (boolean charSetEncodingSet)

Parameters
charSetEncodingSet the charSetEncodingSet to set

public void setCmasFormat (int cmasFormat)

Parameters
cmasFormat the cmasFormat to set

public void setCmasId (int cmasId)

Parameters
cmasId the cmasId to set

public void setExpiredMillis (long expiredMillis)

Parameters
expiredMillis the expiredMillis to set

public void setGs (int gs)

Parameters
gs the gs to set

public void setLanguage (int language)

Parameters
language the language to set

public void setMessageClass (SmsMessage.MessageClass messageClass)

Parameters
messageClass the messageClass to set

public void setMsgId (int msgId)

Parameters
msgId the msgId to set

public void setPageCount (int pageCount)

Parameters
pageCount the pageCount to set

public void setPageSeg (int pageSeg)

Parameters
pageSeg the pageSeg to set

public void setProtocolVersion (int protocolVersion)

Parameters
protocolVersion the protocolVersion to set

public void setResponseType (int responseType)

Parameters
responseType the responseType to set

public void setSeverity (int severity)

Parameters
severity the severity to set

public void setSn (int sn)

Parameters
sn the sn to set

public void setUrgency (int urgency)

Parameters
urgency the urgency to set

public void setmPdu (byte[] mPdu)

Parameters
mPdu the mPdu to set