public static class WifiConfiguration.NetworkSelectionStatus extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DISABLED_ASSOCIATION_REJECTION
This network is disabled because multiple association rejects
|
static int |
DISABLED_AUTHENTICATION_FAILURE
This network is disabled because multiple authentication failure
|
static int |
DISABLED_AUTHENTICATION_NO_CREDENTIALS
This network is disabled due to WifiManager disable it explicitly
|
static int |
DISABLED_BAD_LINK
Deprecated.
it is not used any more.
This network is disabled because higher layer (>2) network is bad
|
static int |
DISABLED_BY_WIFI_MANAGER
This network is disabled due to WifiManager disable it explicitly
|
static int |
DISABLED_DHCP_FAILURE
This network is disabled because multiple DHCP failure
|
static int |
DISABLED_DNS_FAILURE
This network is disabled because of security network but no credentials
|
static int |
DISABLED_NO_INTERNET
This network is disabled because no Internet connected and user do not want
|
static int |
DISABLED_TLS_VERSION_MISMATCH
This network is disabled because EAP-TLS failure
|
static long |
INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP
Invalid time stamp for network selection disable
|
static int |
NETWORK_SELECTION_DISABLED_MAX
This Maximum disable reason value
|
static int |
NETWORK_SELECTION_ENABLE
Default value.
|
static int |
NETWORK_SELECTION_ENABLED
This network is allowed to join Quality Network Selection
|
static int |
NETWORK_SELECTION_PERMANENTLY_DISABLED
network was permanently disabled.
|
static int |
NETWORK_SELECTION_STATUS_MAX
Maximum Network selection status
|
static int |
NETWORK_SELECTION_TEMPORARY_DISABLED
network was temporary disabled.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDisableReasonCounter()
clear all the failure reason counters
|
void |
clearDisableReasonCounter(int reason)
clear the counter of a specific failure reason
|
void |
copy(WifiConfiguration.NetworkSelectionStatus source) |
ScanResult |
getCandidate()
get the temporary candidate of current network selection procedure
|
int |
getCandidateScore()
get the score of the temporary candidate of current network selection procedure
|
String |
getConnectChoice()
get user preferred choice over this configuration
|
long |
getConnectChoiceTimestamp()
get the timeStamp when user select a choice over this configuration
|
int |
getDisableReasonCounter(int reason)
get the disable counter of a specific reason
|
long |
getDisableTime() |
boolean |
getHasEverConnected() |
String |
getNetworkDisableReasonString()
get current network disable reason
|
static String |
getNetworkDisableReasonString(int reason) |
String |
getNetworkSelectionBSSID()
get current network Selection BSSID
|
int |
getNetworkSelectionDisableReason() |
int |
getNetworkSelectionStatus()
get current network network selection status
|
String |
getNetworkStatusString()
get current Quality network selection status
|
boolean |
getSeenInLastQualifiedNetworkSelection()
get whether this network is visible in latest Qualified Network Selection
|
void |
incrementDisableReasonCounter(int reason)
increment the counter of a specific failure reason
|
boolean |
isDisabledByReason(int reason)
check whether network is disabled by this reason
|
boolean |
isNetworkEnabled() |
boolean |
isNetworkPermanentlyDisabled() |
boolean |
isNetworkTemporaryDisabled() |
void |
readFromParcel(Parcel in) |
void |
setCandidate(ScanResult scanCandidate)
set the temporary candidate of current network selection procedure
|
void |
setCandidateScore(int score)
set the score of the temporary candidate of current network selection procedure
|
void |
setConnectChoice(String newConnectChoice)
set user preferred choice over this configuration
|
void |
setConnectChoiceTimestamp(long timeStamp)
set the timeStamp when user select a choice over this configuration
|
void |
setDisableReasonCounter(int reason,
int value)
set the counter of a specific failure reason
|
void |
setDisableTime(long timeStamp) |
void |
setHasEverConnected(boolean value) |
void |
setNetworkSelectionBSSID(String bssid)
set network Selection BSSID
|
void |
setNetworkSelectionDisableReason(int reason)
set Network disable reason
|
void |
setNetworkSelectionStatus(int status)
set current networ work selection status
|
void |
setSeenInLastQualifiedNetworkSelection(boolean seen)
set whether this network is visible in latest Qualified Network Selection
|
void |
writeToParcel(Parcel dest) |
public static final int NETWORK_SELECTION_ENABLED
public static final int NETWORK_SELECTION_TEMPORARY_DISABLED
public static final int NETWORK_SELECTION_PERMANENTLY_DISABLED
public static final int NETWORK_SELECTION_STATUS_MAX
public static final int NETWORK_SELECTION_ENABLE
public static final int DISABLED_BAD_LINK
public static final int DISABLED_ASSOCIATION_REJECTION
public static final int DISABLED_AUTHENTICATION_FAILURE
public static final int DISABLED_DHCP_FAILURE
public static final int DISABLED_DNS_FAILURE
public static final int DISABLED_TLS_VERSION_MISMATCH
public static final int DISABLED_AUTHENTICATION_NO_CREDENTIALS
public static final int DISABLED_NO_INTERNET
public static final int DISABLED_BY_WIFI_MANAGER
public static final int NETWORK_SELECTION_DISABLED_MAX
public static final long INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP
public void setSeenInLastQualifiedNetworkSelection(boolean seen)
seen
- value set to candidatepublic boolean getSeenInLastQualifiedNetworkSelection()
public void setCandidate(ScanResult scanCandidate)
scanCandidate
- ScanResult
the candidate set to mCandidatepublic ScanResult getCandidate()
ScanResult
temporary candidate of current network selection
procedurepublic void setCandidateScore(int score)
score
- value set to mCandidateScorepublic int getCandidateScore()
public String getConnectChoice()
public void setConnectChoice(String newConnectChoice)
newConnectChoice,
- the configKey of user preferred choice over this configurationpublic long getConnectChoiceTimestamp()
public void setConnectChoiceTimestamp(long timeStamp)
timeStamp,
- the timestamp set to connectChoiceTimestamp, expected timestamp should
be obtained from System.currentTimeMillispublic String getNetworkStatusString()
public void setHasEverConnected(boolean value)
public boolean getHasEverConnected()
public static String getNetworkDisableReasonString(int reason)
reason
- specific error reasonpublic String getNetworkDisableReasonString()
public int getNetworkSelectionStatus()
public boolean isNetworkEnabled()
public boolean isNetworkTemporaryDisabled()
public boolean isNetworkPermanentlyDisabled()
public void setNetworkSelectionStatus(int status)
status
- network selection status to setpublic int getNetworkSelectionDisableReason()
public void setNetworkSelectionDisableReason(int reason)
reason
- Network disable reasonpublic boolean isDisabledByReason(int reason)
reason
- a specific disable reasonpublic void setDisableTime(long timeStamp)
timeStamp
- Set when current network is disabled in millisecond since January 1,
1970 00:00:00.0 UTCpublic long getDisableTime()
public int getDisableReasonCounter(int reason)
reason
- specific failure reasonthrow
- IllegalArgumentException for illegal inputpublic void setDisableReasonCounter(int reason, int value)
reason
- reason for disable errorvalue
- the counter value for this specific reasonthrow
- IllegalArgumentException for illegal inputpublic void incrementDisableReasonCounter(int reason)
reason
- a specific failure reasonthrow
- IllegalArgumentException for illegal inputpublic void clearDisableReasonCounter(int reason)
reason
- a specific failure reasonthrow
- IllegalArgumentException for illegal inputpublic void clearDisableReasonCounter()
public String getNetworkSelectionBSSID()
public void setNetworkSelectionBSSID(String bssid)
bssid
- The target BSSID for assocaitionpublic void copy(WifiConfiguration.NetworkSelectionStatus source)
public void writeToParcel(Parcel dest)
public void readFromParcel(Parcel in)