Constructors Summary |
---|
public CellIdentityCdma()
mNetworkId = Integer.MAX_VALUE;
mSystemId = Integer.MAX_VALUE;
mBasestationId = Integer.MAX_VALUE;
mLongitude = Integer.MAX_VALUE;
mLatitude = Integer.MAX_VALUE;
|
private CellIdentityCdma(android.os.Parcel in)Construct from Parcel, type has already been processed
mNetworkId = in.readInt();
mSystemId = in.readInt();
mBasestationId = in.readInt();
mLongitude = in.readInt();
mLatitude = in.readInt();
if (DBG) log("CellIdentityCdma(Parcel): " + toString());
|
public CellIdentityCdma(int nid, int sid, int bid, int lon, int lat)public constructor
mNetworkId = nid;
mSystemId = sid;
mBasestationId = bid;
mLongitude = lon;
mLatitude = lat;
|
private CellIdentityCdma(CellIdentityCdma cid)
mNetworkId = cid.mNetworkId;
mSystemId = cid.mSystemId;
mBasestationId = cid.mBasestationId;
mLongitude = cid.mLongitude;
mLatitude = cid.mLatitude;
|
Methods Summary |
---|
android.telephony.CellIdentityCdma | copy()
return new CellIdentityCdma(this);
|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public boolean | equals(java.lang.Object other)
if (super.equals(other)) {
try {
CellIdentityCdma o = (CellIdentityCdma)other;
return mNetworkId == o.mNetworkId &&
mSystemId == o.mSystemId &&
mBasestationId == o.mBasestationId &&
mLatitude == o.mLatitude &&
mLongitude == o.mLongitude;
} catch (ClassCastException e) {
return false;
}
} else {
return false;
}
|
public int | getBasestationId()
return mBasestationId;
|
public int | getLatitude()
return mLatitude;
|
public int | getLongitude()
return mLongitude;
|
public int | getNetworkId()
return mNetworkId;
|
public int | getSystemId()
return mSystemId;
|
public int | hashCode()
int primeNum = 31;
return (mNetworkId * primeNum) + (mSystemId * primeNum) + (mBasestationId * primeNum) +
(mLatitude * primeNum) + (mLongitude * primeNum);
|
private static void | log(java.lang.String s)log
Rlog.w(LOG_TAG, s);
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder("CellIdentityCdma:{");
sb.append(" mNetworkId="); sb.append(mNetworkId);
sb.append(" mSystemId="); sb.append(mSystemId);
sb.append(" mBasestationId="); sb.append(mBasestationId);
sb.append(" mLongitude="); sb.append(mLongitude);
sb.append(" mLatitude="); sb.append(mLatitude);
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(mNetworkId);
dest.writeInt(mSystemId);
dest.writeInt(mBasestationId);
dest.writeInt(mLongitude);
dest.writeInt(mLatitude);
|