New recent failure reason for MBO
To support displaying MBO failure reason in wifi picker UI. Bug: 155697192 Test: atest android.net.wifi Change-Id: I953d46c0fe55e174df5879107ee683a640233e5b
This commit is contained in:
@@ -7208,6 +7208,7 @@ package android.net.wifi {
|
||||
field @Deprecated public static final int RANDOMIZATION_NONE = 0; // 0x0
|
||||
field @Deprecated public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1
|
||||
field @Deprecated public static final int RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA = 17; // 0x11
|
||||
field @Deprecated public static final int RECENT_FAILURE_MBO_OCE_DISCONNECT = 1001; // 0x3e9
|
||||
field @Deprecated public static final int RECENT_FAILURE_NONE = 0; // 0x0
|
||||
field @Deprecated public boolean allowAutojoin;
|
||||
field @Deprecated public int carrierId;
|
||||
|
||||
@@ -331,6 +331,7 @@ package android.net.wifi {
|
||||
field @Deprecated public static final int RANDOMIZATION_NONE = 0; // 0x0
|
||||
field @Deprecated public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1
|
||||
field @Deprecated public static final int RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA = 17; // 0x11
|
||||
field @Deprecated public static final int RECENT_FAILURE_MBO_OCE_DISCONNECT = 1001; // 0x3e9
|
||||
field @Deprecated public static final int RECENT_FAILURE_NONE = 0; // 0x0
|
||||
field @Deprecated public boolean allowAutojoin;
|
||||
field @Deprecated public int carrierId;
|
||||
|
||||
@@ -2037,7 +2037,8 @@ public class WifiConfiguration implements Parcelable {
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(prefix = "RECENT_FAILURE_", value = {
|
||||
RECENT_FAILURE_NONE,
|
||||
RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA})
|
||||
RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA,
|
||||
RECENT_FAILURE_MBO_OCE_DISCONNECT})
|
||||
public @interface RecentFailureReason {}
|
||||
|
||||
/**
|
||||
@@ -2054,6 +2055,13 @@ public class WifiConfiguration implements Parcelable {
|
||||
@SystemApi
|
||||
public static final int RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA = 17;
|
||||
|
||||
/**
|
||||
* This network recently disconnected as a result of MBO/OCE.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int RECENT_FAILURE_MBO_OCE_DISCONNECT = 1001;
|
||||
|
||||
/**
|
||||
* Get the failure reason for the most recent connection attempt, or
|
||||
* {@link #RECENT_FAILURE_NONE} if there was no failure.
|
||||
|
||||
Reference in New Issue
Block a user