Expose MATCH_PROXY as a module-lib API.

It is used by clockwork.

Test: m update-api
Change-Id: I5676f883141afca1511c425b7c36683a6c6bfb9f
This commit is contained in:
Lorenzo Colitti
2022-02-04 03:05:59 +09:00
committed by Remi NGUYEN VAN
parent 7ede3024bc
commit 889703ce18

View File

@@ -79,7 +79,8 @@ public final class NetworkTemplate implements Parcelable {
MATCH_WIFI,
MATCH_ETHERNET,
MATCH_BLUETOOTH,
MATCH_CARRIER
MATCH_PROXY,
MATCH_CARRIER,
})
public @interface TemplateMatchRule{}
@@ -104,9 +105,8 @@ public final class NetworkTemplate implements Parcelable {
/** Match rule to match bluetooth networks. */
public static final int MATCH_BLUETOOTH = 8;
/**
* Match rule to match networks with {@link Connectivity#TYPE_PROXY} as the legacy network type.
*
* @hide
* Match rule to match networks with {@link ConnectivityManager#TYPE_PROXY} as the legacy
* network type.
*/
public static final int MATCH_PROXY = 9;
/**