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

Commit 6395988c authored by David Su's avatar David Su
Browse files

WifiManager: Promote EXTRA_WIFI_AP_FAILURE_REASON to @SystemApi

EXTRA_WIFI_AP_FAILURE_REASON is @hide, but used
by Android Auto for debugging purposes. Promote
it to @SystemApi.

Bug: 143970861
Test: compiles
Change-Id: I427ea9a2af0c74cb3edfb84fbb2305cd76355185
parent 5c495245
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5980,6 +5980,7 @@ package android.net.wifi {
    field public static final String EXTRA_OSU_NETWORK = "android.net.wifi.extra.OSU_NETWORK";
    field public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state";
    field public static final String EXTRA_URL = "android.net.wifi.extra.URL";
    field public static final String EXTRA_WIFI_AP_FAILURE_REASON = "android.net.wifi.extra.WIFI_AP_FAILURE_REASON";
    field public static final String EXTRA_WIFI_AP_INTERFACE_NAME = "android.net.wifi.extra.WIFI_AP_INTERFACE_NAME";
    field public static final String EXTRA_WIFI_AP_MODE = "android.net.wifi.extra.WIFI_AP_MODE";
    field public static final String EXTRA_WIFI_AP_STATE = "wifi_state";
+13 −6
Original line number Diff line number Diff line
@@ -545,15 +545,22 @@ public class WifiManager {
    public static final String EXTRA_WIFI_AP_STATE = "wifi_state";

    /**
     * The look up key for an int that indicates why softAP started failed
     * currently support general and no_channel
     * @see #SAP_START_FAILURE_GENERAL
     * @see #SAP_START_FAILURE_NO_CHANNEL
     * @see #SAP_START_FAILURE_UNSUPPORTED_CONFIGURATION
     * An extra containing the int error code for Soft AP start failure.
     * Can be obtained from the {@link #WIFI_AP_STATE_CHANGED_ACTION} using
     * {@link android.content.Intent#getIntExtra}.
     * This extra will only be attached if {@link #EXTRA_WIFI_AP_STATE} is
     * attached and is equal to {@link #WIFI_AP_STATE_FAILED}.
     *
     * The error code will be one of:
     * {@link #SAP_START_FAILURE_GENERAL},
     * {@link #SAP_START_FAILURE_NO_CHANNEL},
     * {@link #SAP_START_FAILURE_UNSUPPORTED_CONFIGURATION}
     *
     * @hide
     */
    public static final String EXTRA_WIFI_AP_FAILURE_REASON = "wifi_ap_error_code";
    @SystemApi
    public static final String EXTRA_WIFI_AP_FAILURE_REASON =
            "android.net.wifi.extra.WIFI_AP_FAILURE_REASON";
    /**
     * The previous Wi-Fi state.
     *