FileDocCategorySizeDatePackage
WifiLinkQualityInfo.javaAPI DocAndroid 5.1 API3547Thu Mar 12 22:22:10 GMT 2015android.net

WifiLinkQualityInfo

public class WifiLinkQualityInfo extends LinkQualityInfo
Class that represents useful attributes of wifi network links such as the upload/download throughput or error rate etc.
hide

Fields Summary
private int
mType
private String
mBssid
private int
mRssi
private long
mTxGood
private long
mTxBad
Constructors Summary
Methods Summary
public static android.net.WifiLinkQualityInfocreateFromParcelBody(android.os.Parcel in)

hide

        WifiLinkQualityInfo li = new WifiLinkQualityInfo();

        li.initializeFromParcel(in);

        li.mType =  in.readInt();
        li.mRssi =  in.readInt();
        li.mTxGood =  in.readLong();
        li.mTxBad =  in.readLong();

        li.mBssid =  in.readString();

        return li;
    
public java.lang.StringgetBssid()
returns BSSID of the access point

return
the BSSID, in the form of a six-byte MAC address: {@code XX:XX:XX:XX:XX:XX} or null

        return mBssid;
    
public intgetRssi()
returns RSSI of the network in raw form

return
un-normalized RSSI or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mRssi;
    
public longgetTxBad()
returns number of transmitted packets that encountered errors

return
number of packets or {@link android.net.LinkQualityInfo#UNKNOWN_LONG}

        return mTxBad;
    
public longgetTxGood()
returns number of packets transmitted without error

return
number of packets or {@link android.net.LinkQualityInfo#UNKNOWN_LONG}

        return mTxGood;
    
public intgetType()
returns Wifi network type

return
network type or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mType;
    
public voidsetBssid(java.lang.String bssid)

hide

        mBssid = bssid;
    
public voidsetRssi(int rssi)

hide

        mRssi = rssi;
    
public voidsetTxBad(long txBad)

hide

        mTxBad = txBad;
    
public voidsetTxGood(long txGood)

hide

        mTxGood = txGood;
    
public voidsetType(int type)

hide

        mType = type;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Implement the Parcelable interface.

hide


              
    
          
        super.writeToParcel(dest, flags, OBJECT_TYPE_WIFI_LINK_QUALITY_INFO);

        dest.writeInt(mType);
        dest.writeInt(mRssi);
        dest.writeLong(mTxGood);
        dest.writeLong(mTxBad);

        dest.writeString(mBssid);