Constructors Summary |
---|
public CellIdentityGsm()
mMcc = Integer.MAX_VALUE;
mMnc = Integer.MAX_VALUE;
mLac = Integer.MAX_VALUE;
mCid = Integer.MAX_VALUE;
|
private CellIdentityGsm(android.os.Parcel in)Construct from Parcel, type has already been processed
mMcc = in.readInt();
mMnc = in.readInt();
mLac = in.readInt();
mCid = in.readInt();
if (DBG) log("CellIdentityGsm(Parcel): " + toString());
|
public CellIdentityGsm(int mcc, int mnc, int lac, int cid)public constructor
mMcc = mcc;
mMnc = mnc;
mLac = lac;
mCid = cid;
|
private CellIdentityGsm(CellIdentityGsm cid)
mMcc = cid.mMcc;
mMnc = cid.mMnc;
mLac = cid.mLac;
mCid = cid.mCid;
|
Methods Summary |
---|
android.telephony.CellIdentityGsm | copy()
return new CellIdentityGsm(this);
|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public boolean | equals(java.lang.Object other)
if (super.equals(other)) {
try {
CellIdentityGsm o = (CellIdentityGsm)other;
return mMcc == o.mMcc &&
mMnc == o.mMnc &&
mLac == o.mLac &&
mCid == o.mCid;
} 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 Integer.MAX_VALUE;
|
public int | hashCode()
int primeNum = 31;
return (mMcc * primeNum) + (mMnc * primeNum) + (mLac * primeNum) + (mCid * primeNum);
|
private static void | log(java.lang.String s)log
Rlog.w(LOG_TAG, s);
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder("CellIdentityGsm:{");
sb.append(" mMcc=").append(mMcc);
sb.append(" mMnc=").append(mMnc);
sb.append(" mLac=").append(mLac);
sb.append(" mCid=").append(mCid);
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);
|