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

Commit 833dcd4b authored by Jeff Davidson's avatar Jeff Davidson Committed by Android (Google) Code Review
Browse files

Merge "Improve documentation of ScanResult and WifiInfo." into lmp-dev

parents 550bd552 e4ce6198
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@ package android.net.wifi;

import android.net.wifi.passpoint.WifiPasspointInfo;
import android.net.wifi.passpoint.WifiPasspointManager;
import android.os.Parcelable;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Describes information about a detected access point. In addition
@@ -48,7 +48,10 @@ public class ScanResult implements Parcelable {
     */
    public String capabilities;
    /**
     * The detected signal level in dBm.
     * The detected signal level in dBm, also known as the RSSI.
     *
     * <p>Use {@link android.net.wifi.WifiManager#calculateSignalLevel} to convert this number into
     * an absolute signal level which can be displayed to a user.
     */
    public int level;
    /**
+5 −1
Original line number Diff line number Diff line
@@ -323,7 +323,11 @@ public class WifiInfo implements Parcelable {
    /**
     * Returns the received signal strength indicator of the current 802.11
     * network, in dBm.
     * @return the RSSI, in the range -127 to 200
     *
     * <p>Use {@link android.net.wifi.WifiManager#calculateSignalLevel} to convert this number into
     * an absolute signal level which can be displayed to a user.
     *
     * @return the RSSI.
     */
    public int getRssi() {
        return mRssi;