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

Commit e7faa7f6 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:...

Merge "Support CDMA call duration reset in telephony connection" am: cb785966 am: affc11c1 am: c7b34ecc
am: 7163f25e

Change-Id: I0a1dfb9280130d2ea7ed07edf33021387e5c674a
parents eab7f114 7163f25e
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -1106,6 +1106,18 @@ public abstract class Connection {
        return mPhoneType;
        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.
     * Build a human representation of a connection instance, suitable for debugging.
     * Don't log personal stuff unless in debug mode.
     * Don't log personal stuff unless in debug mode.