diff options
author | Jeff Davidson <jpd@google.com> | 2014-08-21 02:47:05 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-21 02:47:05 +0000 |
commit | 2cfe5359eb0a86891954bb53a534d40dfadc689b (patch) | |
tree | 973c383aaded8781b9be4993ccf438dd3b10124d /wifi | |
parent | 5a4b32fa5c73b710d934069fb18ffc75f92e0f2f (diff) | |
parent | a10e152909aab9e19a0e2cfef38bd96c127801cd (diff) | |
download | frameworks_base-2cfe5359eb0a86891954bb53a534d40dfadc689b.zip frameworks_base-2cfe5359eb0a86891954bb53a534d40dfadc689b.tar.gz frameworks_base-2cfe5359eb0a86891954bb53a534d40dfadc689b.tar.bz2 |
am 5e3130d6: am fa141926: Merge "Improve documentation of ScanResult and WifiInfo." into lmp-dev
* commit '5e3130d63a745ad6cd3ccf535845128ae744d092':
Improve documentation of ScanResult and WifiInfo.
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/ScanResult.java | 7 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiInfo.java | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/wifi/java/android/net/wifi/ScanResult.java b/wifi/java/android/net/wifi/ScanResult.java index a561dc2..a01a6b6 100644 --- a/wifi/java/android/net/wifi/ScanResult.java +++ b/wifi/java/android/net/wifi/ScanResult.java @@ -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; /** diff --git a/wifi/java/android/net/wifi/WifiInfo.java b/wifi/java/android/net/wifi/WifiInfo.java index e808136..44a7108 100644 --- a/wifi/java/android/net/wifi/WifiInfo.java +++ b/wifi/java/android/net/wifi/WifiInfo.java @@ -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; |