FileDocCategorySizeDatePackage
ImsReasonInfo.javaAPI DocAndroid 5.1 API11997Thu Mar 12 22:22:42 GMT 2015com.android.ims

ImsReasonInfo

public class ImsReasonInfo extends Object implements android.os.Parcelable
This class enables an application to get details on why a method call failed.
hide

Fields Summary
public static final int
TYPE_UNSPECIFIED
Reason types, defines the error category. UNSPECIFIED - unknown error reason LOCAL - indicates the local/device error reason LOCAL_TIMEOUT - indicates the local error reason when a specific timer is expired STATUSCODE - indicates the interworking error reason by SIP status code received from the network MEDIA - indicates the media error reason (local resource, SDP parameter, etc.) USER - indicates the error reason by the local or remote user UT - indicates the error reason for the supplementary service configuration
public static final int
TYPE_LOCAL
public static final int
TYPE_TIMEOUT
public static final int
TYPE_STATUSCODE
public static final int
TYPE_MEDIA
public static final int
TYPE_USER
public static final int
TYPE_UT
public static final int
CODE_UNSPECIFIED
Specific code of each types
public static final int
CODE_LOCAL_ILLEGAL_ARGUMENT
LOCAL
public static final int
CODE_LOCAL_ILLEGAL_STATE
public static final int
CODE_LOCAL_INTERNAL_ERROR
public static final int
CODE_LOCAL_IMS_SERVICE_DOWN
public static final int
CODE_LOCAL_NO_PENDING_CALL
public static final int
CODE_LOCAL_POWER_OFF
public static final int
CODE_LOCAL_LOW_BATTERY
public static final int
CODE_LOCAL_NETWORK_NO_SERVICE
public static final int
CODE_LOCAL_NETWORK_NO_LTE_COVERAGE
public static final int
CODE_LOCAL_NETWORK_ROAMING
public static final int
CODE_LOCAL_NETWORK_IP_CHANGED
public static final int
CODE_LOCAL_SERVICE_UNAVAILABLE
public static final int
CODE_LOCAL_NOT_REGISTERED
public static final int
CODE_LOCAL_CALL_EXCEEDED
public static final int
CODE_LOCAL_CALL_BUSY
public static final int
CODE_LOCAL_CALL_DECLINE
public static final int
CODE_LOCAL_CALL_VCC_ON_PROGRESSING
public static final int
CODE_LOCAL_CALL_RESOURCE_RESERVATION_FAILED
public static final int
CODE_LOCAL_CALL_CS_RETRY_REQUIRED
public static final int
CODE_LOCAL_CALL_VOLTE_RETRY_REQUIRED
public static final int
CODE_LOCAL_CALL_TERMINATED
public static final int
CODE_TIMEOUT_1XX_WAITING
TIMEOUT (IMS -> Telephony)
public static final int
CODE_TIMEOUT_NO_ANSWER
public static final int
CODE_TIMEOUT_NO_ANSWER_CALL_UPDATE
public static final int
CODE_SIP_REDIRECTED
STATUSCODE (SIP response code) (IMS -> Telephony)
public static final int
CODE_SIP_BAD_REQUEST
public static final int
CODE_SIP_FORBIDDEN
public static final int
CODE_SIP_NOT_FOUND
public static final int
CODE_SIP_NOT_SUPPORTED
public static final int
CODE_SIP_REQUEST_TIMEOUT
public static final int
CODE_SIP_TEMPRARILY_UNAVAILABLE
public static final int
CODE_SIP_BAD_ADDRESS
public static final int
CODE_SIP_BUSY
public static final int
CODE_SIP_REQUEST_CANCELLED
public static final int
CODE_SIP_NOT_ACCEPTABLE
public static final int
CODE_SIP_NOT_REACHABLE
public static final int
CODE_SIP_CLIENT_ERROR
public static final int
CODE_SIP_SERVER_INTERNAL_ERROR
public static final int
CODE_SIP_SERVICE_UNAVAILABLE
public static final int
CODE_SIP_SERVER_TIMEOUT
public static final int
CODE_SIP_SERVER_ERROR
public static final int
CODE_SIP_USER_REJECTED
public static final int
CODE_SIP_GLOBAL_ERROR
public static final int
CODE_MEDIA_INIT_FAILED
MEDIA (IMS -> Telephony)
public static final int
CODE_MEDIA_NO_DATA
public static final int
CODE_MEDIA_NOT_ACCEPTABLE
public static final int
CODE_MEDIA_UNSPECIFIED
public static final int
CODE_USER_TERMINATED
USER
public static final int
CODE_USER_NOANSWER
public static final int
CODE_USER_IGNORE
public static final int
CODE_USER_DECLINE
public static final int
CODE_LOW_BATTERY
public static final int
CODE_BLACKLISTED_CALL_ID
public static final int
CODE_USER_TERMINATED_BY_REMOTE
public static final int
EXTRA_CODE_CALL_RETRY_NORMAL
Extra codes for the specific code value This value can be referred when the code is CODE_LOCAL_CALL_CS_RETRY_REQUIRED.
public static final int
EXTRA_CODE_CALL_RETRY_SILENT_REDIAL
public static final int
EXTRA_CODE_CALL_RETRY_BY_SETTINGS
public static final int
CODE_UT_NOT_SUPPORTED
UT
public static final int
CODE_UT_SERVICE_UNAVAILABLE
public static final int
CODE_UT_OPERATION_NOT_ALLOWED
public static final int
CODE_UT_NETWORK_ERROR
public static final int
CODE_UT_CB_PASSWORD_MISMATCH
public static final int
CODE_ECBM_NOT_SUPPORTED
ECBM
public static final String
EXTRA_MSG_SERVICE_NOT_AUTHORIZED
Network string error messages. mExtraMessage may have these values.
public int
mReasonType
public int
mCode
public int
mExtraCode
public String
mExtraMessage
public static final Creator
CREATOR
Constructors Summary
public ImsReasonInfo()


      
        mReasonType = TYPE_UNSPECIFIED;
        mCode = CODE_UNSPECIFIED;
        mExtraCode = CODE_UNSPECIFIED;
        mExtraMessage = null;
    
public ImsReasonInfo(android.os.Parcel in)

        readFromParcel(in);
    
public ImsReasonInfo(int code, int extraCode)

        mReasonType = (int) (code / 100);
        mCode = code;
        mExtraCode = extraCode;
        mExtraMessage = null;
    
public ImsReasonInfo(int code, int extraCode, String extraMessage)

        mReasonType = (int) (code / 100);
        mCode = code;
        mExtraCode = extraCode;
        mExtraMessage = extraMessage;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public intgetCode()

        return mCode;
    
public intgetExtraCode()

        return mExtraCode;
    
public java.lang.StringgetExtraMessage()

        return mExtraMessage;
    
public intgetReasonType()

        return mReasonType;
    
private voidreadFromParcel(android.os.Parcel in)

        mReasonType = in.readInt();
        mCode = in.readInt();
        mExtraCode = in.readInt();
        mExtraMessage = in.readString();
    
public java.lang.StringtoString()
Returns the string format of {@link ImsReasonInfo}

return
the string format of {@link ImsReasonInfo}

        return "ImsReasonInfo :: {" + mReasonType + ", "
                + mCode + ", " + mExtraCode + ", " + mExtraMessage + "}";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeInt(mReasonType);
        out.writeInt(mCode);
        out.writeInt(mExtraCode);
        out.writeString(mExtraMessage);