diff options
author | San Mehat <san@google.com> | 2010-03-31 14:31:36 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-04-01 08:34:20 -0700 |
commit | 91cac64cd010e6b4006fdd14b39dbc75778f20cb (patch) | |
tree | 4db61525fc553585f0744357c2ced35584443b33 /core/java | |
parent | 461cef5d209fd072c82f6a70eb106e4690b7ef97 (diff) | |
download | frameworks_base-91cac64cd010e6b4006fdd14b39dbc75778f20cb.zip frameworks_base-91cac64cd010e6b4006fdd14b39dbc75778f20cb.tar.gz frameworks_base-91cac64cd010e6b4006fdd14b39dbc75778f20cb.tar.bz2 |
NetworkManagementService: Add interface counters & throttle API
Change-Id: I4976549cdbb027ba7859335e69bf866e738961c9
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/os/INetworkManagementService.aidl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/core/java/android/os/INetworkManagementService.aidl b/core/java/android/os/INetworkManagementService.aidl index e970e7e..da8c5d2 100644 --- a/core/java/android/os/INetworkManagementService.aidl +++ b/core/java/android/os/INetworkManagementService.aidl @@ -179,4 +179,36 @@ interface INetworkManagementService * Set Access Point config */ void setAccessPoint(in WifiConfiguration wifiConfig, String wlanIface, String softapIface); + + /** + * Read number of bytes sent over an interface + */ + long getInterfaceTxCounter(String iface); + + /** + * Read number of bytes received over an interface + */ + long getInterfaceRxCounter(String iface); + + /** + * Configures RX bandwidth throttling on an interface + */ + void setInterfaceRxThrottle(String iface, int kbps); + + /** + * Configures TX bandwidth throttling on an interface + */ + void setInterfaceTxThrottle(String iface, int kbps); + + /** + * Returns the currently configured RX throttle values + * for the specified interface + */ + int getInterfaceRxThrottle(String iface); + + /** + * Returns the currently configured TX throttle values + * for the specified interface + */ + int getInterfaceTxThrottle(String iface); } |