FileDocCategorySizeDatePackage
OperatorInfo.javaAPI DocAndroid 5.1 API4403Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony

OperatorInfo

public class OperatorInfo extends Object implements android.os.Parcelable
{@hide}

Fields Summary
private String
mOperatorAlphaLong
private String
mOperatorAlphaShort
private String
mOperatorNumeric
private State
mState
public static final Creator
CREATOR
Implement the Parcelable interface Method to deserialize a OperatorInfo object, or an array thereof.
Constructors Summary
OperatorInfo(String operatorAlphaLong, String operatorAlphaShort, String operatorNumeric, State state)


        mOperatorAlphaLong = operatorAlphaLong;
        mOperatorAlphaShort = operatorAlphaShort;
        mOperatorNumeric = operatorNumeric;

        mState = state;
    
public OperatorInfo(String operatorAlphaLong, String operatorAlphaShort, String operatorNumeric, String stateString)

        this (operatorAlphaLong, operatorAlphaShort,
                operatorNumeric, rilStateToState(stateString));
    
Methods Summary
public intdescribeContents()
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.StringgetOperatorAlphaLong()



     
     
        return mOperatorAlphaLong;
    
public java.lang.StringgetOperatorAlphaShort()

        return mOperatorAlphaShort;
    
public java.lang.StringgetOperatorNumeric()

        return mOperatorNumeric;
    
public com.android.internal.telephony.OperatorInfo$StategetState()

        return mState;
    
private static com.android.internal.telephony.OperatorInfo$StaterilStateToState(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.StringtoString()

        return "OperatorInfo " + mOperatorAlphaLong
                + "/" + mOperatorAlphaShort
                + "/" + mOperatorNumeric
                + "/" + mState;
    
public voidwriteToParcel(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);