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

Commit 6ee95d80 authored by Muhammed Siju's avatar Muhammed Siju Committed by Steve Kondik
Browse files

IMS: Add API to set create time for a Connection.

setCreateTime() API is added to Connection class so that
create time can be transferred from IMS to CS connection
during SRVCC.

Change-Id: I20dc536171e3e91ac13c0897bf2121c56762785b
CRs-Fixed: 682041
parent c8a0f994
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -168,6 +168,16 @@ public abstract class Connection {
     */
    public abstract long getCreateTime();

    /**
     * Set Connection create time in currentTimeMillis() format.
     * This API may be used to change create time of the
     * Connection for scenarios like IMS Volte SRVCC where
     * create time is transferred from PS Connection to CS.
     */
    public void setCreateTime(long timeInMillis) {
        Rlog.e(LOG_TAG, "setCreateTime() not implemented");
    }

    /**
     * Connection connect time in currentTimeMillis() format.
     * For outgoing calls: Begins at (DIALING|ALERTING) -> ACTIVE transition.
+5 −0
Original line number Diff line number Diff line
@@ -244,6 +244,11 @@ public class CdmaConnection extends Connection {
        return mCreateTime;
    }

    @Override
    public void setCreateTime(long timeInMillis) {
        mCreateTime = timeInMillis;
    }

    @Override
    public long getConnectTime() {
        return mConnectTime;
+5 −0
Original line number Diff line number Diff line
@@ -205,6 +205,11 @@ public class GsmConnection extends Connection {
        return mCreateTime;
    }

    @Override
    public void setCreateTime(long timeInMillis) {
        mCreateTime = timeInMillis;
    }

    @Override
    public long getConnectTime() {
        return mConnectTime;