diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-11 17:22:03 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-15 10:33:22 -0700 |
commit | 85f5d4263dcc31a9d6da46d774081a639b34e553 (patch) | |
tree | b2a04f908e4f51867133eb4dfd31c4c58f7028af /telecomm | |
parent | 0b23e20be6121286567726e995cf3617c022a844 (diff) | |
download | frameworks_base-85f5d4263dcc31a9d6da46d774081a639b34e553.zip frameworks_base-85f5d4263dcc31a9d6da46d774081a639b34e553.tar.gz frameworks_base-85f5d4263dcc31a9d6da46d774081a639b34e553.tar.bz2 |
Add VideoState member variable to InCallCall.
Bug: 16015750
Change-Id: Idee72075e992a94423a3ca7882959fbde03c4434
Diffstat (limited to 'telecomm')
-rw-r--r-- | telecomm/java/android/telecomm/Call.java | 14 | ||||
-rw-r--r-- | telecomm/java/android/telecomm/InCallCall.java | 18 |
2 files changed, 26 insertions, 6 deletions
diff --git a/telecomm/java/android/telecomm/Call.java b/telecomm/java/android/telecomm/Call.java index ba7e253..b17f929 100644 --- a/telecomm/java/android/telecomm/Call.java +++ b/telecomm/java/android/telecomm/Call.java @@ -73,6 +73,7 @@ public final class Call { private final String mDisconnectCauseMsg; private final long mConnectTimeMillis; private final GatewayInfo mGatewayInfo; + private final int mVideoState; /** * @return The handle (e.g., phone number) to which the {@code Call} is currently @@ -167,7 +168,8 @@ public final class Call { Objects.equals(mDisconnectCauseCode, d.mDisconnectCauseCode) && Objects.equals(mDisconnectCauseMsg, d.mDisconnectCauseMsg) && Objects.equals(mConnectTimeMillis, d.mConnectTimeMillis) && - Objects.equals(mGatewayInfo, d.mGatewayInfo); + Objects.equals(mGatewayInfo, d.mGatewayInfo) && + Objects.equals(mVideoState, d.mVideoState); } return false; } @@ -184,7 +186,8 @@ public final class Call { Objects.hashCode(mDisconnectCauseCode) + Objects.hashCode(mDisconnectCauseMsg) + Objects.hashCode(mConnectTimeMillis) + - Objects.hashCode(mGatewayInfo); + Objects.hashCode(mGatewayInfo) + + Objects.hashCode(mVideoState); } /** {@hide} */ @@ -198,7 +201,8 @@ public final class Call { int disconnectCauseCode, String disconnectCauseMsg, long connectTimeMillis, - GatewayInfo gatewayInfo) { + GatewayInfo gatewayInfo, + int videoState) { mHandle = handle; mHandlePresentation = handlePresentation; mCallerDisplayName = callerDisplayName; @@ -209,6 +213,7 @@ public final class Call { mDisconnectCauseMsg = disconnectCauseMsg; mConnectTimeMillis = connectTimeMillis; mGatewayInfo = gatewayInfo; + mVideoState = videoState; } } @@ -545,7 +550,8 @@ public final class Call { inCallCall.getDisconnectCauseCode(), inCallCall.getDisconnectCauseMsg(), inCallCall.getConnectTimeMillis(), - inCallCall.getGatewayInfo()); + inCallCall.getGatewayInfo(), + inCallCall.getVideoState()); boolean detailsChanged = !Objects.equals(mDetails, details); if (detailsChanged) { mDetails = details; diff --git a/telecomm/java/android/telecomm/InCallCall.java b/telecomm/java/android/telecomm/InCallCall.java index 355c260..db8395c 100644 --- a/telecomm/java/android/telecomm/InCallCall.java +++ b/telecomm/java/android/telecomm/InCallCall.java @@ -50,6 +50,7 @@ public final class InCallCall implements Parcelable { private final String mParentCallId; private final List<String> mChildCallIds; private final StatusHints mStatusHints; + private final int mVideoState; /** @hide */ public InCallCall( @@ -69,7 +70,8 @@ public final class InCallCall implements Parcelable { ICallVideoProvider callVideoProvider, String parentCallId, List<String> childCallIds, - StatusHints statusHints) { + StatusHints statusHints, + int videoState) { mId = id; mState = state; mDisconnectCauseCode = disconnectCauseCode; @@ -87,6 +89,7 @@ public final class InCallCall implements Parcelable { mParentCallId = parentCallId; mChildCallIds = childCallIds; mStatusHints = statusHints; + mVideoState = videoState; } /** The unique ID of the call. */ @@ -204,6 +207,14 @@ public final class InCallCall implements Parcelable { return mStatusHints; } + /** + * The video state. + * @return The video state of the call. + */ + public int getVideoState() { + return mVideoState; + } + /** Responsible for creating InCallCall objects for deserialized Parcels. */ public static final Parcelable.Creator<InCallCall> CREATOR = new Parcelable.Creator<InCallCall> () { @@ -230,10 +241,12 @@ public final class InCallCall implements Parcelable { List<String> childCallIds = new ArrayList<>(); source.readList(childCallIds, classLoader); StatusHints statusHints = source.readParcelable(classLoader); + int videoState = source.readInt(); return new InCallCall(id, state, disconnectCauseCode, disconnectCauseMsg, cannedSmsResponses, capabilities, connectTimeMillis, handle, handlePresentation, callerDisplayName, callerDisplayNamePresentation, gatewayInfo, - account, callVideoProvider, parentCallId, childCallIds, statusHints); + account, callVideoProvider, parentCallId, childCallIds, statusHints, + videoState); } @Override @@ -269,6 +282,7 @@ public final class InCallCall implements Parcelable { destination.writeString(mParentCallId); destination.writeList(mChildCallIds); destination.writeParcelable(mStatusHints, 0); + destination.writeInt(mVideoState); } @Override |