OSDN Git Service

Merge "WifiConfiguration: Correct documentation for priority"
authorRoshan Pius <rpius@google.com>
Fri, 17 Mar 2017 17:28:13 +0000 (17:28 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Fri, 17 Mar 2017 17:28:13 +0000 (17:28 +0000)
am: f5fa26bf25

Change-Id: I37fd50fac3dc6c2db8c677d1a265fca73babf5da

1  2 
wifi/java/android/net/wifi/WifiConfiguration.java

@@@ -307,7 -307,7 +307,7 @@@ public class WifiConfiguration implemen
      /**
       * Priority determines the preference given to a network by {@code wpa_supplicant}
       * when choosing an access point with which to associate.
-      * @deprecated Priority is no longer used.
+      * @deprecated This field does not exist anymore.
       */
      @Deprecated
      public int priority;
  
      /**
       * @hide
 +     * Set to true if this is a Carrier Network, else set to false.
 +     */
 +    public boolean isCarrierNetwork = false;
 +
 +    /**
 +     * @hide
       * A summary of the RSSI and Band status for that configuration
       * This is used as a temporary value by the auto-join controller
       */
          sbuf.append(" lcuid=" + lastConnectUid);
          sbuf.append(" userApproved=" + userApprovedAsString(userApproved));
          sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);
 +        sbuf.append(" isCarrierNetwork=" + isCarrierNetwork);
          sbuf.append(" ");
  
          if (this.lastConnected != 0) {
              userApproved = source.userApproved;
              numNoInternetAccessReports = source.numNoInternetAccessReports;
              noInternetAccessExpected = source.noInternetAccessExpected;
 +            isCarrierNetwork = source.isCarrierNetwork;
              creationTime = source.creationTime;
              updateTime = source.updateTime;
              shared = source.shared;
          dest.writeInt(userApproved);
          dest.writeInt(numNoInternetAccessReports);
          dest.writeInt(noInternetAccessExpected ? 1 : 0);
 +        dest.writeInt(isCarrierNetwork ? 1 : 0);
          dest.writeInt(shared ? 1 : 0);
          dest.writeString(mPasspointManagementObjectTree);
      }
                  config.userApproved = in.readInt();
                  config.numNoInternetAccessReports = in.readInt();
                  config.noInternetAccessExpected = in.readInt() != 0;
 +                config.isCarrierNetwork = in.readInt() != 0;
                  config.shared = in.readInt() != 0;
                  config.mPasspointManagementObjectTree = in.readString();
                  return config;