diff options
| author | Felipe Leme <felipeal@google.com> | 2016-03-30 22:28:05 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-03-30 22:28:06 +0000 |
| commit | a6f98afbdeda4da14d07b0fed5b6586b08cc5e38 (patch) | |
| tree | bee31f07ddbdc2795312726d30e15e70fbeaf4b9 /core/java/android | |
| parent | 3d6dc3a60a0edcdc4bf6eb4cccb3a20c807b6975 (diff) | |
| parent | 70c57c2810eb5004ac6487921bfdf0880f818e3c (diff) | |
Merge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/NetworkPolicyManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/net/NetworkPolicyManager.java b/core/java/android/net/NetworkPolicyManager.java index 8738424e1a50..e464a4a31497 100644 --- a/core/java/android/net/NetworkPolicyManager.java +++ b/core/java/android/net/NetworkPolicyManager.java @@ -57,6 +57,10 @@ public class NetworkPolicyManager { public static final int RULE_REJECT_METERED = 1; /** Reject traffic on all networks. */ public static final int RULE_REJECT_ALL = 2; + /** Allow traffic on metered networks. */ + public static final int RULE_ALLOW_METERED = 3; + /** Temporarily allow traffic on metered networks because app is on foreground. */ + public static final int RULE_TEMPORARY_ALLOW_METERED = 4; public static final int FIREWALL_RULE_DEFAULT = 0; public static final int FIREWALL_RULE_ALLOW = 1; |
