public abstract class CallTracker extends Handler
Handler.Callback
Modifier and Type | Field and Description |
---|---|
protected static int |
EVENT_CALL_STATE_CHANGE |
protected static int |
EVENT_CALL_WAITING_INFO_CDMA |
protected static int |
EVENT_CONFERENCE_RESULT |
protected static int |
EVENT_ECT_RESULT |
protected static int |
EVENT_EXIT_ECM_RESPONSE_CDMA |
protected static int |
EVENT_GET_LAST_CALL_FAIL_CAUSE |
protected static int |
EVENT_OPERATION_COMPLETE |
protected static int |
EVENT_POLL_CALLS_RESULT |
protected static int |
EVENT_RADIO_AVAILABLE |
protected static int |
EVENT_RADIO_NOT_AVAILABLE |
protected static int |
EVENT_REPOLL_AFTER_DELAY |
protected static int |
EVENT_SEPARATE_RESULT |
protected static int |
EVENT_SWITCH_RESULT |
protected static int |
EVENT_THREE_WAY_DIAL_BLANK_FLASH |
protected static int |
EVENT_THREE_WAY_DIAL_L2_RESULT_CDMA |
CommandsInterface |
mCi |
protected ArrayList<Connection> |
mHandoverConnections |
protected Message |
mLastRelevantPoll |
protected boolean |
mNeedsPoll |
protected boolean |
mNumberConverted |
protected int |
mPendingOperations |
Constructor and Description |
---|
CallTracker() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkForTestEmergencyNumber(String dialString)
Routine called from dial to check if the number is a test Emergency number
and if so remap the number.
|
protected String |
convertNumberIfNecessary(Phone phone,
String dialNumber) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
protected Connection |
getHoConnection(DriverCall dc) |
abstract PhoneConstants.State |
getState() |
abstract void |
handleMessage(Message msg)
Subclasses must implement this to receive messages.
|
protected abstract void |
handlePollCalls(AsyncResult ar) |
protected void |
handleRadioAvailable() |
protected boolean |
isCommandExceptionRadioNotAvailable(Throwable e) |
protected abstract void |
log(String msg) |
protected void |
notifySrvccState(Call.SrvccState state,
ArrayList<Connection> c) |
protected Message |
obtainNoPollCompleteMessage(int what)
Obtain a complete message that indicates that this operation
does not require polling of getCurrentCalls().
|
protected void |
pollCallsAfterDelay() |
protected void |
pollCallsWhenSafe() |
abstract void |
registerForVoiceCallEnded(Handler h,
int what,
Object obj) |
abstract void |
registerForVoiceCallStarted(Handler h,
int what,
Object obj) |
abstract void |
unregisterForVoiceCallEnded(Handler h) |
abstract void |
unregisterForVoiceCallStarted(Handler h) |
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, toString
protected int mPendingOperations
protected boolean mNeedsPoll
protected Message mLastRelevantPoll
protected ArrayList<Connection> mHandoverConnections
public CommandsInterface mCi
protected boolean mNumberConverted
protected static final int EVENT_POLL_CALLS_RESULT
protected static final int EVENT_CALL_STATE_CHANGE
protected static final int EVENT_REPOLL_AFTER_DELAY
protected static final int EVENT_OPERATION_COMPLETE
protected static final int EVENT_GET_LAST_CALL_FAIL_CAUSE
protected static final int EVENT_SWITCH_RESULT
protected static final int EVENT_RADIO_AVAILABLE
protected static final int EVENT_RADIO_NOT_AVAILABLE
protected static final int EVENT_CONFERENCE_RESULT
protected static final int EVENT_SEPARATE_RESULT
protected static final int EVENT_ECT_RESULT
protected static final int EVENT_EXIT_ECM_RESPONSE_CDMA
protected static final int EVENT_CALL_WAITING_INFO_CDMA
protected static final int EVENT_THREE_WAY_DIAL_L2_RESULT_CDMA
protected static final int EVENT_THREE_WAY_DIAL_BLANK_FLASH
protected void pollCallsWhenSafe()
protected void pollCallsAfterDelay()
protected boolean isCommandExceptionRadioNotAvailable(Throwable e)
protected abstract void handlePollCalls(AsyncResult ar)
protected Connection getHoConnection(DriverCall dc)
protected void notifySrvccState(Call.SrvccState state, ArrayList<Connection> c)
protected void handleRadioAvailable()
protected Message obtainNoPollCompleteMessage(int what)
protected String checkForTestEmergencyNumber(String dialString)
dialString
- to test if it should be remappedpublic abstract void handleMessage(Message msg)
Handler
handleMessage
in class Handler
public abstract void registerForVoiceCallStarted(Handler h, int what, Object obj)
public abstract void unregisterForVoiceCallStarted(Handler h)
public abstract void registerForVoiceCallEnded(Handler h, int what, Object obj)
public abstract void unregisterForVoiceCallEnded(Handler h)
public abstract PhoneConstants.State getState()
protected abstract void log(String msg)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)