diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-09-14 19:31:04 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-09-14 19:47:05 -0700 |
commit | 991d1b1b3f303ad247a959881b1d5b57766f678b (patch) | |
tree | ed0eb9e2c9f916e28d120d76f04a4f4f98d03862 /services/tests | |
parent | d18addb4e3d0cd4da798dd35ad676d98465ebed3 (diff) | |
download | frameworks_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.java | 1 |
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 { |