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

Commit 1b679b38 authored by Tyler Gunn's avatar Tyler Gunn Committed by Automerger Merge Worker
Browse files

Merge "IMS: Propagate RTT capability of the called party to UI" am: 3c8b346c...

Merge "IMS: Propagate RTT capability of the called party to UI" am: 3c8b346c am: 24d9c066 am: d72a5d28 am: 5806e2b7 am: 009685a8

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/696028

Change-Id: Ie9889a10eb631340d40f6f8e2ee2fb5e103fa344
parents 24a79958 009685a8
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
@@ -354,6 +354,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:
@@ -363,6 +365,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;
    }