FileDocCategorySizeDatePackage
Call.javaAPI DocAndroid 1.5 API4161Wed May 06 22:42:00 BST 2009com.android.internal.telephony

Call

public abstract class Call extends Object
{@hide}

Fields Summary
Constructors Summary
Methods Summary
public abstract java.util.ListgetConnections()
Do not modify the List result!!! This list is not yours to keep It will change across event loop iterations top

public longgetEarliestConnectTime()

        List 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 = (Connection) l.get(i);
            long t;

            t = c.getConnectTime();

            time = t < time ? t : time;
        }

        return time;
    
public ConnectiongetEarliestConnection()
Returns the Connection associated with this Call that was created first, or null if there are no Connections in this Call

        List 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 = (Connection) l.get(i);
            long t;
            
            t = c.getCreateTime();
            
            if (t < time) {
                earliest = c;
            }
        }
        
        return earliest;
    
public longgetEarliestCreateTime()

        List 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 = (Connection) l.get(i);
            long t;

            t = c.getCreateTime();

            time = t < time ? t : time;
        }

        return time;
    
public abstract PhonegetPhone()

public abstract com.android.internal.telephony.Call$StategetState()

public abstract voidhangup()

public booleanhasConnection(Connection c)
hasConnection

param
c a Connection object
return
true if the call contains the connection object passed in

        return c.getCall() == this;
    
public booleanhasConnections()
hasConnections

return
true if the call contains one or more connections

        List connections = getConnections();
        
        if (connections == null) {
            return false;
        }
        
        return connections.size() > 0;
    
public booleanisDialingOrAlerting()

        return getState().isDialing();
    
public booleanisIdle()
isIdle FIXME rename

return
true if the call contains only disconnected connections (if any)

        return !getState().isAlive();
    
public abstract booleanisMultiparty()

public booleanisRinging()

        return getState().isRinging();