FileDocCategorySizeDatePackage
VoLteServiceState.javaAPI DocAndroid 5.1 API5322Thu Mar 12 22:22:42 GMT 2015android.telephony

VoLteServiceState

public final class VoLteServiceState extends Object implements android.os.Parcelable
Contains LTE network state related information.
hide

Fields Summary
private static final String
LOG_TAG
private static final boolean
DBG
public static final int
INVALID
public static final int
NOT_SUPPORTED
public static final int
SUPPORTED
public static final int
HANDOVER_STARTED
public static final int
HANDOVER_COMPLETED
public static final int
HANDOVER_FAILED
public static final int
HANDOVER_CANCELED
private int
mSrvccState
public static final Parcelable.Creator
CREATOR
{@link Parcelable.Creator}
Constructors Summary
public VoLteServiceState()
Empty constructor

hide

        initialize();
    
public VoLteServiceState(int srvccState)
Constructor

hide

        initialize();

        mSrvccState = srvccState;
    
public VoLteServiceState(VoLteServiceState s)
Copy constructors

param
s Source VoLteServiceState
hide

        copyFrom(s);
    
public VoLteServiceState(android.os.Parcel in)
Construct a VoLteServiceState object from the given parcel.

hide

        if (DBG) log("Size of VoLteServiceState parcel:" + in.dataSize());

        mSrvccState = in.readInt();
    
Methods Summary
protected voidcopyFrom(android.telephony.VoLteServiceState s)

hide

        mSrvccState = s.mSrvccState;
    
public intdescribeContents()
{@link Parcelable#describeContents}

        return 0;
    
public booleanequals(java.lang.Object o)

return
true if the LTE network states are the same

        VoLteServiceState s;

        try {
            s = (VoLteServiceState) o;
        } catch (ClassCastException ex) {
            return false;
        }

        if (o == null) {
            return false;
        }

        return (mSrvccState == s.mSrvccState);
    
public voidfillInNotifierBundle(android.os.Bundle m)
Set intent notifier Bundle based on VoLteServiceState

param
m intent notifier Bundle
hide

        m.putInt("mSrvccState", mSrvccState);
    
public intgetSrvccState()

        return mSrvccState;
    
public inthashCode()

        int primeNum = 31;
        return ((mSrvccState * primeNum));
    
private voidinitialize()
Initialize values to defaults.

hide

        mSrvccState = INVALID;
    
private static voidlog(java.lang.String s)
log

        Rlog.w(LOG_TAG, s);
    
public static android.telephony.VoLteServiceStatenewFromBundle(android.os.Bundle m)
Create a new VoLteServiceState from a intent notifier Bundle This method is used by PhoneStateIntentReceiver and maybe by external applications.

param
m Bundle from intent notifier
return
newly created VoLteServiceState
hide


                                        
         
        VoLteServiceState ret;
        ret = new VoLteServiceState();
        ret.setFromNotifierBundle(m);
        return ret;
    
private voidsetFromNotifierBundle(android.os.Bundle m)
Set VoLteServiceState based on intent notifier map

param
m intent notifier map
hide

        mSrvccState = m.getInt("mSrvccState");
    
public java.lang.StringtoString()

return
string representation.

        return ("VoLteServiceState:"
                + " " + mSrvccState);
    
public voidvalidateInput()
Validate the individual fields as per the range specified in ril.h Set to invalid any field that is not in the valid range

return
Valid values for all fields
hide


                                            
       
    
public voidwriteToParcel(android.os.Parcel out, int flags)
{@link Parcelable#writeToParcel}

        out.writeInt(mSrvccState);