Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87d4c529 authored by Chalard Jean's avatar Chalard Jean
Browse files

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
parent 1962b105
Loading
Loading
Loading
Loading
+2 −9
Original line number Original line Diff line number Diff line
@@ -210,26 +210,19 @@ public class VpnManager {
     */
     */
    public static final int ERROR_CODE_NETWORK_TIMEOUT = 1;
    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)
     * An error code to indicate the connection was reset. (e.g. SocketException)
     *
     *
     * @hide
     * @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.
     * An error code to indicate that there is an IOException.
     *
     *
     * @hide
     * @hide
     */
     */
    public static final int ERROR_CODE_NETWORK_IO = 4;
    public static final int ERROR_CODE_NETWORK_IO = 3;


    /** @hide */
    /** @hide */
    @IntDef(value = {TYPE_VPN_NONE, TYPE_VPN_SERVICE, TYPE_VPN_PLATFORM, TYPE_VPN_LEGACY,
    @IntDef(value = {TYPE_VPN_NONE, TYPE_VPN_SERVICE, TYPE_VPN_PLATFORM, TYPE_VPN_LEGACY,