summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-06-22 16:32:41 -0700
committerJeff Sharkey <jsharkey@android.com>2011-06-22 21:44:12 -0700
commit0a9ee1272b59ad350cea591f931b52290a5e0998 (patch)
tree514243df9749e51c04870a493258bceb82d4d9aa /core
parent8969d9924c662ab4cdacc342bbdc33756db730be (diff)
downloadframeworks_base-0a9ee1272b59ad350cea591f931b52290a5e0998.zip
frameworks_base-0a9ee1272b59ad350cea591f931b52290a5e0998.tar.gz
frameworks_base-0a9ee1272b59ad350cea591f931b52290a5e0998.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/INetworkManagementService.aidl2
-rw-r--r--core/java/android/provider/Settings.java2
2 files changed, 4 insertions, 0 deletions
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 @@ interface INetworkManagementService
*/
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..afff7e2 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -3804,6 +3804,8 @@ public final class Settings {
"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";