am 4dceedc1: Merge "Make ThrottleService notice policy changes." into froyo

Merge commit '4dceedc133ef0487577badb67100d20473d87762' into froyo-plus-aosp

* commit '4dceedc133ef0487577badb67100d20473d87762':
  Make ThrottleService notice policy changes.
This commit is contained in:
Robert Greenwalt
2010-04-10 11:41:25 -07:00
committed by Android Git Automerger
2 changed files with 65 additions and 20 deletions

View File

@@ -73,6 +73,12 @@ public class ThrottleManager
*/
public static final String EXTRA_THROTTLE_LEVEL = "level";
/**
* Broadcast on boot and whenever the settings change.
* {@hide}
*/
public static final String POLICY_CHANGED_ACTION = "android.net.thrott.POLICY_CHANGED_ACTION";
// {@hide}
public static final int DIRECTION_TX = 0;
// {@hide}
@@ -103,6 +109,8 @@ public class ThrottleManager
// @hide
public static final int PERIOD_SECOND = 11;
/**
* returns a long of the ms from the epoch to the time the current cycle ends for the
* named interface
@@ -147,7 +155,7 @@ public class ThrottleManager
/**
* returns the number of bytes read+written after which a particular cliff
* takes effect on the named iface. Currently only cliff #0 is supported (1 step)
* takes effect on the named iface. Currently only cliff #1 is supported (1 step)
* {@hide}
*/
public long getCliffThreshold(String iface, int cliff) {
@@ -160,7 +168,7 @@ public class ThrottleManager
/**
* returns the thottling bandwidth (bps) for a given cliff # on the named iface.
* only cliff #0 is currently supported.
* only cliff #1 is currently supported.
* {@hide}
*/
public int getCliffLevel(String iface, int cliff) {