Improve JavaDoc for FirewallRule constants am: 011a7f51c1

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2046447

Change-Id: I318f2a08beacd7ec96ff74b2a8ddc493fee86a65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
markchien 2022-03-29 08:45:55 +00:00 • committed by Automerger Merge Worker
commit 04b2f3c7df

View file

@ -995,21 +995,25 @@ public class ConnectivityManager {
// LINT.ThenChange(packages/modules/Connectivity/service/native/include/Common.h)
/**
* Specify default rule which may allow or drop packets depending on existing policy.
* A firewall rule which allows or drops packets depending on existing policy.
* Used by {@link #setUidFirewallRule(int, int, int)} to follow existing policy to handle
* specific uid's packets in specific firewall chain.
* @hide
*/
@SystemApi(client = MODULE_LIBRARIES)
public static final int FIREWALL_RULE_DEFAULT = 0;
/**
* Specify allow rule which allows packets.
* A firewall rule which allows packets. Used by {@link #setUidFirewallRule(int, int, int)} to
* allow specific uid's packets in specific firewall chain.
* @hide
*/
@SystemApi(client = MODULE_LIBRARIES)
public static final int FIREWALL_RULE_ALLOW = 1;
/**
* Specify deny rule which drops packets.
* A firewall rule which drops packets. Used by {@link #setUidFirewallRule(int, int, int)} to
* drop specific uid's packets in specific firewall chain.
* @hide
*/
@SystemApi(client = MODULE_LIBRARIES)