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

Commit 106b0bea authored by Tyler Gunn's avatar Tyler Gunn
Browse files

When IMS connections are merged, track connect time elapsed.

When IMS connections are meged, we need to track the elapsed time as well.
This is used when the actual conference is formed.

Test: Manual, unit test
Bug: 64068300
Change-Id: I2936ed2c65ac14a8807853b21398d08dfef55e69
parent 12194aa8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -310,6 +310,15 @@ public abstract class Connection {
        mConnectTime = connectTime;
    }

    /**
     * Sets the Connection connect time in {@link SystemClock#elapsedRealtime()} format.
     *
     * @param connectTimeReal the new connect time.
     */
    public void setConnectTimeReal(long connectTimeReal) {
        mConnectTimeReal = connectTimeReal;
    }

    /**
     * Connection connect time in elapsedRealtime() format.
     * For outgoing calls: Begins at (DIALING|ALERTING) -> ACTIVE transition.
+1 −0
Original line number Diff line number Diff line
@@ -267,6 +267,7 @@ public class ImsPhoneCall extends Call {
            long conferenceConnectTime = imsPhoneConnection.getConferenceConnectTime();
            if (conferenceConnectTime > 0) {
                imsPhoneConnection.setConnectTime(conferenceConnectTime);
                imsPhoneConnection.setConnectTimeReal(imsPhoneConnection.getConnectTimeReal());
            } else {
                if (DBG) {
                    Rlog.d(LOG_TAG, "merge: conference connect time is 0");