Define new constants of ACTION_VPN_MANAGER_EVENT
CTS-Coverage-Bug: 225010642 Bug: 225010642 Test: N/A Change-Id: I332397f4f65596740670d96c72c85ad216d2a1bc
This commit is contained in:
@@ -25512,6 +25512,7 @@ package android.net {
|
||||
method @NonNull public String startProvisionedVpnProfileSession();
|
||||
method public void stopProvisionedVpnProfile();
|
||||
field public static final String ACTION_VPN_MANAGER_EVENT = "android.net.action.VPN_MANAGER_EVENT";
|
||||
field public static final String CATEGORY_EVENT_ALWAYS_ON_STATE_CHANGED = "android.net.category.EVENT_ALWAYS_ON_STATE_CHANGED";
|
||||
field public static final String CATEGORY_EVENT_DEACTIVATED_BY_USER = "android.net.category.EVENT_DEACTIVATED_BY_USER";
|
||||
field public static final String CATEGORY_EVENT_IKE_ERROR = "android.net.category.EVENT_IKE_ERROR";
|
||||
field public static final String CATEGORY_EVENT_NETWORK_ERROR = "android.net.category.EVENT_NETWORK_ERROR";
|
||||
@@ -25528,6 +25529,7 @@ package android.net {
|
||||
field public static final String EXTRA_UNDERLYING_LINK_PROPERTIES = "android.net.extra.UNDERLYING_LINK_PROPERTIES";
|
||||
field public static final String EXTRA_UNDERLYING_NETWORK = "android.net.extra.UNDERLYING_NETWORK";
|
||||
field public static final String EXTRA_UNDERLYING_NETWORK_CAPABILITIES = "android.net.extra.UNDERLYING_NETWORK_CAPABILITIES";
|
||||
field public static final String EXTRA_VPN_PROFILE_STATE = "android.net.extra.VPN_PROFILE_STATE";
|
||||
}
|
||||
|
||||
public class VpnService extends android.app.Service {
|
||||
|
||||
@@ -160,6 +160,23 @@ public class VpnManager {
|
||||
public static final String CATEGORY_EVENT_DEACTIVATED_BY_USER =
|
||||
"android.net.category.EVENT_DEACTIVATED_BY_USER";
|
||||
|
||||
/**
|
||||
* The always-on state of this VPN was changed
|
||||
*
|
||||
* <p>This may be the result of a user changing VPN settings, or a Device Policy Manager app
|
||||
* having changed the VPN policy.
|
||||
*/
|
||||
@SdkConstant(SdkConstant.SdkConstantType.INTENT_CATEGORY)
|
||||
public static final String CATEGORY_EVENT_ALWAYS_ON_STATE_CHANGED =
|
||||
"android.net.category.EVENT_ALWAYS_ON_STATE_CHANGED";
|
||||
|
||||
/**
|
||||
* The VpnProfileState at the time that this event occurred.
|
||||
*
|
||||
* <p>This extra may be null if the VPN was revoked by the user, or the profile was deleted.
|
||||
*/
|
||||
public static final String EXTRA_VPN_PROFILE_STATE = "android.net.extra.VPN_PROFILE_STATE";
|
||||
|
||||
/**
|
||||
* The key of the session that experienced this event, as a {@code String}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user