WifiConfiguration: Expose NetworkSelectionStatus strings

Make the status/disable reason string arrays public to be used in
XmlUtil for restoring of data.

BUG: 30448209
Change-Id: If8201df9397edcc4251e5b6aa4d613212fb576ad
TEST: Unit tests
(cherry picked from commit 23173a2efa)
This commit is contained in:
Roshan Pius
2016-07-28 10:13:21 -07:00
committed by Mitchell Wills
parent 6bc2a92a59
commit 47fb68bd24

View File

@@ -806,7 +806,7 @@ public class WifiConfiguration implements Parcelable {
* Quality network selection status String (for debug purpose). Use Quality network
* selection status value as index to extec the corresponding debug string
*/
private static final String[] QUALITY_NETWORK_SELECTION_STATUS = {
public static final String[] QUALITY_NETWORK_SELECTION_STATUS = {
"NETWORK_SELECTION_ENABLED",
"NETWORK_SELECTION_TEMPORARY_DISABLED",
"NETWORK_SELECTION_PERMANENTLY_DISABLED"};
@@ -868,7 +868,7 @@ public class WifiConfiguration implements Parcelable {
/**
* Quality network selection disable reason String (for debug purpose)
*/
private static final String[] QUALITY_NETWORK_SELECTION_DISABLE_REASON = {
public static final String[] QUALITY_NETWORK_SELECTION_DISABLE_REASON = {
"NETWORK_SELECTION_ENABLE",
"NETWORK_SELECTION_DISABLED_BAD_LINK",
"NETWORK_SELECTION_DISABLED_ASSOCIATION_REJECTION ",