From 2f37d778d6d563676407e5737fa436f4d5b707bb Mon Sep 17 00:00:00 2001 From: Alvin Dey Date: Fri, 18 May 2018 23:16:10 +0530 Subject: IMS: Propagate RTT capability of the called party to UI Propagate RTT capability of the called party to UI. Test: Manual Bug: 80063808 Change-Id: Ia7d99e7b1f2e87ac7fb703333f5a4c617321e4ef --- telecomm/java/android/telecom/Call.java | 11 ++++++++++- telecomm/java/android/telecom/Connection.java | 12 +++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) mode change 100755 => 100644 telecomm/java/android/telecom/Call.java (limited to 'telecomm/java/android') diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java old mode 100755 new mode 100644 index 1238e7b69a87..babb709b1042 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -485,8 +485,14 @@ public final class Call { */ public static final int CAPABILITY_TRANSFER_CONSULTATIVE = 0x08000000; + /** + * Indicates whether the remote party supports RTT or not to the UI. + */ + + public static final int CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT = 0x10000000; + //****************************************************************************************** - // Next CAPABILITY value: 0x10000000 + // Next CAPABILITY value: 0x20000000 //****************************************************************************************** /** @@ -728,6 +734,9 @@ public final class Call { if (can(capabilities, CAPABILITY_TRANSFER_CONSULTATIVE)) { builder.append(" CAPABILITY_TRANSFER_CONSULTATIVE"); } + if (can(capabilities, CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT)) { + builder.append(" CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT"); + } builder.append("]"); return builder.toString(); } diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index e55720c6dc7e..86a16e732e37 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -417,8 +417,14 @@ public abstract class Connection extends Conferenceable { */ public static final int CAPABILITY_TRANSFER_CONSULTATIVE = 0x10000000; + /** + * Indicates whether the remote party supports RTT or not to the UI. + */ + + public static final int CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT = 0x20000000; + //********************************************************************************************** - // Next CAPABILITY value: 0x20000000 + // Next CAPABILITY value: 0x40000000 //********************************************************************************************** /** @@ -1036,6 +1042,10 @@ public abstract class Connection extends Conferenceable { == CAPABILITY_TRANSFER_CONSULTATIVE) { builder.append(isLong ? " CAPABILITY_TRANSFER_CONSULTATIVE" : " sup_cTrans"); } + if ((capabilities & CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT) + == CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT) { + builder.append(isLong ? " CAPABILITY_REMOTE_PARTY_SUPPORTS_RTT" : " sup_rtt"); + } builder.append("]"); return builder.toString(); } -- cgit v1.2.3-59-g8ed1b