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

Commit 3a488073 authored by Alvin Dey's avatar Alvin Dey
Browse files

IMS: Propagate RTT capability of the called party to UI

Propagate RTT capability of the called party to UI

Test: Manual
Bug: 80063808
Change-Id: If08f1dd3cfef98ed23a38d963e65a27f8792c02b
parent 2fa15e91
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -92,6 +92,11 @@ public abstract class Connection {
         * local device.
         */
        public static final int IS_PULLABLE = 0x00000020;

        /**
         * For an IMS call, indicates that the peer supports RTT.
         */
        public static final int SUPPORTS_RTT_REMOTE = 0x00000040;
    }

    /**
+6 −0
Original line number Diff line number Diff line
@@ -337,6 +337,8 @@ public class ImsPhoneConnection extends Connection implements
        Rlog.w(LOG_TAG, "applyRemoteCallCapabilities - remoteProfile = "+remoteProfile);
        capabilities = removeCapability(capabilities,
                Connection.Capability.SUPPORTS_VT_REMOTE_BIDIRECTIONAL);
        capabilities = removeCapability(capabilities,
                Connection.Capability.SUPPORTS_RTT_REMOTE);

        switch (remoteProfile.mCallType) {
            case ImsCallProfile.CALL_TYPE_VT:
@@ -346,6 +348,10 @@ public class ImsPhoneConnection extends Connection implements
                        Connection.Capability.SUPPORTS_VT_REMOTE_BIDIRECTIONAL);
                break;
        }

        if (remoteProfile.getMediaProfile().getRttMode() == ImsStreamMediaProfile.RTT_MODE_FULL) {
            capabilities = addCapability(capabilities, Connection.Capability.SUPPORTS_RTT_REMOTE);
        }
        return capabilities;
    }