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

Commit c7b34ecc 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

am: affc11c1

Change-Id: I720a82bf5b9ff2c7ed2fe12ed17427dcb6cd015b
parents ec95427e affc11c1
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.