FileDocCategorySizeDatePackage
CellInfoLte.javaAPI DocAndroid 5.1 API4658Thu Mar 12 22:22:42 GMT 2015android.telephony

CellInfoLte

public final class CellInfoLte extends CellInfo implements android.os.Parcelable
Immutable cell information from a point in time.

Fields Summary
private static final String
LOG_TAG
private static final boolean
DBG
private CellIdentityLte
mCellIdentityLte
private CellSignalStrengthLte
mCellSignalStrengthLte
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public CellInfoLte()

hide


      
      
        super();
        mCellIdentityLte = new CellIdentityLte();
        mCellSignalStrengthLte = new CellSignalStrengthLte();
    
private CellInfoLte(android.os.Parcel in)
Construct a CellInfoLte object from the given parcel where the TYPE_LTE token is already been processed.

        super(in);
        mCellIdentityLte = CellIdentityLte.CREATOR.createFromParcel(in);
        mCellSignalStrengthLte = CellSignalStrengthLte.CREATOR.createFromParcel(in);
        if (DBG) log("CellInfoLte(Parcel): " + toString());
    
public CellInfoLte(CellInfoLte ci)

hide

        super(ci);
        this.mCellIdentityLte = ci.mCellIdentityLte.copy();
        this.mCellSignalStrengthLte = ci.mCellSignalStrengthLte.copy();
    
Methods Summary
protected static android.telephony.CellInfoLtecreateFromParcelBody(android.os.Parcel in)

hide


      
         
        return new CellInfoLte(in);
    
public intdescribeContents()
Implement the Parcelable interface

        return 0;
    
public booleanequals(java.lang.Object other)

        if (!super.equals(other)) {
            return false;
        }
        try {
            CellInfoLte o = (CellInfoLte) other;
            return mCellIdentityLte.equals(o.mCellIdentityLte)
                    && mCellSignalStrengthLte.equals(o.mCellSignalStrengthLte);
        } catch (ClassCastException e) {
            return false;
        }
    
public CellIdentityLtegetCellIdentity()

        if (DBG) log("getCellIdentity: " + mCellIdentityLte);
        return mCellIdentityLte;
    
public CellSignalStrengthLtegetCellSignalStrength()

        if (DBG) log("getCellSignalStrength: " + mCellSignalStrengthLte);
        return mCellSignalStrengthLte;
    
public inthashCode()

return
hash code

        return super.hashCode() + mCellIdentityLte.hashCode() + mCellSignalStrengthLte.hashCode();
    
private static voidlog(java.lang.String s)
log

        Rlog.w(LOG_TAG, s);
    
public voidsetCellIdentity(CellIdentityLte cid)

hide

        if (DBG) log("setCellIdentity: " + cid);
        mCellIdentityLte = cid;
    
public voidsetCellSignalStrength(CellSignalStrengthLte css)

hide

        if (DBG) log("setCellSignalStrength: " + css);
        mCellSignalStrengthLte = css;
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer();

        sb.append("CellInfoLte:{");
        sb.append(super.toString());
        sb.append(" ").append(mCellIdentityLte);
        sb.append(" ").append(mCellSignalStrengthLte);
        sb.append("}");

        return sb.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Implement the Parcelable interface

        if (DBG) log("writeToParcel(Parcel, int): " + toString());
        super.writeToParcel(dest, flags, TYPE_LTE);
        mCellIdentityLte.writeToParcel(dest, flags);
        mCellSignalStrengthLte.writeToParcel(dest, flags);