summaryrefslogtreecommitdiff
path: root/telephony/java/com/android/internal/telephony/Call.java
diff options
context:
space:
mode:
Diffstat (limited to 'telephony/java/com/android/internal/telephony/Call.java')
-rw-r--r--telephony/java/com/android/internal/telephony/Call.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/telephony/java/com/android/internal/telephony/Call.java b/telephony/java/com/android/internal/telephony/Call.java
index 75485e0fd5ad..70471b634153 100644
--- a/telephony/java/com/android/internal/telephony/Call.java
+++ b/telephony/java/com/android/internal/telephony/Call.java
@@ -40,13 +40,13 @@ public abstract class Call {
}
}
-
+
/* Instance Variables */
-
+
public State state = State.IDLE;
-
-
+
+
/* Instance Methods */
/** Do not modify the List result!!! This list is not yours to keep
@@ -61,28 +61,28 @@ public abstract class Call {
/**
* hasConnection
- *
+ *
* @param c a Connection object
* @return true if the call contains the connection object passed in
*/
public boolean hasConnection(Connection c) {
return c.getCall() == this;
}
-
+
/**
* hasConnections
* @return true if the call contains one or more connections
*/
public boolean hasConnections() {
List connections = getConnections();
-
+
if (connections == null) {
return false;
}
-
+
return connections.size() > 0;
}
-
+
/**
* getState
* @return state of class call
@@ -90,10 +90,10 @@ public abstract class Call {
public State getState() {
return state;
}
-
+
/**
* isIdle
- *
+ *
* FIXME rename
* @return true if the call contains only disconnected connections (if any)
*/
@@ -111,27 +111,27 @@ public abstract class Call {
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 long
getEarliestCreateTime() {
List l;