summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom/Conference.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-12 09:02:01 -0800
committerTyler Gunn <tgunn@google.com>2015-01-12 09:02:01 -0800
commitcd5d33c89f25b3bfe8989d55f05702d0970c13b4 (patch)
treede152360f527e8080c703c30c9a29c9b827e323b /telecomm/java/android/telecom/Conference.java
parent1eee52b1aa0ba0cc05ac513d0fa91de9ee643faf (diff)
downloadframeworks_base-cd5d33c89f25b3bfe8989d55f05702d0970c13b4.zip
frameworks_base-cd5d33c89f25b3bfe8989d55f05702d0970c13b4.tar.gz
frameworks_base-cd5d33c89f25b3bfe8989d55f05702d0970c13b4.tar.bz2
Fix for call timer resetting when starting IMS conference call. 1/4
- Added support in Conference for specifying the connect time when the conference is created. Bug: 18959443 Change-Id: I501edde3b62f6bf021eb7455089e80626013da12
Diffstat (limited to 'telecomm/java/android/telecom/Conference.java')
-rw-r--r--telecomm/java/android/telecom/Conference.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Conference.java b/telecomm/java/android/telecom/Conference.java
index e764cd5..33bbb29 100644
--- a/telecomm/java/android/telecom/Conference.java
+++ b/telecomm/java/android/telecom/Conference.java
@@ -32,6 +32,12 @@ import java.util.concurrent.CopyOnWriteArraySet;
@SystemApi
public abstract class Conference implements IConferenceable {
+ /**
+ * Used to indicate that the conference connection time is not specified. If not specified,
+ * Telecom will set the connect time.
+ */
+ public static long CONNECT_TIME_NOT_SPECIFIED = 0;
+
/** @hide */
public abstract static class Listener {
public void onStateChanged(Conference conference, int oldState, int newState) {}
@@ -59,6 +65,7 @@ public abstract class Conference implements IConferenceable {
private DisconnectCause mDisconnectCause;
private int mConnectionCapabilities;
private String mDisconnectMessage;
+ private long mConnectTimeMillis = CONNECT_TIME_NOT_SPECIFIED;
private final Connection.Listener mConnectionDeathListener = new Connection.Listener() {
@Override
@@ -422,6 +429,26 @@ public abstract class Conference implements IConferenceable {
}
/**
+ * Sets the connect time of the {@code Conference}.
+ *
+ * @param connectTimeMillis The connection time, in milliseconds.
+ */
+ public void setConnectTimeMillis(long connectTimeMillis) {
+ mConnectTimeMillis = connectTimeMillis;
+ }
+
+ /**
+ * Retrieves the connect time of the {@code Conference}, if specified. A value of
+ * {@link #CONNECT_TIME_NOT_SPECIFIED} indicates that Telecom should determine the start time
+ * of the conference.
+ *
+ * @return The time the {@code Conference} has been connected.
+ */
+ public long getConnectTimeMillis() {
+ return mConnectTimeMillis;
+ }
+
+ /**
* Inform this Conference that the state of its audio output has been changed externally.
*
* @param state The new audio state.