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

DataProfile

public class DataProfile extends Object

Fields Summary
static final int
TYPE_COMMON
static final int
TYPE_3GPP
static final int
TYPE_3GPP2
public final int
profileId
public final String
apn
public final String
protocol
public final int
authType
public final String
user
public final String
password
public final int
type
public final int
maxConnsTime
public final int
maxConns
public final int
waitTime
public final boolean
enabled
Constructors Summary
DataProfile(int profileId, String apn, String protocol, int authType, String user, String password, int type, int maxConnsTime, int maxConns, int waitTime, boolean enabled)



           
                     
                

        this.profileId = profileId;
        this.apn = apn;
        this.protocol = protocol;
        this.authType = authType;
        this.user = user;
        this.password = password;
        this.type = type;
        this.maxConnsTime = maxConnsTime;
        this.maxConns = maxConns;
        this.waitTime = waitTime;
        this.enabled = enabled;
    
DataProfile(ApnSetting apn, boolean isRoaming)

        this(apn.profileId, apn.apn, isRoaming? apn.protocol : apn.roamingProtocol,
                apn.authType, apn.user, apn.password, apn.bearer == 0 ? TYPE_COMMON :
                (ServiceState.isCdma(apn.bearer) ? TYPE_3GPP2 : TYPE_3GPP), apn.maxConnsTime,
                apn.maxConns, apn.waitTime, apn.carrierEnabled);
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (o instanceof DataProfile == false) return false;
        return (toString().equals(o.toString()));
    
public static android.os.ParceltoParcel(android.os.Parcel pc, com.android.internal.telephony.dataconnection.DataProfile[] dps)


        if(pc == null) {
            return null;
        }

        pc.writeInt(dps.length);
        for(int i = 0; i < dps.length; i++) {
            pc.writeInt(dps[i].profileId);
            pc.writeString(dps[i].apn);
            pc.writeString(dps[i].protocol);
            pc.writeInt(dps[i].authType);
            pc.writeString(dps[i].user);
            pc.writeString(dps[i].password);
            pc.writeInt(dps[i].type);
            pc.writeInt(dps[i].maxConnsTime);
            pc.writeInt(dps[i].maxConns);
            pc.writeInt(dps[i].waitTime);
            pc.writeInt(dps[i].enabled ? 1 : 0);
        }
        return pc;
    
public java.lang.StringtoString()

        return "DataProfile " + profileId + "/" + apn + "/" + protocol + "/" + authType
                + "/" + user + "/" + password + "/" + type + "/" + maxConnsTime
                + "/" + maxConns + "/" + waitTime + "/" + enabled;