public class WifiLinkQualityInfo extends LinkQualityInfo
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CREATOR, NORMALIZED_MAX_SIGNAL_STRENGTH, NORMALIZED_MIN_SIGNAL_STRENGTH, NORMALIZED_SIGNAL_STRENGTH_RANGE, OBJECT_TYPE_LINK_QUALITY_INFO, OBJECT_TYPE_MOBILE_LINK_QUALITY_INFO, OBJECT_TYPE_WIFI_LINK_QUALITY_INFO, UNKNOWN_INT, UNKNOWN_LONG
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
WifiLinkQualityInfo() |
Modifier and Type | Method and Description |
---|---|
static WifiLinkQualityInfo |
createFromParcelBody(Parcel in) |
String |
getBssid()
returns BSSID of the access point
|
int |
getRssi()
returns RSSI of the network in raw form
|
long |
getTxBad()
returns number of transmitted packets that encountered errors
|
long |
getTxGood()
returns number of packets transmitted without error
|
int |
getType()
returns Wifi network type
|
void |
setBssid(String bssid) |
void |
setRssi(int rssi) |
void |
setTxBad(long txBad) |
void |
setTxGood(long txGood) |
void |
setType(int type) |
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface.
|
describeContents, getDataSampleDuration, getLastDataSampleTime, getNetworkType, getNormalizedSignalStrength, getPacketCount, getPacketErrorCount, getTheoreticalLatency, getTheoreticalRxBandwidth, getTheoreticalTxBandwidth, initializeFromParcel, setDataSampleDuration, setLastDataSampleTime, setNetworkType, setNormalizedSignalStrength, setPacketCount, setPacketErrorCount, setTheoreticalLatency, setTheoreticalRxBandwidth, setTheoreticalTxBandwidth, writeToParcel
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
writeToParcel
in class LinkQualityInfo
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public static WifiLinkQualityInfo createFromParcelBody(Parcel in)
public int getType()
LinkQualityInfo.UNKNOWN_INT
public void setType(int type)
public String getBssid()
XX:XX:XX:XX:XX:XX
or nullpublic void setBssid(String bssid)
public int getRssi()
LinkQualityInfo.UNKNOWN_INT
public void setRssi(int rssi)
public long getTxGood()
LinkQualityInfo.UNKNOWN_LONG
public void setTxGood(long txGood)
public long getTxBad()
LinkQualityInfo.UNKNOWN_LONG
public void setTxBad(long txBad)