FileDocCategorySizeDatePackage
CellInfoCdma.javaAPI DocAndroid 5.1 API4395Thu Mar 12 22:22:42 GMT 2015android.telephony

CellInfoCdma

public final class CellInfoCdma 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 CellIdentityCdma
mCellIdentityCdma
private CellSignalStrengthCdma
mCellSignalStrengthCdma
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public CellInfoCdma()

hide


      
      
        super();
        mCellIdentityCdma = new CellIdentityCdma();
        mCellSignalStrengthCdma = new CellSignalStrengthCdma();
    
private CellInfoCdma(android.os.Parcel in)
Construct a CellInfoCdma object from the given parcel where the token is already been processed.

        super(in);
        mCellIdentityCdma = CellIdentityCdma.CREATOR.createFromParcel(in);
        mCellSignalStrengthCdma = CellSignalStrengthCdma.CREATOR.createFromParcel(in);
        if (DBG) log("CellInfoCdma(Parcel): " + toString());
    
public CellInfoCdma(CellInfoCdma ci)

hide

        super(ci);
        this.mCellIdentityCdma = ci.mCellIdentityCdma.copy();
        this.mCellSignalStrengthCdma = ci.mCellSignalStrengthCdma.copy();
    
Methods Summary
protected static android.telephony.CellInfoCdmacreateFromParcelBody(android.os.Parcel in)

hide


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

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

        if (!super.equals(other)) {
            return false;
        }
        try {
            CellInfoCdma o = (CellInfoCdma) other;
            return mCellIdentityCdma.equals(o.mCellIdentityCdma)
                    && mCellSignalStrengthCdma.equals(o.mCellSignalStrengthCdma);
        } catch (ClassCastException e) {
            return false;
        }
    
public CellIdentityCdmagetCellIdentity()

        return mCellIdentityCdma;
    
public CellSignalStrengthCdmagetCellSignalStrength()

        return mCellSignalStrengthCdma;
    
public inthashCode()

return
hash code

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

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

hide

        mCellIdentityCdma = cid;
    
public voidsetCellSignalStrength(CellSignalStrengthCdma css)

hide

        mCellSignalStrengthCdma = css;
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer();

        sb.append("CellInfoCdma:{");
        sb.append(super.toString());
        sb.append(" ").append(mCellIdentityCdma);
        sb.append(" ").append(mCellSignalStrengthCdma);
        sb.append("}");

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

        super.writeToParcel(dest, flags, TYPE_CDMA);
        mCellIdentityCdma.writeToParcel(dest, flags);
        mCellSignalStrengthCdma.writeToParcel(dest, flags);