summaryrefslogtreecommitdiff
path: root/core/tests/benchmarks
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2017-11-20 17:03:59 -0800
committerChenbo Feng <fengc@google.com>2018-01-23 00:34:53 -0800
commit828f1b45fb302f68b5eb8934bf474177fa249c7c (patch)
tree2a9daf59be1015dbb918617e0663a439c708cecc /core/tests/benchmarks
parentaedd6a3bdcb0b63c0bd6c6f01b720cddfedd51b8 (diff)
Add bpf support for NetworkStatsFactory
Add the native method used to read the detail information of network stats from bpf maps. The native method of NetworkStatsFactory should choose the correct implementation to get the stats detail depending on the kernel version. Currently the bpf result is printed as a reference and the actual behavior of NetworkStatsFactory should not change. Test: NetworkStatsFactory related cts test should not fail. Bug: 30950746 Change-Id: I4715a23559b5b2306bd556cea0431f0ed172a993
Diffstat (limited to 'core/tests/benchmarks')
-rw-r--r--core/tests/benchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tests/benchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java b/core/tests/benchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java
index e62fbd6568f7..c2134649655a 100644
--- a/core/tests/benchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java
+++ b/core/tests/benchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java
@@ -53,7 +53,7 @@ public class NetworkStatsFactoryBenchmark {
stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL,
// Looks like this was broken by change d0c5b9abed60b7bc056d026bf0f2b2235410fb70
// Fixed compilation problem but needs addressing properly.
- new String[0], 999);
+ new String[0], 999, false);
}
}
}