From c11d44b71a3fc473f9c47fb39d0930f946986400 Mon Sep 17 00:00:00 2001 From: Ravindra Date: Fri, 31 Jul 2015 14:16:14 +0530 Subject: Add voice privacy capability Define voice privacy capability for the connection and for the call. Change-Id: I3b2f5fa776f0c869941f49b9c9b20751ddad058a --- telecomm/java/android/telecom/Call.java | 9 +++++++++ telecomm/java/android/telecom/Connection.java | 5 +++++ 2 files changed, 14 insertions(+) (limited to 'telecomm') diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index f149f24..8e2af98 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -206,6 +206,12 @@ public final class Call { */ public static final int CAPABILITY_CAN_PAUSE_VIDEO = 0x00100000; + /** + * Call has voice privacy capability. + * @hide + */ + public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000; + //****************************************************************************************** // Next CAPABILITY value: 0x00004000 //****************************************************************************************** @@ -333,6 +339,9 @@ public final class Call { if (can(capabilities, CAPABILITY_CAN_PAUSE_VIDEO)) { builder.append(" CAPABILITY_CAN_PAUSE_VIDEO"); } + if (can(capabilities, CAPABILITY_VOICE_PRIVACY)) { + builder.append(" CAPABILITY_VOICE_PRIVACY"); + } builder.append("]"); return builder.toString(); } diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index df69f23..a52ea3f 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -247,6 +247,11 @@ public abstract class Connection extends Conferenceable { * @hide */ public static final int CAPABILITY_CONFERENCE_HAS_NO_CHILDREN = 0x00200000; + /** + * Call has voice privacy capability. + * @hide + */ + public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000; //********************************************************************************************** // Next CAPABILITY value: 0x00400000 -- cgit v1.1