diff --git a/api/current.txt b/api/current.txt index b0d0646b4f3a1..6f023c17e30b3 100644 --- a/api/current.txt +++ b/api/current.txt @@ -30334,6 +30334,7 @@ package android.telecom { field public static final int CAPABILITY_PLACE_EMERGENCY_CALLS = 16; // 0x10 field public static final int CAPABILITY_SIM_SUBSCRIPTION = 4; // 0x4 field public static final int CAPABILITY_VIDEO_CALLING = 8; // 0x8 + field public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = 256; // 0x100 field public static final android.os.Parcelable.Creator CREATOR; field public static final int NO_HIGHLIGHT_COLOR = 0; // 0x0 field public static final int NO_RESOURCE_ID = -1; // 0xffffffff diff --git a/api/system-current.txt b/api/system-current.txt index 29044a104181b..cdf17e5a86213 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -32546,6 +32546,7 @@ package android.telecom { field public static final int CAPABILITY_PLACE_EMERGENCY_CALLS = 16; // 0x10 field public static final int CAPABILITY_SIM_SUBSCRIPTION = 4; // 0x4 field public static final int CAPABILITY_VIDEO_CALLING = 8; // 0x8 + field public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = 256; // 0x100 field public static final android.os.Parcelable.Creator CREATOR; field public static final int NO_HIGHLIGHT_COLOR = 0; // 0x0 field public static final int NO_RESOURCE_ID = -1; // 0xffffffff diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index b64043c6e07a7..0b19c98d0e835 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -128,6 +128,20 @@ public final class PhoneAccount implements Parcelable { */ public static final int CAPABILITY_EMERGENCY_CALLS_ONLY = 0x80; + /** + * Flag indicating that for this {@code PhoneAccount}, the ability to make a video call to a + * number relies on presence. Should only be set if the {@code PhoneAccount} also has + * {@link #CAPABILITY_VIDEO_CALLING}. + *

+ * When set, the {@link ConnectionService} is responsible for toggling the + * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit on the + * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} column to indicate whether + * a contact's phone number supports video calling. + *

+ * See {@link #getCapabilities} + */ + public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = 0x100; + /** * URI scheme for telephone number URIs. */