Methods Summary |
---|
void | attach(com.android.internal.telephony.Connection conn, com.android.internal.telephony.DriverCall dc)
mConnections.add(conn);
mState = stateFromDCState (dc.state);
|
void | attachFake(com.android.internal.telephony.Connection conn, State state)
mConnections.add(conn);
mState = state;
|
void | clearDisconnected()Called when it's time to clean up disconnected Connection objects
for (int i = mConnections.size() - 1 ; i >= 0 ; i--) {
CdmaConnection cn = (CdmaConnection)mConnections.get(i);
if (cn.getState() == State.DISCONNECTED) {
mConnections.remove(i);
}
}
if (mConnections.size() == 0) {
mState = State.IDLE;
}
|
boolean | connectionDisconnected(CdmaConnection conn)Called by CdmaConnection when it has disconnected
if (mState != State.DISCONNECTED) {
/* If only disconnected connections remain, we are disconnected*/
boolean hasOnlyDisconnectedConnections = true;
for (int i = 0, s = mConnections.size() ; i < s; i ++) {
if (mConnections.get(i).getState()
!= State.DISCONNECTED
) {
hasOnlyDisconnectedConnections = false;
break;
}
}
if (hasOnlyDisconnectedConnections) {
mState = State.DISCONNECTED;
return true;
}
}
return false;
|
void | detach(CdmaConnection conn)
mConnections.remove(conn);
if (mConnections.size() == 0) {
mState = State.IDLE;
}
|
public void | dispose()
|
public java.util.List | getConnections()Overridden from Call
// FIXME should return Collections.unmodifiableList();
return mConnections;
|
public com.android.internal.telephony.Phone | getPhone()
return mOwner.mPhone;
|
public void | hangup()Please note: if this is the foreground call and a
background call exists, the background call will be resumed
because an AT+CHLD=1 will be sent
mOwner.hangup(this);
|
boolean | isFull()
return mConnections.size() == CdmaCallTracker.MAX_CONNECTIONS_PER_CALL;
|
public boolean | isMultiparty()
return mConnections.size() > 1;
|
void | onHangupLocal()Called when this Call is being hung up locally (eg, user pressed "end")
Note that at this point, the hangup request has been dispatched to the radio
but no response has yet been received so update() has not yet been called
for (int i = 0, s = mConnections.size(); i < s; i++) {
CdmaConnection cn = (CdmaConnection)mConnections.get(i);
cn.onHangupLocal();
}
mState = State.DISCONNECTING;
|
public java.lang.String | toString()
return mState.toString();
|
boolean | update(CdmaConnection conn, com.android.internal.telephony.DriverCall dc)
State newState;
boolean changed = false;
newState = stateFromDCState(dc.state);
if (newState != mState) {
mState = newState;
changed = true;
}
return changed;
|