FileDocCategorySizeDatePackage
CellInfoWcdma.javaAPI DocAndroid 5.1 API4386Thu Mar 12 22:22:42 GMT 2015android.telephony

CellInfoWcdma

public final class CellInfoWcdma 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 CellIdentityWcdma
mCellIdentityWcdma
private CellSignalStrengthWcdma
mCellSignalStrengthWcdma
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public CellInfoWcdma()

hide


      
      
        super();
        mCellIdentityWcdma = new CellIdentityWcdma();
        mCellSignalStrengthWcdma = new CellSignalStrengthWcdma();
    
private CellInfoWcdma(android.os.Parcel in)
Construct a CellInfoWcdma object from the given parcel where the token is already been processed.

        super(in);
        mCellIdentityWcdma = CellIdentityWcdma.CREATOR.createFromParcel(in);
        mCellSignalStrengthWcdma = CellSignalStrengthWcdma.CREATOR.createFromParcel(in);
    
public CellInfoWcdma(CellInfoWcdma ci)

hide

        super(ci);
        this.mCellIdentityWcdma = ci.mCellIdentityWcdma.copy();
        this.mCellSignalStrengthWcdma = ci.mCellSignalStrengthWcdma.copy();
    
Methods Summary
protected static android.telephony.CellInfoWcdmacreateFromParcelBody(android.os.Parcel in)

hide


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

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

        if (!super.equals(other)) {
            return false;
        }
        try {
            CellInfoWcdma o = (CellInfoWcdma) other;
            return mCellIdentityWcdma.equals(o.mCellIdentityWcdma)
                    && mCellSignalStrengthWcdma.equals(o.mCellSignalStrengthWcdma);
        } catch (ClassCastException e) {
            return false;
        }
    
public CellIdentityWcdmagetCellIdentity()

        return mCellIdentityWcdma;
    
public CellSignalStrengthWcdmagetCellSignalStrength()

        return mCellSignalStrengthWcdma;
    
public inthashCode()

return
hash code

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

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

hide

        mCellIdentityWcdma = cid;
    
public voidsetCellSignalStrength(CellSignalStrengthWcdma css)

hide

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

        StringBuffer sb = new StringBuffer();

        sb.append("CellInfoWcdma:{");
        sb.append(super.toString());
        sb.append(" ").append(mCellIdentityWcdma);
        sb.append(" ").append(mCellSignalStrengthWcdma);
        sb.append("}");

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

        super.writeToParcel(dest, flags, TYPE_WCDMA);
        mCellIdentityWcdma.writeToParcel(dest, flags);
        mCellSignalStrengthWcdma.writeToParcel(dest, flags);