summaryrefslogtreecommitdiffstats
path: root/tests/DataIdleTest
diff options
context:
space:
mode:
authorTsu Chiang Chuang <tsu@google.com>2011-09-16 17:48:35 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-16 17:48:35 -0700
commit3a423234bcfabf319977bfaa4467a8b8df8d3401 (patch)
treecd2b0c2ca421c97159abae5106f212840696d575 /tests/DataIdleTest
parente4bbb6ac3128021e865d6e31b4e7ada468886681 (diff)
parentdb2990f5e743ed5030b6d5c1307b26737ec67a82 (diff)
downloadframeworks_base-3a423234bcfabf319977bfaa4467a8b8df8d3401.zip
frameworks_base-3a423234bcfabf319977bfaa4467a8b8df8d3401.tar.gz
frameworks_base-3a423234bcfabf319977bfaa4467a8b8df8d3401.tar.bz2
Merge "Force an update before we poll for the data."
Diffstat (limited to 'tests/DataIdleTest')
-rw-r--r--tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java b/tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java
index 54adc249..b803b98 100644
--- a/tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java
+++ b/tests/DataIdleTest/src/com/android/tests/dataidle/DataIdleTest.java
@@ -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);