public class ImsPhoneCall extends Call
Call.SrvccState, Call.State
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_BACKGROUND |
static String |
CONTEXT_FOREGROUND |
static String |
CONTEXT_HANDOVER |
static String |
CONTEXT_RINGING |
static String |
CONTEXT_UNKNOWN
Instance Variables
|
mConnections, mState
Constructor and Description |
---|
ImsPhoneCall(ImsPhoneCallTracker owner,
String context) |
Modifier and Type | Method and Description |
---|---|
void |
attach(Connection conn) |
void |
attach(Connection conn,
Call.State state) |
void |
attachFake(Connection conn,
Call.State state) |
boolean |
connectionDisconnected(ImsPhoneConnection conn)
Called by ImsPhoneConnection when it has disconnected
|
void |
detach(ImsPhoneConnection conn) |
void |
dispose() |
List<ConferenceParticipant> |
getConferenceParticipants()
getConferenceParticipants
|
List<Connection> |
getConnections()
Overridden from Call
|
ImsCall |
getImsCall()
Retrieves the
ImsCall for the current ImsPhoneCall . |
Phone |
getPhone() |
void |
hangup()
Please note: if this is the foreground call and a
background call exists, the background call will be resumed.
|
boolean |
isMultiparty() |
void |
switchWith(ImsPhoneCall that) |
String |
toString()
Returns a string representation of the object.
|
boolean |
update(ImsPhoneConnection conn,
ImsCall imsCall,
Call.State state) |
clearDisconnected, getEarliestConnection, getEarliestConnectTime, getEarliestCreateTime, getLatestConnection, getState, hangupIfAlive, hasConnection, hasConnections, isDialingOrAlerting, isIdle, isRinging, setState, stateFromDCState
public static final String CONTEXT_UNKNOWN
public static final String CONTEXT_RINGING
public static final String CONTEXT_FOREGROUND
public static final String CONTEXT_BACKGROUND
public static final String CONTEXT_HANDOVER
public ImsPhoneCall(ImsPhoneCallTracker owner, String context)
public void dispose()
public List<Connection> getConnections()
getConnections
in class Call
public boolean isMultiparty()
isMultiparty
in class Call
public void hangup() throws CallStateException
hangup
in class Call
CallStateException
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public List<ConferenceParticipant> getConferenceParticipants()
Call
getConferenceParticipants
in class Call
public void attach(Connection conn)
public void attach(Connection conn, Call.State state)
public void attachFake(Connection conn, Call.State state)
public boolean connectionDisconnected(ImsPhoneConnection conn)
public void detach(ImsPhoneConnection conn)
public ImsCall getImsCall()
ImsCall
for the current ImsPhoneCall
.
Marked as VisibleForTesting
so that the
TelephonyTester
class can inject a test conference
event package into a regular ongoing IMS call.
ImsCall
.public boolean update(ImsPhoneConnection conn, ImsCall imsCall, Call.State state)
public void switchWith(ImsPhoneCall that)