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

Commit cb785966 authored by Hall Liu's avatar Hall Liu Committed by Gerrit Code Review
Browse files

Merge "Support CDMA call duration reset in telephony connection"

parents b3ae2646 76299d96
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.