From cee9ea62b096e0b882e197fdb8d8b934795b02b8 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Thu, 24 Mar 2016 11:45:43 -0700 Subject: [PATCH] Add hidden capability to indicate account supports emergency video calls. This is used by Telephony to let Telecom know when emergency video calls are supported. Bug: 27484017 Change-Id: I317070b326e27e74d58afcb247746bdd2552d67b --- telecomm/java/android/telecom/PhoneAccount.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index b56ce736aef60..dbc2b0c9f8505 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -169,6 +169,15 @@ public final class PhoneAccount implements Parcelable { */ public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = 0x100; + /** + * Flag indicating that for this {@link PhoneAccount}, emergency video calling is allowed. + *

+ * When set, Telecom will allow emergency video calls to be placed. When not set, Telecom will + * convert all outgoing video calls to emergency numbers to audio-only. + * @hide + */ + public static final int CAPABILITY_EMERGENCY_VIDEO_CALLING = 0x200; + /** * URI scheme for telephone number URIs. */ @@ -731,6 +740,9 @@ public final class PhoneAccount implements Parcelable { if (hasCapabilities(CAPABILITY_PLACE_EMERGENCY_CALLS)) { sb.append("PlaceEmerg "); } + if (hasCapabilities(CAPABILITY_EMERGENCY_VIDEO_CALLING)) { + sb.append("EmergVideo "); + } if (hasCapabilities(CAPABILITY_SIM_SUBSCRIPTION)) { sb.append("SimSub "); }