FileDocCategorySizeDatePackage
CellInfoGsm.javaAPI DocAndroid 5.1 API4282Thu Mar 12 22:22:42 GMT 2015android.telephony

CellInfoGsm

public final class CellInfoGsm 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 CellIdentityGsm
mCellIdentityGsm
private CellSignalStrengthGsm
mCellSignalStrengthGsm
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public CellInfoGsm()

hide


      
      
        super();
        mCellIdentityGsm = new CellIdentityGsm();
        mCellSignalStrengthGsm = new CellSignalStrengthGsm();
    
private CellInfoGsm(android.os.Parcel in)
Construct a CellInfoGsm object from the given parcel where the token is already been processed.

        super(in);
        mCellIdentityGsm = CellIdentityGsm.CREATOR.createFromParcel(in);
        mCellSignalStrengthGsm = CellSignalStrengthGsm.CREATOR.createFromParcel(in);
    
public CellInfoGsm(CellInfoGsm ci)

hide

        super(ci);
        this.mCellIdentityGsm = ci.mCellIdentityGsm.copy();
        this.mCellSignalStrengthGsm = ci.mCellSignalStrengthGsm.copy();
    
Methods Summary
protected static android.telephony.CellInfoGsmcreateFromParcelBody(android.os.Parcel in)

hide


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

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

        if (!super.equals(other)) {
            return false;
        }
        try {
            CellInfoGsm o = (CellInfoGsm) other;
            return mCellIdentityGsm.equals(o.mCellIdentityGsm)
                    && mCellSignalStrengthGsm.equals(o.mCellSignalStrengthGsm);
        } catch (ClassCastException e) {
            return false;
        }
    
public CellIdentityGsmgetCellIdentity()

        return mCellIdentityGsm;
    
public CellSignalStrengthGsmgetCellSignalStrength()

        return mCellSignalStrengthGsm;
    
public inthashCode()

return
hash code

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

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

hide

        mCellIdentityGsm = cid;
    
public voidsetCellSignalStrength(CellSignalStrengthGsm css)

hide

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

        StringBuffer sb = new StringBuffer();

        sb.append("CellInfoGsm:{");
        sb.append(super.toString());
        sb.append(" ").append(mCellIdentityGsm);
        sb.append(" ").append(mCellSignalStrengthGsm);
        sb.append("}");

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

        super.writeToParcel(dest, flags, TYPE_GSM);
        mCellIdentityGsm.writeToParcel(dest, flags);
        mCellSignalStrengthGsm.writeToParcel(dest, flags);