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

Commit 1ac50cb3 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Add an UNKNOWN_UID constant to WifiConfiguration.

This value will be used to indicate that one of the various UIDs
tracked stored in the WifiConfiguration is unknown. Currently the
code just uses "-1" everywhere for this purpose; a constant is
clearer.

Bug: 20081183
Change-Id: Id865da9284f642587eed11f67685e5b12ce772c2
parent 3abfa03e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -194,6 +194,9 @@ public class WifiConfiguration implements Parcelable {
    /** @hide */
    public static final int DISABLED_BY_WIFI_MANAGER                        = 5;

    /** @hide */
    public static final int UNKNOWN_UID = -1;

    /**
     * The ID number that the supplicant uses to identify this
     * network configuration entry. This must be passed as an argument
@@ -1131,7 +1134,9 @@ public class WifiConfiguration implements Parcelable {
        if (creatorName != null) sbuf.append(" cname=" + creatorName);
        if (lastUpdateUid != 0) sbuf.append(" luid=" + lastUpdateUid);
        if (lastUpdateName != null) sbuf.append(" lname=" + lastUpdateName);
        sbuf.append(" lcuid=" + lastConnectUid);
        sbuf.append(" userApproved=" + userApprovedAsString(userApproved));
        sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);

        if (this.lastConnected != 0) {
            sbuf.append('\n');