summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorNivedita Sarkar <nsarkar@codeaurora.org>2015-07-07 15:32:49 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:28:43 -0600
commit3f50dab94f6c810beba15a82a0416f9b855ac9eb (patch)
tree1284359ab9894e53c18166234f5bff8293de2a11 /telecomm
parent1f49807dca63fc24398699589ddd48c824f6cc2e (diff)
downloadframeworks_base-3f50dab94f6c810beba15a82a0416f9b855ac9eb.zip
frameworks_base-3f50dab94f6c810beba15a82a0416f9b855ac9eb.tar.gz
frameworks_base-3f50dab94f6c810beba15a82a0416f9b855ac9eb.tar.bz2
IMS: Capabilities propagation
Propagating capabilities for voice and video, based on which upgrade/downgrade will be allowed. Change-Id: I75e0a5b9e5ad2d970003a4691b6fc0ac0dcfe9e0 CRs-Fixed: 800130
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecom/Call.java20
-rw-r--r--telecomm/java/android/telecom/Connection.java20
2 files changed, 38 insertions, 2 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java
index 5301a98..29f3061 100644
--- a/telecomm/java/android/telecom/Call.java
+++ b/telecomm/java/android/telecom/Call.java
@@ -213,13 +213,25 @@ public final class Call {
public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000;
/**
+ * Local device supports downgrading a video call to a voice-only call.
+ * @hide
+ */
+ public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL = 0x00800000;
+
+ /**
+ * Remote device supports downgrading a video call to a voice-only call.
+ * @hide
+ */
+ public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE = 0x01000000;
+
+ /**
* Add participant in an active or conference call option
* @hide
*/
public static final int CAPABILITY_ADD_PARTICIPANT = 0x02000000;
//******************************************************************************************
- // Next CAPABILITY value: 0x00004000
+ // Next CAPABILITY value: 0x04000000
//******************************************************************************************
/**
@@ -333,6 +345,12 @@ public final class Call {
if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_TX)) {
builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_TX");
}
+ if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL)) {
+ builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL");
+ }
+ if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE)) {
+ builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE");
+ }
if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL)) {
builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL");
}
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index 7267f15..9c2cfd5 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -260,8 +260,20 @@ public abstract class Connection extends Conferenceable {
*/
public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000;
+ /**
+ * Local device supports voice telephony.
+ * @hide
+ */
+ public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL = 0x00800000;
+
+ /**
+ * Remote device supports voice telephony.
+ * @hide
+ */
+ public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE = 0x01000000;
+
//**********************************************************************************************
- // Next CAPABILITY value: 0x00400000
+ // Next CAPABILITY value: 0x04000000
//**********************************************************************************************
/**
@@ -383,6 +395,12 @@ public abstract class Connection extends Conferenceable {
if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL)) {
builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL");
}
+ if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL)) {
+ builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL");
+ }
+ if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE)) {
+ builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE");
+ }
if (can(capabilities, CAPABILITY_HIGH_DEF_AUDIO)) {
builder.append(" CAPABILITY_HIGH_DEF_AUDIO");
}