public class GsmInboundSmsHandler extends InboundSmsHandler
StateMachine.LogRec
ADDRESS_COLUMN, COUNT_COLUMN, DATE_COLUMN, DBG, DESTINATION_PORT_COLUMN, EVENT_BROADCAST_SMS, EVENT_INJECT_SMS, EVENT_NEW_SMS, EVENT_START_ACCEPTING_SMS, ID_COLUMN, mCellBroadcastHandler, mContext, MESSAGE_BODY_COLUMN, mPhone, mStorageMonitor, PDU_COLUMN, REFERENCE_NUMBER_COLUMN, SELECT_BY_ID, SELECT_BY_REFERENCE, SEQUENCE_COLUMN, sRawUri, sRawUriPermanentDelete
HANDLED, NOT_HANDLED
Modifier and Type | Method and Description |
---|---|
protected void |
acknowledgeLastIncomingSms(boolean success,
int result,
Message response)
Send an acknowledge message.
|
protected int |
dispatchMessageRadioSpecific(SmsMessageBase smsb)
Handle type zero, SMS-PP data download, and 3GPP/CPHS MWI type SMS.
|
protected boolean |
is3gpp2()
Return true if this handler is for 3GPP2 messages; false for 3GPP format.
|
static GsmInboundSmsHandler |
makeInboundSmsHandler(Context context,
SmsStorageMonitor storageMonitor,
Phone phone)
Wait for state machine to enter startup state.
|
protected void |
onQuitting()
Unregister for GSM SMS.
|
protected void |
onUpdatePhoneObject(Phone phone)
Called when the phone changes the default method updates mPhone
mStorageMonitor and mCellBroadcastHandler.updatePhoneObject.
|
addTrackerToRawTableAndSendMessage, dispatchIntent, dispatchNormalMessage, dispose, getPhone, getWakeLock, getWakeLockTimeout, log, loge, loge, updatePhoneObject
addLogRec, addState, addState, copyLogRecs, deferMessage, dump, getCurrentMessage, getCurrentState, getHandler, getLogRec, getLogRecCount, getLogRecSize, getLogRecString, getName, getWhatToString, haltedProcessMessage, hasDeferredMessages, hasMessages, isDbg, isQuit, logAndAddLogRec, logd, logi, logv, logw, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, onHalting, onPostHandleMessage, onPreHandleMessage, quit, quitNow, recordLogRec, removeDeferredMessages, removeMessages, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, setDbg, setInitialState, setLogOnlyTransitions, setLogRecSize, start, toString, transitionTo, transitionToHaltingState, unhandledMessage
protected void onQuitting()
onQuitting
in class InboundSmsHandler
public static GsmInboundSmsHandler makeInboundSmsHandler(Context context, SmsStorageMonitor storageMonitor, Phone phone)
protected boolean is3gpp2()
is3gpp2
in class InboundSmsHandler
protected int dispatchMessageRadioSpecific(SmsMessageBase smsb)
InboundSmsHandler.dispatchNormalMessage(com.android.internal.telephony.SmsMessageBase)
in parent class.dispatchMessageRadioSpecific
in class InboundSmsHandler
smsb
- the SmsMessageBase object from the RILTelephony.Sms.Intents
,
or Activity.RESULT_OK
for delayed acknowledgment to SMSCprotected void acknowledgeLastIncomingSms(boolean success, int result, Message response)
acknowledgeLastIncomingSms
in class InboundSmsHandler
success
- indicates that last message was successfully received.result
- result code indicating any errorresponse
- callback message sent when operation completes.protected void onUpdatePhoneObject(Phone phone)
onUpdatePhoneObject
in class InboundSmsHandler
phone
-