summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsCollectionTest.java
diff options
context:
space:
mode:
authorPatrick Rohr <prohr@google.com>2022-01-21 14:58:16 +0100
committerPatrick Rohr <prohr@google.com>2022-02-09 14:46:26 +0100
commit2857ac4dd09b0aea9015caa6ea8f80392fb6987a (patch)
treeffe900cfdf0b5d00a75ee9ba41c93703e35ff64a /tests/unit/java/android/net/NetworkStatsCollectionTest.java
parenta20843638f7340ce4c5198bdb489b8ef66722f73 (diff)
Add bandwidth limiting to CS
Adds ingress rate limiting functionality to ConnectivityService. The tc rate limit is installed before we tell netd about the interface, and removed after the network is removed from netd. When the setting changes, the old rate limit needs to be removed before a new one can be added (unfortunately, we cannot use NLM_F_REPLACE when configuring the tc-police filter). Currently, this functionality is always enabled, but may or may not work based on kernel support. Bug: 157552970 Test: atest FrameworksNetTests:ConnectivityServiceTest Change-Id: I4e64b2c40490f061e42b40a1b1b3a6618c3d1a87
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsCollectionTest.java')
0 files changed, 0 insertions, 0 deletions