commit | 0a9ee1272b59ad350cea591f931b52290a5e0998 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Jun 22 16:32:41 2011 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Jun 22 21:44:12 2011 -0700 |
tree | 514243df9749e51c04870a493258bceb82d4d9aa | |
parent | 8969d9924c662ab4cdacc342bbdc33756db730be [diff] |
Enable bandwidth module from stats service. During systemReady(), tell netd to enable bandwidth tracking module, which is used to provide detailed stats and controls. Change-Id: Iecfd8b17a3b90f5a817d731fbe1c71777681ed6e
diff --git a/core/java/android/os/INetworkManagementService.aidl b/core/java/android/os/INetworkManagementService.aidl index 5e99463..1b09242 100644 --- a/core/java/android/os/INetworkManagementService.aidl +++ b/core/java/android/os/INetworkManagementService.aidl
@@ -226,4 +226,6 @@ */ int getInterfaceTxThrottle(String iface); + void setBandwidthControlEnabled(boolean enabled); + }
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 19e9a67..afff7e24 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java
@@ -3804,6 +3804,8 @@ "dream_timeout"; /** {@hide} */ + public static final String NETSTATS_ENABLED = "netstats_enabled"; + /** {@hide} */ public static final String NETSTATS_POLL_INTERVAL = "netstats_poll_interval"; /** {@hide} */ public static final String NETSTATS_PERSIST_THRESHOLD = "netstats_persist_threshold";