Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public boolean | equals(java.lang.Object other)
if (other == null) {
return false;
}
if (this == other) {
return true;
}
try {
CellInfo o = (CellInfo) other;
return mRegistered == o.mRegistered
&& mTimeStamp == o.mTimeStamp && mTimeStampType == o.mTimeStampType;
} catch (ClassCastException e) {
return false;
}
|
public long | getTimeStamp()Approximate time of this cell information in nanos since boot
return mTimeStamp;
|
public int | getTimeStampType()Where time stamp gets recorded.
return mTimeStampType;
|
public int | hashCode()
int primeNum = 31;
return ((mRegistered ? 0 : 1) * primeNum) + ((int)(mTimeStamp / 1000) * primeNum)
+ (mTimeStampType * primeNum);
|
public boolean | isRegistered()True if this cell is registered to the mobile network
return mRegistered;
|
public void | setRegistered(boolean registered)
mRegistered = registered;
|
public void | setTimeStamp(long timeStamp)
mTimeStamp = timeStamp;
|
public void | setTimeStampType(int timeStampType)
if (timeStampType < TIMESTAMP_TYPE_UNKNOWN || timeStampType > TIMESTAMP_TYPE_JAVA_RIL) {
mTimeStampType = TIMESTAMP_TYPE_UNKNOWN;
} else {
mTimeStampType = timeStampType;
}
|
private static java.lang.String | timeStampTypeToString(int type)
switch (type) {
case 1:
return "antenna";
case 2:
return "modem";
case 3:
return "oem_ril";
case 4:
return "java_ril";
default:
return "unknown";
}
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer();
String timeStampType;
sb.append("mRegistered=").append(mRegistered ? "YES" : "NO");
timeStampType = timeStampTypeToString(mTimeStampType);
sb.append(" mTimeStampType=").append(timeStampType);
sb.append(" mTimeStamp=").append(mTimeStamp).append("ns");
return sb.toString();
|
public abstract void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface
|
protected void | writeToParcel(android.os.Parcel dest, int flags, int type)Used by child classes for parceling.
dest.writeInt(type);
dest.writeInt(mRegistered ? 1 : 0);
dest.writeInt(mTimeStampType);
dest.writeLong(mTimeStamp);
|