FileDocCategorySizeDatePackage
DcFailBringUp.javaAPI DocAndroid 5.1 API2934Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.dataconnection

DcFailBringUp

public class DcFailBringUp extends Object
A package visible class for supporting testing failing bringUp commands. This saves the parameters from a action_fail_bringup intent. See {@link DataConnection#doOnConnect} and {@see DcTesterFailBringUpAll} for more info.

Fields Summary
private static final String
LOG_TAG
private static final boolean
DBG
static final String
INTENT_BASE
static final String
ACTION_FAIL_BRINGUP
static final String
COUNTER
static final int
DEFAULT_COUNTER
int
mCounter
static final String
FAIL_CAUSE
static final DcFailCause
DEFAULT_FAIL_CAUSE
DcFailCause
mFailCause
static final String
SUGGESTED_RETRY_TIME
static final int
DEFAULT_SUGGESTED_RETRY_TIME
int
mSuggestedRetryTime
Constructors Summary
Methods Summary
private static voidlog(java.lang.String s)

        Rlog.d(LOG_TAG, s);
    
voidsaveParameters(android.content.Intent intent, java.lang.String s)


    // Get the Extra Intent parameters
         
        if (DBG) log(s + ".saveParameters: action=" + intent.getAction());
        mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER);
        mFailCause = DcFailCause.fromInt(
                intent.getIntExtra(FAIL_CAUSE, DEFAULT_FAIL_CAUSE.getErrorCode()));
        mSuggestedRetryTime =
                intent.getIntExtra(SUGGESTED_RETRY_TIME, DEFAULT_SUGGESTED_RETRY_TIME);
        if (DBG) {
            log(s + ".saveParameters: " + this);
        }
    
voidsaveParameters(int counter, int failCause, int suggestedRetryTime)

        mCounter = counter;
        mFailCause = DcFailCause.fromInt(failCause);
        mSuggestedRetryTime = suggestedRetryTime;
    
public java.lang.StringtoString()

        return "{mCounter=" + mCounter +
                " mFailCause=" + mFailCause +
                " mSuggestedRetryTime=" + mSuggestedRetryTime + "}";