NeighboringCellInfopublic class NeighboringCellInfo extends Object implements android.os.ParcelableRepresents the neighboring cell information, including
Received Signal Strength and Cell ID location. |
Fields Summary |
---|
public static final int | UNKNOWN_RSSISignal strength is not available | public static final int | UNKNOWN_CIDCell location is not available | private int | mRssi | private int | mCid | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public NeighboringCellInfo()Empty constructor. Initializes the RSSI and CID.
mRssi = UNKNOWN_RSSI;
mCid = UNKNOWN_CID;
| public NeighboringCellInfo(int rssi, int cid)Initialize the object from rssi and cid.
mRssi = rssi;
mCid = cid;
| public NeighboringCellInfo(android.os.Parcel in)Initialize the object from a parcel.
mRssi = in.readInt();
mCid = in.readInt();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public int | getCid()
return mCid;
| public int | getRssi()
return mRssi;
| public void | setCid(int cid)Set the cell id.
mCid = cid;
| public void | setRssi(int rssi)Set the signal strength of the cell.
mRssi = rssi;
| public java.lang.String | toString()
return "["+ ((mCid == UNKNOWN_CID) ? "/" : Integer.toHexString(mCid))
+ " at " + ((mRssi == UNKNOWN_RSSI)? "/" : mRssi) + "]";
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(mRssi);
dest.writeInt(mCid);
|
|