summaryrefslogtreecommitdiffstats
path: root/core/java/android/net
diff options
context:
space:
mode:
authorXiaohui Chen <xiaohuic@google.com>2015-06-17 23:50:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-17 23:50:28 +0000
commit802ece61399e94bbe98cafaa277c71bee73c03ba (patch)
tree5949aaf315be0c0e89f0cd678b188cc7ee67efc1 /core/java/android/net
parent8b9730f749498491ceb80c86261ee5b8398c7f25 (diff)
parentb41c9f7f39939cee8d226eb5e506c3f0573f44f5 (diff)
downloadframeworks_base-802ece61399e94bbe98cafaa277c71bee73c03ba.zip
frameworks_base-802ece61399e94bbe98cafaa277c71bee73c03ba.tar.gz
frameworks_base-802ece61399e94bbe98cafaa277c71bee73c03ba.tar.bz2
Merge "system_server: add two child chains to firewall" into mnc-dev
Diffstat (limited to 'core/java/android/net')
-rw-r--r--core/java/android/net/NetworkPolicyManager.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/net/NetworkPolicyManager.java b/core/java/android/net/NetworkPolicyManager.java
index ecc3fb4..3f40484 100644
--- a/core/java/android/net/NetworkPolicyManager.java
+++ b/core/java/android/net/NetworkPolicyManager.java
@@ -61,6 +61,17 @@ public class NetworkPolicyManager {
public static final int FIREWALL_RULE_ALLOW = 1;
public static final int FIREWALL_RULE_DENY = 2;
+ public static final int FIREWALL_TYPE_WHITELIST = 0;
+ public static final int FIREWALL_TYPE_BLACKLIST = 1;
+
+ public static final int FIREWALL_CHAIN_NONE = 0;
+ public static final int FIREWALL_CHAIN_DOZABLE = 1;
+ public static final int FIREWALL_CHAIN_STANDBY = 2;
+
+ public static final String FIREWALL_CHAIN_NAME_NONE = "none";
+ public static final String FIREWALL_CHAIN_NAME_DOZABLE = "dozable";
+ public static final String FIREWALL_CHAIN_NAME_STANDBY = "standby";
+
private static final boolean ALLOW_PLATFORM_APP_POLICY = true;
/**