FileDocCategorySizeDatePackage
MobileLinkQualityInfo.javaAPI DocAndroid 5.1 API7315Thu Mar 12 22:22:10 GMT 2015android.net

MobileLinkQualityInfo

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

Fields Summary
private int
mMobileNetworkType
private int
mRssi
private int
mGsmErrorRate
private int
mCdmaDbm
private int
mCdmaEcio
private int
mEvdoDbm
private int
mEvdoEcio
private int
mEvdoSnr
private int
mLteSignalStrength
private int
mLteRsrp
private int
mLteRsrq
private int
mLteRssnr
private int
mLteCqi
Constructors Summary
Methods Summary
public static android.net.MobileLinkQualityInfocreateFromParcelBody(android.os.Parcel in)

hide


        MobileLinkQualityInfo li = new MobileLinkQualityInfo();

        li.initializeFromParcel(in);

        li.mMobileNetworkType = in.readInt();
        li.mRssi = in.readInt();
        li.mGsmErrorRate = in.readInt();
        li.mCdmaDbm = in.readInt();
        li.mCdmaEcio = in.readInt();
        li.mEvdoDbm = in.readInt();
        li.mEvdoEcio = in.readInt();
        li.mEvdoSnr = in.readInt();
        li.mLteSignalStrength = in.readInt();
        li.mLteRsrp = in.readInt();
        li.mLteRsrq = in.readInt();
        li.mLteRssnr = in.readInt();
        li.mLteCqi = in.readInt();

        return li;
    
public intgetCdmaDbm()
returns signal strength for CDMA networks

return
signal strength in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mCdmaDbm;
    
public intgetCdmaEcio()
returns signal to noise ratio for CDMA networks

return
signal to noise ratio in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mCdmaEcio;
    
public intgetEvdoDbm()
returns signal strength for EVDO networks

return
signal strength in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mEvdoDbm;
    
public intgetEvdoEcio()
returns signal to noise ratio for EVDO spectrum

return
signal to noise ration in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mEvdoEcio;
    
public intgetEvdoSnr()
returns end-to-end signal to noise ratio for EVDO networks

return
signal to noise ration in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mEvdoSnr;
    
public intgetGsmErrorRate()
returns error rates for GSM networks

return
error rate or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mGsmErrorRate;
    
public intgetLteCqi()
returns channel quality indicator for LTE networks

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

        return mLteCqi;
    
public intgetLteRsrp()
returns RSRP (Reference Signal Received Power) for LTE network

return
RSRP in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mLteRsrp;
    
public intgetLteRsrq()
returns RSRQ (Reference Signal Received Quality) for LTE network

return
RSRQ ??? or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mLteRsrq;
    
public intgetLteRssnr()
returns signal to noise ratio for LTE networks

return
signal to noise ration in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mLteRssnr;
    
public intgetLteSignalStrength()
returns signal strength for LTE network

return
signal strength in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mLteSignalStrength;
    
public intgetMobileNetworkType()
returns mobile network type as defined by {@link android.telephony.TelephonyManager}

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

        return mMobileNetworkType;
    
public intgetRssi()
returns signal strength for GSM networks

return
signal strength in db or {@link android.net.LinkQualityInfo#UNKNOWN_INT}

        return mRssi;
    
public voidsetCdmaDbm(int cdmaDbm)

hide

        mCdmaDbm = cdmaDbm;
    
public voidsetCdmaEcio(int cdmaEcio)

hide

        mCdmaEcio = cdmaEcio;
    
public voidsetEvdoDbm(int evdoDbm)

hide

        mEvdoDbm = evdoDbm;
    
public voidsetEvdoEcio(int evdoEcio)

hide

        mEvdoEcio = evdoEcio;
    
public voidsetEvdoSnr(int evdoSnr)

hide

        mEvdoSnr = evdoSnr;
    
public voidsetGsmErrorRate(int gsmErrorRate)

hide

        mGsmErrorRate = gsmErrorRate;
    
public voidsetLteCqi(int lteCqi)

hide

        mLteCqi = lteCqi;
    
public voidsetLteRsrp(int lteRsrp)

hide

        mLteRsrp = lteRsrp;
    
public voidsetLteRsrq(int lteRsrq)

hide

        mLteRsrq = lteRsrq;
    
public voidsetLteRssnr(int lteRssnr)

hide

        mLteRssnr = lteRssnr;
    
public voidsetLteSignalStrength(int lteSignalStrength)

hide

        mLteSignalStrength = lteSignalStrength;
    
public voidsetMobileNetworkType(int mobileNetworkType)

hide

        mMobileNetworkType = mobileNetworkType;
    
public voidsetRssi(int Rssi)

hide

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

hide


              
    
          
        super.writeToParcel(dest, flags, OBJECT_TYPE_MOBILE_LINK_QUALITY_INFO);

        dest.writeInt(mMobileNetworkType);
        dest.writeInt(mRssi);
        dest.writeInt(mGsmErrorRate);
        dest.writeInt(mCdmaDbm);
        dest.writeInt(mCdmaEcio);
        dest.writeInt(mEvdoDbm);
        dest.writeInt(mEvdoEcio);
        dest.writeInt(mEvdoSnr);
        dest.writeInt(mLteSignalStrength);
        dest.writeInt(mLteRsrp);
        dest.writeInt(mLteRsrq);
        dest.writeInt(mLteRssnr);
        dest.writeInt(mLteCqi);