Merge "Force an update before we poll for the data."
This commit is contained in:
committed by
Android (Google) Code Review
commit
3a423234bc
@@ -72,6 +72,7 @@ public class DataIdleTest extends InstrumentationTestCase {
|
||||
*/
|
||||
private void fetchStats(NetworkTemplate template) {
|
||||
try {
|
||||
mStatsService.forceUpdate();
|
||||
NetworkStats stats = mStatsService.getSummaryForAllUid(template, Long.MIN_VALUE,
|
||||
Long.MAX_VALUE, false);
|
||||
reportStats(stats);
|
||||
|
||||
Reference in New Issue
Block a user