Merge "Create missing Uids when recording network stats." into jb-mr2-dev
This commit is contained in:
@@ -1579,9 +1579,7 @@ public final class BatteryStatsImpl extends BatteryStats {
|
|||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
entry = uidStats.getValues(i, entry);
|
entry = uidStats.getValues(i, entry);
|
||||||
|
|
||||||
final Uid u = mUidStats.get(entry.uid);
|
final Uid u = getUidStatsLocked(entry.uid);
|
||||||
if (u == null) continue;
|
|
||||||
|
|
||||||
u.mStartedTcpBytesReceived = entry.rxBytes;
|
u.mStartedTcpBytesReceived = entry.rxBytes;
|
||||||
u.mStartedTcpBytesSent = entry.txBytes;
|
u.mStartedTcpBytesSent = entry.txBytes;
|
||||||
u.mTcpBytesReceivedAtLastUnplug = u.mCurrentTcpBytesReceived;
|
u.mTcpBytesReceivedAtLastUnplug = u.mCurrentTcpBytesReceived;
|
||||||
|
|||||||
Reference in New Issue
Block a user