bbabc51b5b13fdce80157deffdcf7f35d7905641 |
01-May-2018 |
Chenbo Feng <fengc@google.com> |
Remove the unused file parsing function With the new xt_bpf support for iface stats. We no longer need to parse the per interface stats from /proc/net/dev. And since the old xt_qtaguid code path also not depend on it, we can completly remove that helper function since no caller is depending on it now. Bug: 72111305 Test: runtest frameworks-net -c com.android.internal.net.NetworkStatsFactoryTest Change-Id: Icb7eaeef0eeb9fdffd32a90316c76ee05bafffbe Merged-In: Icb7eaeef0eeb9fdffd32a90316c76ee05bafffbe (cherry picked from aosp commit b815c978b81eee4b1494bd0b9d25bfad52f08b72)
etworkStatsFactoryTest.java
|
b6a920124f28422877f59bfb32719099a0067d76 |
05-Mar-2018 |
Remi NGUYEN VAN <reminv@google.com> |
Add method to NetworkStatsService for UID stats. Useful for clients such as BatteryStats which currently rely on NetworkStatsFactory. Data at that stage is incomplete as it does not account for tethering, VT data and corresponding 464xlat corrections. Test: runtest frameworks-net, CTS tests pass. Bug: b/72107146 Merged-In: I31c5b9b4a7c6e72910152415894a137f000a5858 Merged-In: I2527d95000c7500c824ede70f87ecb38e21ed323 (cherry picked from aosp 088ff6824f13145ea52207bdead0d7e454a6f3ce) Change-Id: Ie80f1bb21124241f3414f9be77aceac9a44ec6d1
etworkStatsFactoryTest.java
|
93afbf258f554e980b58c3c67d55ebbb3e4eb915 |
19-Jan-2018 |
Chenbo Feng <fengc@google.com> |
Use /proc/net/dev to get stats summary If the qtaguid proc file is no longer exist, the device is running new eBPF module to do traffic accounting. So the NetworkStatsFactory need to use the proc/net/dev interface to get the per interface traffic stats summary. Also, adding a test to verify the helper function work properly Bug: 30950746 Test: run NetworkStatsFactoryTest Change-Id: Ia36808bf02f1637dd41a3e7c50917b91b1a77524
etworkStatsFactoryTest.java
|
828f1b45fb302f68b5eb8934bf474177fa249c7c |
21-Nov-2017 |
Chenbo Feng <fengc@google.com> |
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
etworkStatsFactoryTest.java
|
ada23ed56addb7c06a489c7464ae228a46588b95 |
18-Jan-2018 |
Lorenzo Colitti <lorenzo@google.com> |
Add the default network to NetworkStats and NetworkStatsCollection. This allows us to maintain NetworkStats entries that track whether the traffic was on the default network. At the moment, the stats collection code always passes in DEFAULT_NETWORK_NO. However, this value is a no-op, since it is not persisted to disk. Only the ident, the uid/set/tag, and the packet/byte/operation counters are persisted. A future change will add defaultNetwork to the ident and start persisting it. Bug: 35142602 Test: runtest frameworks-net Change-Id: Ifa291c62c0fa389b88e5561086a29dcd7cee2253
etworkStatsFactoryTest.java
|
4a0c5d7ef7144280fe8a209a871bbd4ef90d6368 |
11-Oct-2017 |
Hugo Benichi <hugobenichi@google.com> |
Migrate most of core networking tests to junit4 This patch is a batch of mechanical changes to test classes to migrate away from AndroidTestCase and TestCase. Bug: 62918393 Test: runtest frameworks-net Change-Id: I74134609e511f22c4d9ecd65780e981f9ba7ae3f
etworkStatsFactoryTest.java
|
e1bb3a14d1ee1aba2f92e5bccf659774699eaffe |
07-Apr-2017 |
Hugo Benichi <hugobenichi@google.com> |
NetworkStatsFactory: fix double accounting on IPv6 only networks For 464xlat scenarios on IPv6 networks, the clatd interface setup introduces double counting of apps ipv4 traffic. NetworkStatsFactory was accounting for this on the tx path, but not on the rx path. Also it did not accounted for the 20 bytes added by the IPv6 header. This patch subtract correctly the rx and tx traffic from the root uid on the underlying interface, and also adds correctly the 20 bytes cost per packet on the stacked interface for 464xlat traffic. Test: added several new unit tests, based on synthetic data and real data also. Bug: 33681750 Change-Id: I2675643b220acbc6110179fa937d4c313b6f5e32
etworkStatsFactoryTest.java
|
c86013be936f36c61fa0cdfad95141f6de3c6ef7 |
12-Apr-2017 |
Lorenzo Colitti <lorenzo@google.com> |
Move some NetworkStats tests to tests/net. This groups them together with the rest of the networking unit tests. It also speeds up compile/test cycles ("runtest -x" of one file goes from 1m15s to 30s). Test: runtest frameworks-net passes on internal tree Change-Id: I53cb0c51355fe4b4b30e451fa09fbbf58da39efd
etworkStatsFactoryTest.java
|