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

Commit 51797ed7 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Create missing Uids when recording network stats.

Bug: 5543387
Change-Id: I138c8d2f84e6fd737f2f6ef0945e75ca31256e3d
parent 0c2c62b2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1579,9 +1579,7 @@ public final class BatteryStatsImpl extends BatteryStats {
        for (int i = 0; i < size; i++) {
            entry = uidStats.getValues(i, entry);

            final Uid u = mUidStats.get(entry.uid);
            if (u == null) continue;

            final Uid u = getUidStatsLocked(entry.uid);
            u.mStartedTcpBytesReceived = entry.rxBytes;
            u.mStartedTcpBytesSent = entry.txBytes;
            u.mTcpBytesReceivedAtLastUnplug = u.mCurrentTcpBytesReceived;