Search in sources :

Example 1 with FailCause

use of com.android.internal.telephony.DataConnection.FailCause in project XobotOS by xamarin.

the class CdmaDataConnectionTracker method onDataSetupComplete.

/**
     * @override com.android.internal.telephony.DataConnectionTracker
     */
@Override
protected void onDataSetupComplete(AsyncResult ar) {
    String reason = null;
    if (ar.userObj instanceof String) {
        reason = (String) ar.userObj;
    }
    if (isDataSetupCompleteOk(ar)) {
        // Everything is setup
        notifyDefaultData(reason);
    } else {
        FailCause cause = (FailCause) (ar.result);
        if (DBG)
            log("Data Connection setup failed " + cause);
        // No try for permanent failure
        if (cause.isPermanentFail()) {
            notifyNoData(cause);
            return;
        }
        startDelayedRetry(cause, reason);
    }
}
Also used : FailCause(com.android.internal.telephony.DataConnection.FailCause)

Aggregations

FailCause (com.android.internal.telephony.DataConnection.FailCause)1