NetworkManagementService: Add interface counters & throttle API

Change-Id: I4976549cdbb027ba7859335e69bf866e738961c9
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-03-31 14:31:36 -07:00
parent 461cef5d20
commit 91cac64cd0
2 changed files with 121 additions and 0 deletions

View File

@@ -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);
}