Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.

Test: cts
Bug: 173437870
Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
Merged-In: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
(cherry picked from commit d24aea3148)
This commit is contained in:
Shuo Qian
2020-11-24 15:08:49 -08:00
committed by sqian
parent ea8ca4b88a
commit abee612ab0
2 changed files with 11 additions and 1 deletions

View File

@@ -361,7 +361,13 @@ public final class PhoneAccount implements Parcelable {
*/
public static final int CAPABILITY_ADHOC_CONFERENCE_CALLING = 0x4000;
/* NEXT CAPABILITY: 0x8000 */
/**
* Flag indicating whether this {@link PhoneAccount} is capable of supporting the call composer
* functionality for enriched calls.
*/
public static final int CAPABILITY_CALL_COMPOSER = 0x8000;
/* NEXT CAPABILITY: 0x10000 */
/**
* URI scheme for telephone number URIs.
@@ -1088,6 +1094,9 @@ public final class PhoneAccount implements Parcelable {
if (hasCapabilities(CAPABILITY_ADHOC_CONFERENCE_CALLING)) {
sb.append("AdhocConf");
}
if (hasCapabilities(CAPABILITY_CALL_COMPOSER)) {
sb.append("CallComposer ");
}
return sb.toString();
}