diff options
author | Prerepa Viswanadham <dham@google.com> | 2015-04-12 21:46:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-12 21:46:15 +0000 |
commit | d4ea01b4aca807cc914a96addefcc2c64ce1a6f5 (patch) | |
tree | d25ed69b40cee4ad9750fcbf1bbfe1a8b5a1504a /telecomm/java/android/telecom/Call.java | |
parent | 85deeaabfab29c0c55d01a3555d1f3a3e253175c (diff) | |
parent | 57bf2a8a38e929f00f3323cf97a8ea7a9af900ce (diff) | |
download | frameworks_base-d4ea01b4aca807cc914a96addefcc2c64ce1a6f5.zip frameworks_base-d4ea01b4aca807cc914a96addefcc2c64ce1a6f5.tar.gz frameworks_base-d4ea01b4aca807cc914a96addefcc2c64ce1a6f5.tar.bz2 |
Merge "Merge commit 'e593d0a' into merge_work"
Diffstat (limited to 'telecomm/java/android/telecom/Call.java')
-rw-r--r-- | telecomm/java/android/telecom/Call.java | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index d682cdc..ba0aaf3 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -221,8 +221,14 @@ public final class Call { */ public static final int CAPABILITY_SPEED_UP_MT_AUDIO = 0x00040000; - //********************************************************************************************** - // Next CAPABILITY value: 0x00080000 + /** + * Call type can be modified for IMS call + * @hide + */ + public static final int CAPABILITY_CAN_UPGRADE_TO_VIDEO = 0x00080000; + + //****************************************************************************************** + // Next CAPABILITY value: 0x00100000 //****************************************************************************************** private final Uri mHandle; @@ -238,6 +244,7 @@ public final class Call { private final int mVideoState; private final StatusHints mStatusHints; private final Bundle mExtras; + private final int mCallSubstate; /** * Whether the supplied capabilities supports the specified capability. @@ -325,6 +332,9 @@ public final class Call { if (can(capabilities, CAPABILITY_SPEED_UP_MT_AUDIO)) { builder.append(" CAPABILITY_SPEED_UP_MT_AUDIO"); } + if (can(capabilities, CAPABILITY_CAN_UPGRADE_TO_VIDEO)) { + builder.append(" CAPABILITY_CAN_UPGRADE_TO_VIDEO"); + } builder.append("]"); return builder.toString(); } @@ -430,6 +440,14 @@ public final class Call { return mExtras; } + /** + * @return The substate of the {@code Call}. + * @hide + */ + public int getCallSubstate() { + return mCallSubstate; + } + @Override public boolean equals(Object o) { if (o instanceof Details) { @@ -448,7 +466,8 @@ public final class Call { Objects.equals(mGatewayInfo, d.mGatewayInfo) && Objects.equals(mVideoState, d.mVideoState) && Objects.equals(mStatusHints, d.mStatusHints) && - Objects.equals(mExtras, d.mExtras); + Objects.equals(mExtras, d.mExtras) && + Objects.equals(mCallSubstate, d.mCallSubstate); } return false; } @@ -468,7 +487,8 @@ public final class Call { Objects.hashCode(mGatewayInfo) + Objects.hashCode(mVideoState) + Objects.hashCode(mStatusHints) + - Objects.hashCode(mExtras); + Objects.hashCode(mExtras) + + Objects.hashCode(mCallSubstate); } /** {@hide} */ @@ -485,7 +505,8 @@ public final class Call { GatewayInfo gatewayInfo, int videoState, StatusHints statusHints, - Bundle extras) { + Bundle extras, + int callSubstate) { mHandle = handle; mHandlePresentation = handlePresentation; mCallerDisplayName = callerDisplayName; @@ -499,6 +520,7 @@ public final class Call { mVideoState = videoState; mStatusHints = statusHints; mExtras = extras; + mCallSubstate = callSubstate; } } @@ -879,7 +901,8 @@ public final class Call { parcelableCall.getGatewayInfo(), parcelableCall.getVideoState(), parcelableCall.getStatusHints(), - parcelableCall.getExtras()); + parcelableCall.getExtras(), + parcelableCall.getCallSubstate()); boolean detailsChanged = !Objects.equals(mDetails, details); if (detailsChanged) { mDetails = details; |