Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2db72ad4 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Adding call capabilities to indicate whether call supports VT.

Bug: 16213105
Change-Id: Icb05d3f0f6bd90b2c45bdfb7b199f38aaecc16ca
parent 482edab3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -27466,6 +27466,8 @@ package android.telecomm {
    field public static final int MERGE_CALLS = 4; // 0x4
    field public static final int MUTE = 64; // 0x40
    field public static final int RESPOND_VIA_TEXT = 32; // 0x20
    field public static final int SUPPORTS_VT_LOCAL = 256; // 0x100
    field public static final int SUPPORTS_VT_REMOTE = 512; // 0x200
    field public static final int SUPPORT_HOLD = 2; // 0x2
    field public static final int SWAP_CALLS = 8; // 0x8
  }
+12 −0
Original line number Diff line number Diff line
@@ -42,6 +42,12 @@ public final class CallCapabilities {
    /** Call supports generic conference mode. */
    public static final int GENERIC_CONFERENCE = 0x00000080;

    /** Local device supports video telephony. */
    public static final int SUPPORTS_VT_LOCAL  = 0x00000100;

    /** Remote device supports video telephony. */
    public static final int SUPPORTS_VT_REMOTE = 0x00000200;

    public static final int ALL = HOLD | SUPPORT_HOLD | MERGE_CALLS | SWAP_CALLS | ADD_CALL
            | RESPOND_VIA_TEXT | MUTE | GENERIC_CONFERENCE;

@@ -72,6 +78,12 @@ public final class CallCapabilities {
        if ((capabilities & GENERIC_CONFERENCE) != 0) {
            builder.append(" GENERIC_CONFERENCE");
        }
        if ((capabilities & SUPPORTS_VT_LOCAL) != 0) {
            builder.append(" SUPPORTS_VT_LOCAL");
        }
        if ((capabilities & SUPPORTS_VT_REMOTE) != 0) {
            builder.append(" SUPPORTS_VT_REMOTE");
        }
        builder.append("]");
        return builder.toString();
    }