/**@class android.telephony.data.ApnSetting
 implements android.os.Parcelable

@extends java.lang.Object

 An Access Point Name (APN) configuration for a carrier data connection.

 <p>The APN provides configuration to connect a cellular network device to an IP data network. A
 carrier uses the name, type and other configuration in an {@code APNSetting} to decide which IP
 address to assign, any security methods to apply, and how the device might be connected to
 private networks.

 <p>Use {@link android.telephony.data.ApnSetting.Builder} to create new instances.
*/
var ApnSetting = {

/** Default value for mtu if it's not set. Moved from PhoneConstants.
 @hide
*/
UNSET_MTU : "0",
/** APN type for none. Should only be used for initialization.
 @hide
*/
TYPE_NONE : "null",
/** APN type for all APNs (except wild-cardable types).
 @hide
*/
TYPE_ALL : "null",
/**APN type for default data traffic. */
TYPE_DEFAULT : "null",
/**APN type for MMS traffic. */
TYPE_MMS : "null",
/**APN type for SUPL assisted GPS. */
TYPE_SUPL : "null",
/**APN type for DUN traffic. */
TYPE_DUN : "null",
/**APN type for HiPri traffic. */
TYPE_HIPRI : "null",
/**APN type for accessing the carrier's FOTA portal, used for over the air updates. */
TYPE_FOTA : "null",
/**APN type for IMS. */
TYPE_IMS : "null",
/**APN type for CBS. */
TYPE_CBS : "null",
/**APN type for IA Initial Attach APN. */
TYPE_IA : "null",
/** APN type for Emergency PDN. This is not an IA apn, but is used
 for access to carrier services in an emergency call situation.
*/
TYPE_EMERGENCY : "null",
/**APN type for MCX (Mission Critical Service) where X can be PTT/Video/Data */
TYPE_MCX : "null",
/**No authentication type. */
AUTH_TYPE_NONE : "0",
/**Authentication type for PAP. */
AUTH_TYPE_PAP : "1",
/**Authentication type for CHAP. */
AUTH_TYPE_CHAP : "2",
/**Authentication type for PAP or CHAP. */
AUTH_TYPE_PAP_OR_CHAP : "3",
/**Internet protocol. */
PROTOCOL_IP : "0",
/**Internet protocol, version 6. */
PROTOCOL_IPV6 : "1",
/**Virtual PDP type introduced to handle dual IP stack UE capability. */
PROTOCOL_IPV4V6 : "2",
/**Point to point protocol. */
PROTOCOL_PPP : "3",
/**Transfer of Non-IP data to external packet data network. */
PROTOCOL_NON_IP : "4",
/**Transfer of Unstructured data to the Data Network via N6. */
PROTOCOL_UNSTRUCTURED : "5",
/**MVNO type for service provider name. */
MVNO_TYPE_SPN : "0",
/**MVNO type for IMSI. */
MVNO_TYPE_IMSI : "1",
/**MVNO type for group identifier level 1. */
MVNO_TYPE_GID : "2",
/**MVNO type for ICCID. */
MVNO_TYPE_ICCID : "3",
/***/
CREATOR : "null",
/**Returns the MTU size of the mobile interface to which the APN connected.
@return {Number} the MTU size of the APN
@hide 
*/
getMtu : function(  ) {},

/**Returns the profile id to which the APN saved in modem.
@return {Number} the profile id of the APN
@hide 
*/
getProfileId : function(  ) {},

/**Returns if the APN setting is persistent on the modem.
@return {Boolean} is the APN setting to be set in modem
@hide 
*/
isPersistent : function(  ) {},

/**Returns the max connections of this APN.
@return {Number} the max connections of this APN
@hide 
*/
getMaxConns : function(  ) {},

/**Returns the wait time for retry of the APN.
@return {Number} the wait time for retry of the APN
@hide 
*/
getWaitTime : function(  ) {},

/**Returns the time to limit max connection for the APN.
@return {Number} the time to limit max connection for the APN
@hide 
*/
getMaxConnsTime : function(  ) {},

/**Returns the MVNO data. Examples:
   "spn": A MOBILE, BEN NL
   "imsi": 302720x94, 2060188
   "gid": 4E, 33
   "iccid": 898603 etc..
@return {String} the mvno match data
@hide 
*/
getMvnoMatchData : function(  ) {},

/**Returns the APN set id.

 APNs that are part of the same set should be preferred together, e.g. if the
 user selects a default APN with apnSetId=1, then we will prefer all APNs with apnSetId = 1.

 If the apnSetId = Carriers.NO_SET_SET(=0) then the APN is not part of a set.
@return {Number} the APN set id
@hide 
*/
getApnSetId : function(  ) {},

/**Indicates this APN setting is permanently failed and cannot be
 retried by the retry manager anymore.
@return {Boolean} if this APN setting is permanently failed
@hide 
*/
getPermanentFailed : function(  ) {},

/**Sets if this APN setting is permanently failed.
@param {Boolean} permanentFailed if this APN setting is permanently failed
@hide 
*/
setPermanentFailed : function(  ) {},

/**Gets the human-readable name that describes the APN.
@return {String} the entry name for the APN
*/
getEntryName : function(  ) {},

/**Returns the name of the APN.
@return {String} APN name
*/
getApnName : function(  ) {},

/**Gets the HTTP proxy address configured for the APN. The proxy address might be an IP address
 or hostname. This method returns {@code null} if system networking (typically DNS) isn’t
 available to resolve a hostname value—values set as IP addresses don’t have this restriction.
 This is a known problem and will be addressed in a future release.
@return {Object {java.net.InetAddress}} the HTTP proxy address or {@code null} if DNS isn’t available to resolve a hostname
@deprecated use {@link #getProxyAddressAsString()} instead.
*/
getProxyAddress : function(  ) {},

/**Returns the proxy address of the APN.
@return {String} proxy address.
*/
getProxyAddressAsString : function(  ) {},

/**Returns the proxy address of the APN.
@return {Number} proxy address.
*/
getProxyPort : function(  ) {},

/**Returns the MMSC Uri of the APN.
@return {Object {android.net.Uri}} MMSC Uri.
*/
getMmsc : function(  ) {},

/**Gets the MMS proxy address configured for the APN. The MMS proxy address might be an IP
 address or hostname. This method returns {@code null} if system networking (typically DNS)
 isn’t available to resolve a hostname value—values set as IP addresses don’t have this
 restriction. This is a known problem and will be addressed in a future release.
@return {Object {java.net.InetAddress}} the MMS proxy address or {@code null} if DNS isn’t available to resolve a hostname
@deprecated use {@link #getMmsProxyAddressAsString()} instead.
*/
getMmsProxyAddress : function(  ) {},

/**Returns the MMS proxy address of the APN.
@return {String} MMS proxy address.
*/
getMmsProxyAddressAsString : function(  ) {},

/**Returns the MMS proxy port of the APN.
@return {Number} MMS proxy port
*/
getMmsProxyPort : function(  ) {},

/**Returns the APN username of the APN.
@return {String} APN username
*/
getUser : function(  ) {},

/**Returns the APN password of the APN.
@return {String} APN password
*/
getPassword : function(  ) {},

/**Returns the authentication type of the APN.
@return {Number} authentication type
*/
getAuthType : function(  ) {},

/**Returns the bitmask of APN types.

 <p>Apn types are usage categories for an APN entry. One APN entry may support multiple
 APN types, eg, a single APN may service regular internet traffic ("default") as well as
 MMS-specific connections.

 <p>The bitmask of APN types is calculated from APN types defined in {@link android.telephony.data.ApnSetting}.
@see Builder#setApnTypeBitmask(int)
@return {Number} a bitmask describing the types of the APN
*/
getApnTypeBitmask : function(  ) {},

/**Returns the unique database id for this entry.
@return {Number} the unique database id
*/
getId : function(  ) {},

/**Returns the numeric operator ID for the APN. Numeric operator ID is defined as
 {@link android.provider.Telephony.Carriers#MCC} +
 {@link android.provider.Telephony.Carriers#MNC}.
@return {String} the numeric operator ID
*/
getOperatorNumeric : function(  ) {},

/**Returns the protocol to use to connect to this APN.

 <p>Protocol is one of the {@code PDP_type} values in TS 27.007 section 10.1.1.
@see Builder#setProtocol(int)
@return {Number} the protocol
*/
getProtocol : function(  ) {},

/**Returns the protocol to use to connect to this APN while the device is roaming.

 <p>Roaming protocol is one of the {@code PDP_type} values in TS 27.007 section 10.1.1.
@see Builder#setRoamingProtocol(int)
@return {Number} the roaming protocol
*/
getRoamingProtocol : function(  ) {},

/**Returns the current status of APN.

 {@code true} : enabled APN.
 {@code false} : disabled APN.
@return {Boolean} the current status
*/
isEnabled : function(  ) {},

/**Returns a bitmask describing the Radio Technologies(Network Types) which this APN may use.

 NetworkType bitmask is calculated from NETWORK_TYPE defined in {@link TelephonyManager}.

 Examples of Network Types include {@link TelephonyManager#NETWORK_TYPE_UNKNOWN},
 {@link TelephonyManager#NETWORK_TYPE_GPRS}, {@link TelephonyManager#NETWORK_TYPE_EDGE}.
@return {Number} a bitmask describing the Radio Technologies(Network Types)
*/
getNetworkTypeBitmask : function(  ) {},

/**Returns the MVNO match type for this APN.
@see Builder#setMvnoType(int)
@return {Number} the MVNO match type
*/
getMvnoType : function(  ) {},

/**Returns the carrier id for this APN.
@see Builder#setCarrierId(int)
@return {Number} the carrier id
*/
getCarrierId : function(  ) {},

/**Returns the skip464xlat flag for this APN.
@return {Number} SKIP_464XLAT_DEFAULT, SKIP_464XLAT_DISABLE or SKIP_464XLAT_ENABLE
@hide 
*/
getSkip464Xlat : function(  ) {},

/**
@hide 
*/
makeApnSetting : function(  ) {},

/**
@hide 
*/
makeApnSetting : function(  ) {},

/**
@hide 
*/
makeApnSetting : function(  ) {},

/**
@hide 
*/
makeApnSetting : function(  ) {},

/**Creates an ApnSetting object from a string.
@param {String} data the string to read.

 The string must be in one of two formats (newlines added for clarity,
 spaces are optional):

 v1 format:
   <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...],

 v2 format:
   [ApnSettingV2] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,

 v3 format:
   [ApnSettingV3] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
   <profileId>, <modemCognitive>, <maxConns>, <waitTime>, <maxConnsTime>, <mtu>,
   <mvnoType>, <mvnoMatchData>

 v4 format:
   [ApnSettingV4] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
   <profileId>, <modemCognitive>, <maxConns>, <waitTime>, <maxConnsTime>, <mtu>,
   <mvnoType>, <mvnoMatchData>, <networkTypeBitmask>

 v5 format:
   [ApnSettingV5] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
   <profileId>, <modemCognitive>, <maxConns>, <waitTime>, <maxConnsTime>, <mtu>,
   <mvnoType>, <mvnoMatchData>, <networkTypeBitmask>, <apnSetId>

 v6 format:
   [ApnSettingV6] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
   <profileId>, <modemCognitive>, <maxConns>, <waitTime>, <maxConnsTime>, <mtu>,
   <mvnoType>, <mvnoMatchData>, <networkTypeBitmask>, <apnSetId>, <carrierId>

 v7 format:
   [ApnSettingV7] <carrier>, <apn>, <proxy>, <port>, <user>, <password>, <server>,
   <mmsc>, <mmsproxy>, <mmsport>, <mcc>, <mnc>, <authtype>,
   <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
   <profileId>, <modemCognitive>, <maxConns>, <waitTime>, <maxConnsTime>, <mtu>,
   <mvnoType>, <mvnoMatchData>, <networkTypeBitmask>, <apnSetId>, <carrierId>, <skip464xlat>

 Note that the strings generated by {@link #toString()} do not contain the username
 and password and thus cannot be read by this method.

 This method may return {@code null} if the input string is invalid.
@hide 
*/
fromString : function(  ) {},

/**Creates an array of ApnSetting objects from a string.
@param {String} data the string to read.

 Builds on top of the same format used by fromString, but allows for multiple entries
 separated by ";".
@hide 
*/
arrayFromString : function(  ) {},

/**Returns the string representation of ApnSetting.

 This method prints null for unset elements. The output doesn't contain password or user.
@hide 
*/
toString : function(  ) {},

/**Returns true if there are MVNO params specified.
@hide 
*/
hasMvnoParams : function(  ) {},

/**
@hide 
*/
canHandleType : function(  ) {},

/**
@hide 
*/
equals : function(  ) {},

/**Compare two APN settings

 Note: This method does not compare 'mId', 'mNetworkTypeBitmask'. We only use this for
 determining if tearing a data call is needed when conditions change. See
 cleanUpConnectionsOnUpdatedApns in DcTracker.
@param {Object {Object}} o the other object to compare
@param {Boolean} isDataRoaming True if the device is on data roaming
@return {Boolean} True if the two APN settings are same
@hide 
*/
equals : function(  ) {},

/**Check if neither mention DUN and are substantially similar
@param {Object {ApnSetting}} other The other APN settings to compare
@return {Boolean} True if two APN settings are similar
@hide 
*/
similar : function(  ) {},

/**
@hide Called by {@link android.app.admin.DevicePolicyManager} to convert this APN into
 ContentValue. If a field is not specified then we put "" instead of null.
*/
toContentValues : function(  ) {},

/**Get supported APN types
@return {Object {java.util.List}} list of APN types
@hide 
*/
getApnTypes : function(  ) {},

/**
@param {Number} apnTypeBitmask bitmask of APN types.
@return {String} comma delimited list of APN types.
@hide 
*/
getApnTypesStringFromBitmask : function(  ) {},

/**
@param {Number} apnType APN type
@return {String} APN type in string format
@hide 
*/
getApnTypeString : function(  ) {},

/**
@param {String} types comma delimited list of APN types.
@return {Number} bitmask of APN types.
@hide 
*/
getApnTypesBitmaskFromString : function(  ) {},

/**
@hide 
*/
getMvnoTypeIntFromString : function(  ) {},

/**
@hide 
*/
getMvnoTypeStringFromInt : function(  ) {},

/**
@hide 
*/
getProtocolIntFromString : function(  ) {},

/**
@hide 
*/
getProtocolStringFromInt : function(  ) {},

/**
@hide 
*/
inetAddressFromString : function(  ) {},

/**
@hide 
*/
inetAddressToString : function(  ) {},

/**Check if this APN setting can support the given network
@param {Number} networkType The network type
@return {Boolean} {@code true} if this APN setting can support the given network.
@hide 
*/
canSupportNetworkType : function(  ) {},

/**
*/
describeContents : function(  ) {},

/**
*/
writeToParcel : function(  ) {},


};