Loading api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -21515,10 +21515,13 @@ package android.net.wifi { method public void writeToParcel(android.os.Parcel, int); field public int band; field public android.net.wifi.WifiScanner.ChannelSpec[] channels; field public int exponent; field public int maxPeriodInMs; field public int maxScansToCache; field public int numBssidsPerScan; field public int periodInMs; field public int reportEvents; field public int stepCount; } public static abstract interface WifiScanner.WifiChangeListener implements android.net.wifi.WifiScanner.ActionListener { wifi/java/android/net/wifi/WifiScanner.java +22 −0 Original line number Diff line number Diff line Loading @@ -168,6 +168,22 @@ public class WifiScanner { * to wake up at fixed interval */ public int maxScansToCache; /** * if maxPeriodInMs is non zero or different than period, then this bucket is * an exponential backoff bucket and the scan period will grow exponentially * as per formula: actual_period(N) = period ^ (N/(step_count+1)) * to a maximum period of max_period. */ public int maxPeriodInMs; /** * for exponential back off bucket: multiplier: new_period=old_period*exponent */ public int exponent; /** * for exponential back off bucket, number of scans performed at a given * period and until the exponent is applied */ public int stepCount; /** Implement the Parcelable interface {@hide} */ public int describeContents() { Loading @@ -181,6 +197,9 @@ public class WifiScanner { dest.writeInt(reportEvents); dest.writeInt(numBssidsPerScan); dest.writeInt(maxScansToCache); dest.writeInt(maxPeriodInMs); dest.writeInt(exponent); dest.writeInt(stepCount); if (channels != null) { dest.writeInt(channels.length); Loading @@ -206,6 +225,9 @@ public class WifiScanner { settings.reportEvents = in.readInt(); settings.numBssidsPerScan = in.readInt(); settings.maxScansToCache = in.readInt(); settings.maxPeriodInMs = in.readInt(); settings.exponent = in.readInt(); settings.stepCount = in.readInt(); int num_channels = in.readInt(); settings.channels = new ChannelSpec[num_channels]; for (int i = 0; i < num_channels; i++) { Loading Loading
api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -21515,10 +21515,13 @@ package android.net.wifi { method public void writeToParcel(android.os.Parcel, int); field public int band; field public android.net.wifi.WifiScanner.ChannelSpec[] channels; field public int exponent; field public int maxPeriodInMs; field public int maxScansToCache; field public int numBssidsPerScan; field public int periodInMs; field public int reportEvents; field public int stepCount; } public static abstract interface WifiScanner.WifiChangeListener implements android.net.wifi.WifiScanner.ActionListener {
wifi/java/android/net/wifi/WifiScanner.java +22 −0 Original line number Diff line number Diff line Loading @@ -168,6 +168,22 @@ public class WifiScanner { * to wake up at fixed interval */ public int maxScansToCache; /** * if maxPeriodInMs is non zero or different than period, then this bucket is * an exponential backoff bucket and the scan period will grow exponentially * as per formula: actual_period(N) = period ^ (N/(step_count+1)) * to a maximum period of max_period. */ public int maxPeriodInMs; /** * for exponential back off bucket: multiplier: new_period=old_period*exponent */ public int exponent; /** * for exponential back off bucket, number of scans performed at a given * period and until the exponent is applied */ public int stepCount; /** Implement the Parcelable interface {@hide} */ public int describeContents() { Loading @@ -181,6 +197,9 @@ public class WifiScanner { dest.writeInt(reportEvents); dest.writeInt(numBssidsPerScan); dest.writeInt(maxScansToCache); dest.writeInt(maxPeriodInMs); dest.writeInt(exponent); dest.writeInt(stepCount); if (channels != null) { dest.writeInt(channels.length); Loading @@ -206,6 +225,9 @@ public class WifiScanner { settings.reportEvents = in.readInt(); settings.numBssidsPerScan = in.readInt(); settings.maxScansToCache = in.readInt(); settings.maxPeriodInMs = in.readInt(); settings.exponent = in.readInt(); settings.stepCount = in.readInt(); int num_channels = in.readInt(); settings.channels = new ChannelSpec[num_channels]; for (int i = 0; i < num_channels; i++) { Loading