Constructors Summary |
---|
public CellIdentityWcdma()
mMcc = Integer.MAX_VALUE;
mMnc = Integer.MAX_VALUE;
mLac = Integer.MAX_VALUE;
mCid = Integer.MAX_VALUE;
mPsc = Integer.MAX_VALUE;
|
private CellIdentityWcdma(android.os.Parcel in)Construct from Parcel, type has already been processed
mMcc = in.readInt();
mMnc = in.readInt();
mLac = in.readInt();
mCid = in.readInt();
mPsc = in.readInt();
if (DBG) log("CellIdentityWcdma(Parcel): " + toString());
|
public CellIdentityWcdma(int mcc, int mnc, int lac, int cid, int psc)public constructor
mMcc = mcc;
mMnc = mnc;
mLac = lac;
mCid = cid;
mPsc = psc;
|
private CellIdentityWcdma(CellIdentityWcdma cid)
mMcc = cid.mMcc;
mMnc = cid.mMnc;
mLac = cid.mLac;
mCid = cid.mCid;
mPsc = cid.mPsc;
|
Methods Summary |
---|
android.telephony.CellIdentityWcdma | copy()
return new CellIdentityWcdma(this);
|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public boolean | equals(java.lang.Object other)
if (super.equals(other)) {
try {
CellIdentityWcdma o = (CellIdentityWcdma)other;
return mMcc == o.mMcc &&
mMnc == o.mMnc &&
mLac == o.mLac &&
mCid == o.mCid &&
mPsc == o.mPsc;
} catch (ClassCastException e) {
return false;
}
} else {
return false;
}
|
public int | getCid()
return mCid;
|
public int | getLac()
return mLac;
|
public int | getMcc()
return mMcc;
|
public int | getMnc()
return mMnc;
|
public int | getPsc()
return mPsc;
|
public int | hashCode()
int primeNum = 31;
return (mMcc * primeNum) + (mMnc * primeNum) + (mLac * primeNum) + (mCid * primeNum) +
(mPsc * primeNum);
|
private static void | log(java.lang.String s)log
Rlog.w(LOG_TAG, s);
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder("CellIdentityWcdma:{");
sb.append(" mMcc=").append(mMcc);
sb.append(" mMnc=").append(mMnc);
sb.append(" mLac=").append(mLac);
sb.append(" mCid=").append(mCid);
sb.append(" mPsc=").append(mPsc);
sb.append("}");
return sb.toString();
|
public void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface
if (DBG) log("writeToParcel(Parcel, int): " + toString());
dest.writeInt(mMcc);
dest.writeInt(mMnc);
dest.writeInt(mLac);
dest.writeInt(mCid);
dest.writeInt(mPsc);
|