summaryrefslogtreecommitdiff
path: root/core/tests/bandwidthtests
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2019-11-15 17:15:01 +0800
committerJunyu Lai <junyulai@google.com>2020-01-09 03:11:22 +0000
commitd27a1725e81be016fe525bd3ed5a08f014514f3e (patch)
tree62e387bcebf75ae160f82ad67612c1103b3de966 /core/tests/bandwidthtests
parentc7c465f4073aa75db27946298f7dc8c857b8e0df (diff)
[SP01] Add NetworkStats to system API
In order to let external module report their network stats, expose necessary APIs to construct NetworkStats object. Test: atest FrameworksNetTests CtsUsageStatsTestCases Test: m doc-comment-check-docs Bug: 130855321 Change-Id: Id3ec8aaff3df67948c25eac2319a74cf33a27979
Diffstat (limited to 'core/tests/bandwidthtests')
-rw-r--r--core/tests/bandwidthtests/src/com/android/bandwidthtest/BandwidthTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tests/bandwidthtests/src/com/android/bandwidthtest/BandwidthTest.java b/core/tests/bandwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
index 2989df83866c..5d42915fc82b 100644
--- a/core/tests/bandwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
+++ b/core/tests/bandwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
@@ -268,7 +268,7 @@ public class BandwidthTest extends InstrumentationTestCase {
File snd_stat = new File (root_filepath + "tcp_snd");
int tx = BandwidthTestUtil.parseIntValueFromFile(snd_stat);
NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1);
- stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT,
+ stats.addEntry(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT,
NetworkStats.TAG_NONE, rx, 0, tx, 0, 0);
return stats;
}