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

Commit affc11c1 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Support CDMA call duration reset in telephony connection"

am: cb785966

Change-Id: I47c7e07142f23784a4a76e6a97919e9bc1930fc4
parents 0d9802b3 cb785966
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1106,6 +1106,18 @@ public abstract class Connection {
        return mPhoneType;
    }

    /**
     * Reset the Connection time and Duration
     */
    public void resetConnectionTime() {
        if (mPhoneType == PhoneConstants.PHONE_TYPE_CDMA_LTE ||
                mPhoneType == PhoneConstants.PHONE_TYPE_CDMA) {
            mConnectTime = System.currentTimeMillis();
            mConnectTimeReal = SystemClock.elapsedRealtime();
            mDuration = 0;
        }
    }

    /**
     * Build a human representation of a connection instance, suitable for debugging.
     * Don't log personal stuff unless in debug mode.