Handler.Callback
MmiCode.State
Modifier and Type | Field and Description |
---|---|
String |
mDialingNumber |
Constructor and Description |
---|
GsmMmiCode(GsmCdmaPhone phone,
UiccCardApplication app) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels pending MMI request.
|
int |
getCLIRMode()
returns CommandsInterface.CLIR_*
See also isTemporaryModeCLIR()
|
CharSequence |
getMessage() |
Phone |
getPhone() |
MmiCode.State |
getState() |
void |
handleMessage(Message msg)
Called from GsmCdmaPhone.handleMessage; not a Handler subclass
|
boolean |
isCancelable() |
boolean |
isPendingUSSD()
Returns true if this is a USSD code that's been submitted to the
network...eg, after processCode() is called
|
boolean |
isPinPukCommand() |
boolean |
isSsInfo() |
boolean |
isTemporaryModeCLIR()
See TS 22.030 Annex B.
|
boolean |
isUssdRequest() |
static GsmMmiCode |
newFromDialString(String dialString,
GsmCdmaPhone phone,
UiccCardApplication app)
Some dial strings in GSM are defined to do non-call setup
things, such as modify or query supplementary service settings (eg, call
forwarding).
|
static GsmMmiCode |
newFromUssdUserInput(String ussdMessge,
GsmCdmaPhone phone,
UiccCardApplication app) |
static GsmMmiCode |
newNetworkInitiatedUssd(String ussdMessage,
boolean isUssdRequest,
GsmCdmaPhone phone,
UiccCardApplication app) |
void |
onUssdFinished(String ussdMessage,
boolean isUssdRequest)
Called from GsmCdmaPhone
An unsolicited USSD NOTIFY or REQUEST has come in matching
up with this pending USSD request
Note: If REQUEST, this exchange is complete, but the session remains
active (ie, the network expects user input).
|
void |
onUssdFinishedError()
Called from GsmCdmaPhone
The radio has reset, and this is still pending
|
void |
onUssdRelease()
Called from GsmCdmaPhone
An unsolicited USSD NOTIFY or REQUEST has come in matching
up with this pending USSD request
Note: If REQUEST, this exchange is complete, but the session remains
active (ie, the network expects user input).
|
void |
processCode()
Process a MMI code or short code...anything that isn't a dialing number
|
void |
processSsData(AsyncResult data)
Process SS Data
|
void |
sendUssd(String ussdMessage) |
String |
toString()
TODO: It would be nice to have a method here that can take in a dialstring and
figure out if there is an MMI code embedded within it.
|
dispatchMessage, dump, getLooper, getMessageName, getTraceName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, runWithScissors, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed
public String mDialingNumber
public GsmMmiCode(GsmCdmaPhone phone, UiccCardApplication app)
public static GsmMmiCode newFromDialString(String dialString, GsmCdmaPhone phone, UiccCardApplication app)
public static GsmMmiCode newNetworkInitiatedUssd(String ussdMessage, boolean isUssdRequest, GsmCdmaPhone phone, UiccCardApplication app)
public static GsmMmiCode newFromUssdUserInput(String ussdMessge, GsmCdmaPhone phone, UiccCardApplication app)
public void processSsData(AsyncResult data)
public MmiCode.State getState()
public CharSequence getMessage()
getMessage
in interface MmiCode
public Phone getPhone()
public void cancel()
MmiCode
public boolean isCancelable()
isCancelable
in interface MmiCode
public boolean isPinPukCommand()
isPinPukCommand
in interface MmiCode
public boolean isTemporaryModeCLIR()
public int getCLIRMode()
public boolean isPendingUSSD()
public boolean isUssdRequest()
isUssdRequest
in interface MmiCode
public boolean isSsInfo()
public void processCode() throws CallStateException
processCode
in interface MmiCode
CallStateException
public void onUssdFinished(String ussdMessage, boolean isUssdRequest)
public void onUssdFinishedError()
public void onUssdRelease()
public void sendUssd(String ussdMessage)
public void handleMessage(Message msg)
handleMessage
in class Handler
public String toString()