Methods Summary |
---|
public abstract java.util.List | getConnections()Do not modify the List result!!! This list is not yours to keep
It will change across event loop iterations top
|
public long | getEarliestConnectTime()
long time = Long.MAX_VALUE;
List<Connection> l = getConnections();
if (l.size() == 0) {
return 0;
}
for (int i = 0, s = l.size() ; i < s ; i++) {
Connection c = l.get(i);
long t;
t = c.getConnectTime();
time = t < time ? t : time;
}
return time;
|
public Connection | getEarliestConnection()Returns the Connection associated with this Call that was created
first, or null if there are no Connections in this Call
List<Connection> l;
long time = Long.MAX_VALUE;
Connection c;
Connection earliest = null;
l = getConnections();
if (l.size() == 0) {
return null;
}
for (int i = 0, s = l.size() ; i < s ; i++) {
c = l.get(i);
long t;
t = c.getCreateTime();
if (t < time) {
earliest = c;
time = t;
}
}
return earliest;
|
public long | getEarliestCreateTime()
List<Connection> l;
long time = Long.MAX_VALUE;
l = getConnections();
if (l.size() == 0) {
return 0;
}
for (int i = 0, s = l.size() ; i < s ; i++) {
Connection c = l.get(i);
long t;
t = c.getCreateTime();
time = t < time ? t : time;
}
return time;
|
public Connection | getLatestConnection()Returns the Connection associated with this Call that was created
last, or null if there are no Connections in this Call
List<Connection> l = getConnections();
if (l.size() == 0) {
return null;
}
long time = 0;
Connection latest = null;
for (int i = 0, s = l.size() ; i < s ; i++) {
Connection c = l.get(i);
long t = c.getCreateTime();
if (t > time) {
latest = c;
time = t;
}
}
return latest;
|
public abstract Phone | getPhone()
|
public com.android.internal.telephony.Call$State | getState()getState
return mState;
|
public abstract void | hangup()
|
public void | hangupIfAlive()Hangup call if it is alive
if (getState().isAlive()) {
try {
hangup();
} catch (CallStateException ex) {
Rlog.w(LOG_TAG, " hangupIfActive: caught " + ex);
}
}
|
public boolean | hasConnection(Connection c)hasConnection
/* Instance Methods */
return c.getCall() == this;
|
public boolean | hasConnections()hasConnections
List<Connection> connections = getConnections();
if (connections == null) {
return false;
}
return connections.size() > 0;
|
public boolean | isDialingOrAlerting()
return getState().isDialing();
|
public boolean | isGeneric()To indicate if the connection information is accurate
or not. false means accurate. Only used for CDMA.
return mIsGeneric;
|
public boolean | isIdle()isIdle
FIXME rename
return !getState().isAlive();
|
public abstract boolean | isMultiparty()
|
public boolean | isRinging()
return getState().isRinging();
|
public void | setGeneric(boolean generic)Set the generic instance variable
mIsGeneric = generic;
|
public static com.android.internal.telephony.Call$State | stateFromDCState(DriverCall.State dcState)
switch (dcState) {
case ACTIVE: return State.ACTIVE;
case HOLDING: return State.HOLDING;
case DIALING: return State.DIALING;
case ALERTING: return State.ALERTING;
case INCOMING: return State.INCOMING;
case WAITING: return State.WAITING;
default: throw new RuntimeException ("illegal call state:" + dcState);
}
|