diff options
author | Tyler Gunn <tgunn@google.com> | 2015-01-12 09:02:01 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-01-12 09:02:01 -0800 |
commit | cd5d33c89f25b3bfe8989d55f05702d0970c13b4 (patch) | |
tree | de152360f527e8080c703c30c9a29c9b827e323b /telecomm/java/android/telecom/ParcelableConference.java | |
parent | 1eee52b1aa0ba0cc05ac513d0fa91de9ee643faf (diff) | |
download | frameworks_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/ParcelableConference.java')
-rw-r--r-- | telecomm/java/android/telecom/ParcelableConference.java | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/ParcelableConference.java b/telecomm/java/android/telecom/ParcelableConference.java index c4e11d6..dcc2713 100644 --- a/telecomm/java/android/telecom/ParcelableConference.java +++ b/telecomm/java/android/telecom/ParcelableConference.java @@ -32,6 +32,7 @@ public final class ParcelableConference implements Parcelable { private int mState; private int mConnectionCapabilities; private List<String> mConnectionIds; + private long mConnectTimeMillis; public ParcelableConference( PhoneAccountHandle phoneAccount, @@ -42,6 +43,17 @@ public final class ParcelableConference implements Parcelable { mState = state; mConnectionCapabilities = connectionCapabilities; mConnectionIds = connectionIds; + mConnectTimeMillis = Conference.CONNECT_TIME_NOT_SPECIFIED; + } + + public ParcelableConference( + PhoneAccountHandle phoneAccount, + int state, + int connectionCapabilities, + List<String> connectionIds, + long connectTimeMillis) { + this(phoneAccount, state, connectionCapabilities, connectionIds); + mConnectTimeMillis = connectTimeMillis; } @Override @@ -53,6 +65,8 @@ public final class ParcelableConference implements Parcelable { .append(Connection.stateToString(mState)) .append(", capabilities: ") .append(Connection.capabilitiesToString(mConnectionCapabilities)) + .append(", connectTime: ") + .append(mConnectTimeMillis) .append(", children: ") .append(mConnectionIds) .toString(); @@ -74,6 +88,10 @@ public final class ParcelableConference implements Parcelable { return mConnectionIds; } + public long getConnectTimeMillis() { + return mConnectTimeMillis; + } + public static final Parcelable.Creator<ParcelableConference> CREATOR = new Parcelable.Creator<ParcelableConference> () { @Override @@ -84,8 +102,10 @@ public final class ParcelableConference implements Parcelable { int capabilities = source.readInt(); List<String> connectionIds = new ArrayList<>(2); source.readList(connectionIds, classLoader); + long connectTimeMillis = source.readLong(); - return new ParcelableConference(phoneAccount, state, capabilities, connectionIds); + return new ParcelableConference(phoneAccount, state, capabilities, connectionIds, + connectTimeMillis); } @Override @@ -107,5 +127,6 @@ public final class ParcelableConference implements Parcelable { destination.writeInt(mState); destination.writeInt(mConnectionCapabilities); destination.writeList(mConnectionIds); + destination.writeLong(mConnectTimeMillis); } } |