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

Commit 35f927fa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove the usage of getMobileTcpTxPackets"

parents e3a11af5 93fb71e6
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -514,14 +514,6 @@ public class DcTracker extends Handler {
            return "{txSum=" + txPkts + " rxSum=" + rxPkts + "}";
        }

        /**
         * Get Tcp Tx/Rx packet count from TrafficStats
         */
        public void updateTcpTxRxSum() {
            this.txPkts = TrafficStats.getMobileTcpTxPackets();
            this.rxPkts = TrafficStats.getMobileTcpRxPackets();
        }

        /**
         * Get total Tx/Rx packet count from TrafficStats
         */
@@ -4650,7 +4642,7 @@ public class DcTracker extends Handler {
        long sent, received;

        TxRxSum preTxRxSum = new TxRxSum(mDataStallTxRxSum);
        mDataStallTxRxSum.updateTcpTxRxSum();
        mDataStallTxRxSum.updateTotalTxRxSum();

        if (VDBG_STALL) {
            log("updateDataStallInfo: mDataStallTxRxSum=" + mDataStallTxRxSum +