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

Commit 3c8b346c authored by Tyler Gunn's avatar Tyler Gunn Committed by Gerrit Code Review
Browse files

Merge "IMS: Propagate RTT capability of the called party to UI"

parents c28a51d5 3a488073
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
@@ -341,6 +341,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:
@@ -350,6 +352,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;
    }