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

Commit 3f50dab9 authored by Nivedita Sarkar's avatar Nivedita Sarkar Committed by Linux Build Service Account
Browse files

IMS: Capabilities propagation

    Propagating capabilities for voice and
    video, based on which upgrade/downgrade
    will be allowed.

Change-Id: I75e0a5b9e5ad2d970003a4691b6fc0ac0dcfe9e0
CRs-Fixed: 800130
parent 1f49807d
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -212,6 +212,18 @@ public final class Call {
         */
        public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000;

        /**
         * Local device supports downgrading a video call to a voice-only call.
         * @hide
         */
        public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL = 0x00800000;

        /**
         * Remote device supports downgrading a video call to a voice-only call.
         * @hide
         */
        public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE = 0x01000000;

        /**
         * Add participant in an active or conference call option
         * @hide
@@ -219,7 +231,7 @@ public final class Call {
        public static final int CAPABILITY_ADD_PARTICIPANT = 0x02000000;

        //******************************************************************************************
        // Next CAPABILITY value: 0x00004000
        // Next CAPABILITY value: 0x04000000
        //******************************************************************************************

        /**
@@ -333,6 +345,12 @@ public final class Call {
            if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_TX)) {
                builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_TX");
            }
            if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL)) {
                builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL");
            }
            if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE)) {
                builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE");
            }
            if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL)) {
                builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL");
            }
+19 −1
Original line number Diff line number Diff line
@@ -260,8 +260,20 @@ public abstract class Connection extends Conferenceable {
      */
    public static final int CAPABILITY_VOICE_PRIVACY = 0x00400000;

    /**
     * Local device supports voice telephony.
     * @hide
     */
    public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL = 0x00800000;

    /**
      * Remote device supports voice telephony.
      * @hide
      */
    public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE = 0x01000000;

    //**********************************************************************************************
    // Next CAPABILITY value: 0x00400000
    // Next CAPABILITY value: 0x04000000
    //**********************************************************************************************

    /**
@@ -383,6 +395,12 @@ public abstract class Connection extends Conferenceable {
        if (can(capabilities, CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL)) {
            builder.append(" CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL");
        }
        if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL)) {
            builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL");
        }
        if (can(capabilities, CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE)) {
            builder.append(" CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE");
        }
        if (can(capabilities, CAPABILITY_HIGH_DEF_AUDIO)) {
            builder.append(" CAPABILITY_HIGH_DEF_AUDIO");
        }