Methods Summary |
---|
public int | describeContents()Parcelable interface implemented below.
This is a simple effort to make OperatorInfo parcelable rather than
trying to make the conventional containing object (AsyncResult),
implement parcelable. This functionality is needed for the
NetworkQueryService to fix 1128695.
return 0;
|
public java.lang.String | getOperatorAlphaLong()
return mOperatorAlphaLong;
|
public java.lang.String | getOperatorAlphaShort()
return mOperatorAlphaShort;
|
public java.lang.String | getOperatorNumeric()
return mOperatorNumeric;
|
public com.android.internal.telephony.OperatorInfo$State | getState()
return mState;
|
private static com.android.internal.telephony.OperatorInfo$State | rilStateToState(java.lang.String s)See state strings defined in ril.h RIL_REQUEST_QUERY_AVAILABLE_NETWORKS
if (s.equals("unknown")) {
return State.UNKNOWN;
} else if (s.equals("available")) {
return State.AVAILABLE;
} else if (s.equals("current")) {
return State.CURRENT;
} else if (s.equals("forbidden")) {
return State.FORBIDDEN;
} else {
throw new RuntimeException(
"RIL impl error: Invalid network state '" + s + "'");
}
|
public java.lang.String | toString()
return "OperatorInfo " + mOperatorAlphaLong
+ "/" + mOperatorAlphaShort
+ "/" + mOperatorNumeric
+ "/" + mState;
|
public void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface.
Method to serialize a OperatorInfo object.
dest.writeString(mOperatorAlphaLong);
dest.writeString(mOperatorAlphaShort);
dest.writeString(mOperatorNumeric);
dest.writeSerializable(mState);
|