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

Commit 5806e2b7 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

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

Change-Id: I8744282f43fe2cfd6cc1e960fd758754ad051464
parents 0c99f8db d72a5d28
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;
    }