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

Commit 383df1e7 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 1c743650: Merge "Sanity check network stats coming from disk." into jb-mr1-dev

* commit '1c743650':
  Sanity check network stats coming from disk.
parents ff105ea2 1c743650
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -177,6 +177,12 @@ public class NetworkStatsHistory implements Parcelable {
                throw new ProtocolException("unexpected version: " + version);
            }
        }

        if (bucketStart.length != bucketCount || rxBytes.length != bucketCount
                || rxPackets.length != bucketCount || txBytes.length != bucketCount
                || txPackets.length != bucketCount || operations.length != bucketCount) {
            throw new ProtocolException("Mismatched history lengths");
        }
    }

    public void writeToStream(DataOutputStream out) throws IOException {