diff options
| author | Luke Huang <huangluke@google.com> | 2018-08-03 15:19:05 +0800 |
|---|---|---|
| committer | Luke Huang <huangluke@google.com> | 2018-09-11 11:23:40 +0000 |
| commit | 531f5d3c790f85f6fbe2f4d1337f67751e6712d3 (patch) | |
| tree | b202430be2ad46179fd025ea4dbc7f7e824833eb /server/NetdNativeService.h | |
| parent | 38e51f1a88fcec495b91a5e18148121b9bc666ad (diff) | |
| download | platform_system_netd-531f5d3c790f85f6fbe2f4d1337f67751e6712d3.tar.gz platform_system_netd-531f5d3c790f85f6fbe2f4d1337f67751e6712d3.tar.bz2 platform_system_netd-531f5d3c790f85f6fbe2f4d1337f67751e6712d3.zip | |
bandwidth-related commands porting
Test: built, flashed, booted
system/netd/tests/runtests.sh passes
Change-Id: I7db81136dfaa581d4257a05aad64059dc0cd7976
Diffstat (limited to 'server/NetdNativeService.h')
| -rw-r--r-- | server/NetdNativeService.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h index c8b85f03f..57d99dbe8 100644 --- a/server/NetdNativeService.h +++ b/server/NetdNativeService.h @@ -43,6 +43,15 @@ class NetdNativeService : public BinderService<NetdNativeService>, public BnNetd // Bandwidth control commands. binder::Status bandwidthEnableDataSaver(bool enable, bool *ret) override; + binder::Status bandwidthSetInterfaceQuota(const std::string& ifName, int64_t bytes) override; + binder::Status bandwidthRemoveInterfaceQuota(const std::string& ifName) override; + binder::Status bandwidthSetInterfaceAlert(const std::string& ifName, int64_t bytes) override; + binder::Status bandwidthRemoveInterfaceAlert(const std::string& ifName) override; + binder::Status bandwidthSetGlobalAlert(int64_t bytes) override; + binder::Status bandwidthAddNaughtyApp(int32_t uid) override; + binder::Status bandwidthRemoveNaughtyApp(int32_t uid) override; + binder::Status bandwidthAddNiceApp(int32_t uid) override; + binder::Status bandwidthRemoveNiceApp(int32_t uid) override; // Network and routing commands. binder::Status networkCreatePhysical(int32_t netId, const std::string& permission) |
