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

RadioCapability

public class RadioCapability extends Object
Object to indicate the phone radio capability.
hide

Fields Summary
public static final int
RC_PHASE_CONFIGURED
LM is configured is initial value and value after FINISH completes.
public static final int
RC_PHASE_START
START is sent before Apply and indicates that an APPLY will be forthcoming with these same parameters.
public static final int
RC_PHASE_APPLY
APPLY is sent after all LM's receive START and returned RIL_RadioCapability. status = 0, if any START's fail no APPLY will be sent.
public static final int
RC_PHASE_UNSOL_RSP
UNSOL_RSP is sent with RIL_UNSOL_RADIO_CAPABILITY.
public static final int
RC_PHASE_FINISH
RC_PHASE_FINISH is sent after all previous phases have completed. If an error occurs in any previous commands the RIL_RadioAccessesFamily and LogicalModemId fields will be the prior configuration thus restoring the configuration to the previous value. An error returned by this command will generally be ignored or may cause that logical modem to be removed from service
public static final int
RC_STATUS_NONE
this parameter is no meaning with RC_Phase_START, RC_Phase_APPLY
public static final int
RC_STATUS_SUCCESS
Tell modem the action transaction of set radio capability is success with RC_Phase_FINISH.
public static final int
RC_STATUS_FAIL
tell modem the action transaction of set radio capability is fail with RC_Phase_FINISH
private static final int
RADIO_CAPABILITY_VERSION
Version of structure, RIL_RadioCapability_Version
private int
mSession
Unique session value defined by framework returned in all "responses/unsol"
private int
mPhase
CONFIGURED, START, APPLY, FINISH
private int
mRadioAccessFamily
RadioAccessFamily is a bit field of radio access technologies the for the modem is currently supporting. The initial value returned my the modem must the the set of bits that the modem currently supports. see RadioAccessFamily#RADIO_TECHNOLOGY_XXXX
private String
mLogicalModemUuid
Logical modem this radio is be connected to. This must be Globally unique on convention is to use a registered name such as com.google.android.lm0
private int
mStatus
Return status and an input parameter for RC_Phase_FINISH
private int
mPhoneId
Phone ID of phone
Constructors Summary
public RadioCapability(int phoneId, int session, int phase, int radioAccessFamily, String logicalModemUuid, int status)
Constructor.

param
phoneId the phone ID
param
session the request transaction id
param
phase the request phase id
param
radioAccessFamily the phone radio access family defined in RadioAccessFamily. It's a bit mask value to represent the support type.
param
logicalModemUuid the logicalModem UUID which phone connected to
param
status tell modem the action transaction of set radio capability is success or fail with RC_Phase_FINISH


                                                                                              
          
                  
        mPhoneId = phoneId;
        mSession = session;
        mPhase = phase;
        mRadioAccessFamily = radioAccessFamily;
        mLogicalModemUuid = logicalModemUuid;
        mStatus = status;
    
Methods Summary
public java.lang.StringgetLogicalModemUuid()
get logical modem Universally Unique ID.

return
logical modem uuid

        return mLogicalModemUuid;
    
public intgetPhase()
get radio capability phase.

return
RadioCapabilityPhase, including CONFIGURED, START, APPLY, FINISH

        return mPhase;
    
public intgetPhoneId()
Get phone ID.

return
phone ID

        return mPhoneId;
    
public intgetRadioAccessFamily()
get radio access family.

return
radio access family

        return mRadioAccessFamily;
    
public intgetSession()
Get unique session id.

return
unique session id

        return mSession;
    
public intgetStatus()
get request status.

return
status and an input parameter for RC_PHASE_FINISH

        return mStatus;
    
public intgetVersion()
Get radio capability version.

return
radio capability version

        return RADIO_CAPABILITY_VERSION;
    
public java.lang.StringtoString()

        return "{mPhoneId = " + mPhoneId
                + " mVersion=" + getVersion()
                + " mSession=" + getSession()
                + " mPhase=" + getPhase()
                + " mRadioAccessFamily=" + getRadioAccessFamily()
                + " mLogicModemId=" + getLogicalModemUuid()
                + " mStatus=" + getStatus()
                + "}";