/**@class android.net.NetworkPolicyManager
@extends java.lang.Object

 Manager for creating and modifying network policy rules.

 {@hide}
*/
var NetworkPolicyManager = {

/**No specific network policy, use system default. */
POLICY_NONE : "0",
/**Reject network usage on metered networks when application in background. */
POLICY_REJECT_METERED_BACKGROUND : "1",
/**Allow network use (metered or not) in the background in battery save mode. */
POLICY_ALLOW_BACKGROUND_BATTERY_SAVE : "2",
/**All network traffic should be allowed. */
RULE_ALLOW_ALL : "0",
/**Reject traffic on metered networks. */
RULE_REJECT_METERED : "1",
/**Reject traffic on all networks. */
RULE_REJECT_ALL : "2",
/***/
FIREWALL_RULE_DEFAULT : "0",
/***/
FIREWALL_RULE_ALLOW : "1",
/***/
FIREWALL_RULE_DENY : "2",
/***/
FIREWALL_TYPE_WHITELIST : "0",
/***/
FIREWALL_TYPE_BLACKLIST : "1",
/***/
FIREWALL_CHAIN_NONE : "0",
/***/
FIREWALL_CHAIN_DOZABLE : "1",
/***/
FIREWALL_CHAIN_STANDBY : "2",
/***/
FIREWALL_CHAIN_NAME_NONE : "none",
/***/
FIREWALL_CHAIN_NAME_DOZABLE : "dozable",
/***/
FIREWALL_CHAIN_NAME_STANDBY : "standby",
/** {@link Intent} extra that indicates which {@link android.net.NetworkTemplate} rule it
 applies to.
*/
EXTRA_NETWORK_TEMPLATE : "android.net.NETWORK_TEMPLATE",
/**
*/
from : function(  ) {},

/**Set policy flags for specific UID.
@param {Number} policy {@link #POLICY_NONE} or combination of flags like
 {@link #POLICY_REJECT_METERED_BACKGROUND} or {@link #POLICY_ALLOW_BACKGROUND_BATTERY_SAVE}.
*/
setUidPolicy : function(  ) {},

/**Add policy flags for specific UID.  The given policy bits will be set for
 the uid.  Policy flags may be either
 {@link #POLICY_REJECT_METERED_BACKGROUND} or {@link #POLICY_ALLOW_BACKGROUND_BATTERY_SAVE}.
*/
addUidPolicy : function(  ) {},

/**Clear/remove policy flags for specific UID.  The given policy bits will be set for
 the uid.  Policy flags may be either
 {@link #POLICY_REJECT_METERED_BACKGROUND} or {@link #POLICY_ALLOW_BACKGROUND_BATTERY_SAVE}.
*/
removeUidPolicy : function(  ) {},

/**
*/
getUidPolicy : function(  ) {},

/**
*/
getUidsWithPolicy : function(  ) {},

/**
*/
registerListener : function(  ) {},

/**
*/
unregisterListener : function(  ) {},

/**
*/
setNetworkPolicies : function(  ) {},

/**
*/
getNetworkPolicies : function(  ) {},

/**
*/
setRestrictBackground : function(  ) {},

/**
*/
getRestrictBackground : function(  ) {},

/**Resets network policy settings back to factory defaults.
@hide 
*/
factoryReset : function(  ) {},

/**Compute the last cycle boundary for the given {@link android.net.NetworkPolicy}. For
 example, if cycle day is 20th, and today is June 15th, it will return May
 20th. When cycle day doesn't exist in current month, it snaps to the 1st
 of following month.
@hide 
*/
computeLastCycleBoundary : function(  ) {},

/**{@hide}
*/
computeNextCycleBoundary : function(  ) {},

/**Snap to the cycle day for the current month given; when cycle day doesn't
 exist, it snaps to last second of current month.
@hide 
*/
snapToCycleDay : function(  ) {},

/**Check if given UID can have a {@link #setUidPolicy(int, int)} defined,
 usually to protect critical system services.
*/
isUidValidForPolicy : function(  ) {},

/**{@hide}
*/
dumpPolicy : function(  ) {},

/**{@hide}
*/
dumpRules : function(  ) {},


};