summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-09-14 19:31:04 -0700
committerJeff Sharkey <jsharkey@android.com>2011-09-14 19:47:05 -0700
commit991d1b1b3f303ad247a959881b1d5b57766f678b (patch)
treeed0eb9e2c9f916e28d120d76f04a4f4f98d03862 /services/tests
parentd18addb4e3d0cd4da798dd35ad676d98465ebed3 (diff)
downloadframeworks_base-991d1b1b3f303ad247a959881b1d5b57766f678b.zip
frameworks_base-991d1b1b3f303ad247a959881b1d5b57766f678b.tar.gz
frameworks_base-991d1b1b3f303ad247a959881b1d5b57766f678b.tar.bz2
Network stats flag to force complete poll.
Devices currently delay collecting UID stats during common operations like global alerts to reduce parsing load. Here we introduce a flag to always collect UID and iface stats together to aid debugging. Bug: 5321340 Change-Id: Ia8e1daf1a6f9d5f5cf1f64a04b6b6766ee965ab6
Diffstat (limited to 'services/tests')
-rw-r--r--services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
index e7f1d9a..2b1eea1 100644
--- a/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
+++ b/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
@@ -758,6 +758,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
expect(mSettings.getUidMaxHistory()).andReturn(maxHistory).anyTimes();
expect(mSettings.getTagMaxHistory()).andReturn(maxHistory).anyTimes();
expect(mSettings.getTimeCacheMaxAge()).andReturn(DAY_IN_MILLIS).anyTimes();
+ expect(mSettings.getForceCompletePoll()).andReturn(false).anyTimes();
}
private void expectCurrentTime() throws Exception {