Update VPN event strings for the IKE lib update

With a recent update, the IKEv2 library exposed the internal
errors happening on the link. This had us realize one error
code was a little bit ill-named and the other can't be exposed
because the system doesn't know about it happening.

Update the name of the events for this.

Test: m
Change-Id: I228b8309acbb5f599b908633923b16cd09e9c0af
This commit is contained in:
Chalard Jean 2022-02-08 11:18:24 +09:00
parent 1962b10531
commit 87d4c529e0

View File

@ -210,26 +210,19 @@ public class VpnManager {
*/
public static final int ERROR_CODE_NETWORK_TIMEOUT = 1;
/**
* An error code to indicate that the connection is refused.
*
* @hide
*/
public static final int ERROR_CODE_NETWORK_CONNECT = 2;
/**
* An error code to indicate the connection was reset. (e.g. SocketException)
*
* @hide
*/
public static final int ERROR_CODE_NETWORK_CONNECTION_RESET = 3;
public static final int ERROR_CODE_NETWORK_RESET = 2;
/**
* An error code to indicate that there is an IOException.
*
* @hide
*/
public static final int ERROR_CODE_NETWORK_IO = 4;
public static final int ERROR_CODE_NETWORK_IO = 3;
/** @hide */
@IntDef(value = {TYPE_VPN_NONE, TYPE_VPN_SERVICE, TYPE_VPN_PLATFORM, TYPE_VPN_LEGACY,