FileDocCategorySizeDatePackage
INetworkPolicyManager.javaAPI DocAndroid 5.1 API17197Sat Mar 14 05:48:02 GMT 2015android.net

INetworkPolicyManager

public interface INetworkPolicyManager implements android.os.IInterface
Interface that creates and modifies network policy rules. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidaddUidPolicy(int uid, int policy)

public android.net.NetworkPolicy[]getNetworkPolicies()

public android.net.NetworkQuotaInfogetNetworkQuotaInfo(android.net.NetworkState state)

public int[]getPowerSaveAppIdWhitelist()

public booleangetRestrictBackground()

public intgetUidPolicy(int uid)

public int[]getUidsWithPolicy(int policy)

public booleanisNetworkMetered(android.net.NetworkState state)

public booleanisUidForeground(int uid)

public voidregisterListener(android.net.INetworkPolicyListener listener)

public voidremoveUidPolicy(int uid, int policy)

public voidsetNetworkPolicies(android.net.NetworkPolicy[] policies)
Control network policies atomically.

public voidsetRestrictBackground(boolean restrictBackground)
Control if background data is restricted system-wide.

public voidsetUidPolicy(int uid, int policy)
Control UID policies.

public voidsnoozeLimit(android.net.NetworkTemplate template)
Snooze limit on policy matching given template.

public voidunregisterListener(android.net.INetworkPolicyListener listener)