public class ImsExternalConnection extends Connection
ImsExternalCallState
instances.Modifier and Type | Class and Description |
---|---|
static interface |
ImsExternalConnection.Listener |
Connection.Capability, Connection.ListenerBase, Connection.PostDialListener, Connection.PostDialState
AUDIO_QUALITY_HIGH_DEFINITION, AUDIO_QUALITY_STANDARD, mAddress, mCause, mCnapName, mCnapNamePresentation, mConnectTime, mConnectTimeReal, mConvertedNumber, mCreateTime, mDialString, mDuration, mHoldingStartTime, mIsIncoming, mNextPostDialChar, mNumberConverted, mNumberPresentation, mOrigConnection, mPostDialState, mPostDialString, mPreHandoverState
Modifier | Constructor and Description |
---|---|
protected |
ImsExternalConnection(Phone phone,
int callId,
Uri address,
boolean isPullable) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ImsExternalConnection.Listener listener) |
void |
cancelPostDial()
Cancel any post
|
Call |
getCall() |
int |
getCallId() |
long |
getDisconnectTime()
Disconnect time in currentTimeMillis() format.
|
long |
getHoldDurationMillis()
If this connection is HOLDING, return the number of milliseconds
that it has been on hold for (approximately).
|
int |
getNumberPresentation()
Returns the caller id presentation type for incoming and waiting calls
|
int |
getPreciseDisconnectCause()
Returns the CallFail reason provided by the RIL with the result of
RIL_REQUEST_LAST_CALL_FAIL_CAUSE
|
UUSInfo |
getUUSInfo()
Returns the User to User Signaling (UUS) information associated with
incoming and waiting calls
|
String |
getVendorDisconnectCause()
Returns a string disconnect cause which is from vendor.
|
void |
hangup()
Hangup individual Connection
|
boolean |
isMultiparty()
Returns whether the original ImsPhoneConnection was a member
of a conference call
|
void |
proceedAfterWaitChar()
See Phone.setOnPostDialWaitCharacter()
|
void |
proceedAfterWildChar(String str)
See Phone.setOnPostDialWildCharacter()
|
void |
pullExternalCall()
Called by a
Connection to indicate that this call should be pulled
to the local device. |
void |
removeListener(ImsExternalConnection.Listener listener) |
void |
separate()
Separate this call from its owner Call and assigns it to a new Call
(eg if it is currently part of a Conference call
TODO: Throw exception?
|
void |
setActive()
Sets this external call as active.
|
void |
setExternalConnectionAddress(Uri address)
Sets the address of this external connection.
|
void |
setIsPullable(boolean isPullable)
Changes whether the call can be pulled or not.
|
void |
setTerminated()
Sets this external call as terminated.
|
String |
toString()
Build a human representation of a connection instance, suitable for debugging.
|
addCapability, addListener, addPostDialListener, clearPostDialListeners, clearUserData, getAddress, getAudioQuality, getCallSubstate, getCnapName, getCnapNamePresentation, getConferenceParticipants, getConnectionCapabilities, getConnectionExtras, getConnectTime, getConnectTimeReal, getCreateTime, getDisconnectCause, getDurationMillis, getHoldingStartTime, getOrigConnection, getOrigDialString, getPhoneType, getPostDialState, getPulledDialogId, getRemainingPostDialString, getState, getStateBeforeHandover, getTelecomCallId, getUserData, getVideoProvider, getVideoState, hasCapabilities, isActiveCallDisconnectedOnAnswer, isAlive, isConferenceHost, isIncoming, isMemberOfPeerConference, isPulledCall, isRinging, isWifi, migrateFrom, notifyPostDialListeners, notifyPostDialListenersNextChar, onCallPullFailed, onConferenceMergeFailed, onConnectionEvent, onDisconnect, onDisconnectConferenceParticipant, onExitedEcmMode, onHandoverToWifiFailed, removeCapability, removeListener, removePostDialListener, setActiveCallDisconnectedOnAnswer, setAllowAddCallDuringVideoCall, setAudioQuality, setCallSubstate, setConnectionCapabilities, setConnectionExtras, setConnectTime, setConverted, setIsPulledCall, setPulledDialogId, setTelecomCallId, setUserData, setVideoProvider, setVideoState, setWifi, shouldAllowAddCallDuringVideoCall, updateConferenceParticipants, updateMultipartyState
public int getCallId()
public Call getCall()
getCall
in class Connection
public long getDisconnectTime()
Connection
getDisconnectTime
in class Connection
public long getHoldDurationMillis()
Connection
getHoldDurationMillis
in class Connection
public String getVendorDisconnectCause()
Connection
getVendorDisconnectCause
in class Connection
public void hangup() throws CallStateException
Connection
hangup
in class Connection
CallStateException
public void separate() throws CallStateException
Connection
separate
in class Connection
CallStateException
public void proceedAfterWaitChar()
Connection
proceedAfterWaitChar
in class Connection
public void proceedAfterWildChar(String str)
Connection
proceedAfterWildChar
in class Connection
public void cancelPostDial()
Connection
cancelPostDial
in class Connection
public int getNumberPresentation()
Connection
getNumberPresentation
in class Connection
public UUSInfo getUUSInfo()
Connection
getUUSInfo
in class Connection
public int getPreciseDisconnectCause()
Connection
getPreciseDisconnectCause
in class Connection
public boolean isMultiparty()
Connection
isMultiparty
in class Connection
public void pullExternalCall()
Connection
to indicate that this call should be pulled
to the local device.
Informs all listeners, in this case ImsExternalCallTracker
, of the request to pull
the call.pullExternalCall
in class Connection
public void setActive()
public void setTerminated()
public void setIsPullable(boolean isPullable)
isPullable
- true
if the call can be pulled, false
otherwise.public void setExternalConnectionAddress(Uri address)
Uri
s are converted to a regular telephone number.address
- The address from the dialog event package.public void addListener(ImsExternalConnection.Listener listener)
public void removeListener(ImsExternalConnection.Listener listener)
public String toString()
toString
in class Connection