public class GsmCdmaCallTracker extends CallTracker
Handler.Callback
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CONNECTIONS_GSM |
GsmCdmaCall |
mBackgroundCall |
GsmCdmaCall |
mForegroundCall |
GsmCdmaCall |
mRingingCall |
PhoneConstants.State |
mState |
EVENT_CALL_STATE_CHANGE, EVENT_CALL_WAITING_INFO_CDMA, EVENT_CONFERENCE_RESULT, EVENT_ECT_RESULT, EVENT_EXIT_ECM_RESPONSE_CDMA, EVENT_GET_LAST_CALL_FAIL_CAUSE, EVENT_OPERATION_COMPLETE, EVENT_POLL_CALLS_RESULT, EVENT_RADIO_AVAILABLE, EVENT_RADIO_NOT_AVAILABLE, EVENT_REPOLL_AFTER_DELAY, EVENT_SEPARATE_RESULT, EVENT_SWITCH_RESULT, EVENT_THREE_WAY_DIAL_BLANK_FLASH, EVENT_THREE_WAY_DIAL_L2_RESULT_CDMA, mCi, mHandoverConnections, mLastRelevantPoll, mNeedsPoll, mNumberConverted, mPendingOperations
Constructor and Description |
---|
GsmCdmaCallTracker(GsmCdmaPhone phone) |
checkForTestEmergencyNumber, convertNumberIfNecessary, getHoConnection, handleRadioAvailable, isCommandExceptionRadioNotAvailable, notifySrvccState, obtainNoPollCompleteMessage, pollCallsAfterDelay, pollCallsWhenSafe
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
public static final int MAX_CONNECTIONS_GSM
public GsmCdmaCall mRingingCall
public GsmCdmaCall mForegroundCall
public GsmCdmaCall mBackgroundCall
public PhoneConstants.State mState
public GsmCdmaCallTracker(GsmCdmaPhone phone)
public void updatePhoneType()
protected void finalize()
Object
finalize
method to dispose of
system resources or to perform other cleanup.
The general contract of finalize
is that it is invoked
if and when the JavaTM virtual
machine has determined that there is no longer any
means by which this object can be accessed by any thread that has
not yet died, except as a result of an action taken by the
finalization of some other object or class which is ready to be
finalized. The finalize
method may take any action, including
making this object available again to other threads; the usual purpose
of finalize
, however, is to perform cleanup actions before
the object is irrevocably discarded. For example, the finalize method
for an object that represents an input/output connection might perform
explicit I/O transactions to break the connection before the object is
permanently discarded.
The finalize
method of class Object
performs no
special action; it simply returns normally. Subclasses of
Object
may override this definition.
The Java programming language does not guarantee which thread will
invoke the finalize
method for any given object. It is
guaranteed, however, that the thread that invokes finalize will not
be holding any user-visible synchronization locks when finalize is
invoked. If an uncaught exception is thrown by the finalize method,
the exception is ignored and finalization of that object terminates.
After the finalize
method has been invoked for an object, no
further action is taken until the Java virtual machine has again
determined that there is no longer any means by which this object can
be accessed by any thread that has not yet died, including possible
actions by other objects or classes which are ready to be finalized,
at which point the object may be discarded.
The finalize
method is never invoked more than once by a Java
virtual machine for any given object.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.
public void registerForVoiceCallStarted(Handler h, int what, Object obj)
registerForVoiceCallStarted
in class CallTracker
public void unregisterForVoiceCallStarted(Handler h)
unregisterForVoiceCallStarted
in class CallTracker
public void registerForVoiceCallEnded(Handler h, int what, Object obj)
registerForVoiceCallEnded
in class CallTracker
public void unregisterForVoiceCallEnded(Handler h)
unregisterForVoiceCallEnded
in class CallTracker
public void unregisterForCallWaiting(Handler h)
public Connection dial(String dialString, int clirMode, UUSInfo uusInfo, Bundle intentExtras) throws CallStateException
CallStateException
public void setIsInEmergencyCall()
public Connection dial(String dialString) throws CallStateException
CallStateException
public Connection dial(String dialString, UUSInfo uusInfo, Bundle intentExtras) throws CallStateException
CallStateException
public void acceptCall() throws CallStateException
CallStateException
public void rejectCall() throws CallStateException
CallStateException
public void switchWaitingOrHoldingAndActive() throws CallStateException
CallStateException
public void conference()
public void explicitCallTransfer()
public void clearDisconnected()
public boolean canConference()
public boolean canTransfer()
protected void handlePollCalls(AsyncResult ar)
handlePollCalls
in class CallTracker
public void hangup(GsmCdmaConnection conn) throws CallStateException
CallStateException
public void separate(GsmCdmaConnection conn) throws CallStateException
CallStateException
public void setMute(boolean mute)
public boolean getMute()
public void hangup(GsmCdmaCall call) throws CallStateException
CallStateException
public void hangupWaitingOrBackground()
public void hangupForegroundResumeBackground()
public void hangupConnectionByIndex(GsmCdmaCall call, int index) throws CallStateException
CallStateException
public void hangupAllConnections(GsmCdmaCall call)
public GsmCdmaConnection getConnectionByIndex(GsmCdmaCall call, int index) throws CallStateException
CallStateException
public void handleMessage(Message msg)
Handler
handleMessage
in class CallTracker
public boolean isInEmergencyCall()
public GsmCdmaPhone getPhone()
protected void log(String msg)
log
in class CallTracker
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in class CallTracker
public PhoneConstants.State getState()
getState
in class CallTracker
public int getMaxConnectionsPerCall()