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

Commit 359e1e69 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.

Merged-In: I95c605ff1d649e6620e02b7b18b5c352f3d1970c
Change-Id: Ie61f99b5716d381ca841ddd3e5b163e1ef51dd8a
Test: Manual, unit test
Bug: 64068300
parent faf0668d
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");