diff options
| author | Robin Lee <rgl@google.com> | 2016-09-13 18:55:42 +0900 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2016-10-27 18:15:49 +0900 |
| commit | 2cf561722c2661cc0d4db502a44a3021609f307e (patch) | |
| tree | 0452490582eb6d339cd62a82eedca22b42f30ebb /server/NetworkController.cpp | |
| parent | 7e05cc933bf45f7a6e6e93027883f0d329a7101e (diff) | |
Benchmarks for network metrics reporting
Bug: 29748723
Test: this is an APCT test.
(cherry picked from commit 484dac1d071c7476895c4a3184e8dbdd7b63e524)
Change-Id: I482a7d5c15210906069e0fe7ef55ab3f21bfc127
Diffstat (limited to 'server/NetworkController.cpp')
| -rw-r--r-- | server/NetworkController.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp index c891391d..4dc73e77 100644 --- a/server/NetworkController.cpp +++ b/server/NetworkController.cpp @@ -666,3 +666,16 @@ int NetworkController::modifyFallthroughLocked(unsigned vpnNetId, bool add) { } return 0; } + +int NetworkController::setMetricsReportingLevel(const int level) { + if (level < 0 || level > 1) { + ALOGE("Invalid reporting level %d", level); + return -EINVAL; + } + mReportingLevel = level; + return 0; +} + +int NetworkController::getMetricsReportingLevel() const { + return mReportingLevel; +} |
