Lines Matching defs:before
261 // try removing far before buckets; should be no change
381 final NetworkStatsHistory before = new NetworkStatsHistory(MINUTE_IN_MILLIS, 40, FIELD_ALL);
382 before.recordData(0, 4 * MINUTE_IN_MILLIS,
384 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS,
388 before.writeToStream(new DataOutputStream(out));
394 // must have identical totals before and after
395 assertFullValues(before, 5 * MINUTE_IN_MILLIS, 1034L, 30L, 2078L, 60L, 54L);
489 NetworkStatsHistory stats, int before, int after, long time) {
490 assertEquals("unexpected before", before, stats.getIndexBefore(time));
494 private static long performVarLong(long before) throws Exception {
496 writeVarLong(new DataOutputStream(out), before);