Lines Matching refs:apn

180     /** preferred apn */
186 /** emergency apn Setting*/
200 /* Intent for the provisioning apn alarm */
205 private static final String PROVISIONING_APN_ALARM_TAG_EXTRA = "provisioning.apn.alarm.tag";
210 /* Default for the provisioning apn alarm timeout */
213 /* The provision apn alarm intent used to disable the provisioning apn */
216 /* Used to track stale provisioning apn alarms */
248 if (DBG) log("Provisioning apn alarm");
805 * need to tear down any metered apn type that was enabled anyway by a privileged request.
1061 // Return all active apn types
1063 if (DBG) log("get all active apn types");
1075 // Return active apn of specific apn type
1077 if (VDBG) log( "get active apn string for type:" + apnType);
1082 return apnSetting.apn;
1090 * contains a {@link ApnSetting} that supported the given apn type {@code anpType}.
1093 * Assumes there is less than one {@link ApnSetting} can support the given apn type.
1114 // Return if apn type is a provisioning apn.
1386 // 2) our apn list has change
1521 // Disabled apn's still need avail/unavail notifications - send them out
1531 log("notifyOffApnsOfAvailability skipped apn due to attached && isReady " +
1554 // reasons that only metered apn will be torn down
1625 if (DBG) log("cleanUpConnection: apn context is null");
1662 // to stop using it and let the normal apn list get used to find
1685 // apn is connected but no reference to dcac.
1743 ApnSetting apn = ApnSetting.fromString(apnString);
1744 // apn may be null if apnString isn't valid or has error parsing
1745 if (apn != null) dunCandidates.add(apn);
1753 for (ApnSetting apn : mAllApnSettings) {
1754 if (apn.canHandleType(PhoneConstants.APN_TYPE_DUN)) {
1755 dunCandidates.add(apn);
1860 ApnSetting apn = new ApnSetting(
1897 return apn;
1907 ApnSetting apn = makeApnSetting(cursor);
1908 if (apn == null) {
1912 if (apn.hasMvnoParams()) {
1913 if (r != null && ApnSetting.mvnoMatches(r, apn.mvnoType, apn.mvnoMatchData)) {
1914 mvnoApns.add(apn);
1917 mnoApns.add(apn);
1983 if (DBG) log("setupData: return for no apn found!");
1994 // On GSM/LTE we can share existing apn connections provided they support
2078 // Search for Initial APN setting and the first apn that can handle default
2079 for (ApnSetting apn : mAllApnSettings) {
2080 if (apn.canHandleType(PhoneConstants.APN_TYPE_IA)) {
2082 log("setInitialApn: iaApnSetting=" + apn);
2083 iaApnSetting = apn;
2086 && (apn.canHandleType(PhoneConstants.APN_TYPE_DEFAULT))) {
2087 // Use the first default apn if no better choice
2088 log("setInitialApn: defaultApnSetting=" + apn);
2089 defaultApnSetting = apn;
2094 // The priority of apn candidates from highest to lowest is:
2096 // 2) mPreferredApn, i.e. the current preferred apn
2097 // 3) The first apn that than handle APN_TYPE_DEFAULT
2116 if (DBG) log("setInitialAttachApn: X There in no available apn");
2167 * @return true if higher priority active apn found
2277 + " apn=" + apnContext);
2738 // TODO: Remove this once all old vendor RILs are gone. We don't need to set initial apn
2913 ApnSetting apn = apnContext.getApnSetting();
2915 log("onDataSetupComplete: success apn=" + (apn == null ? "unknown" : apn.apn));
2917 if (apn != null && apn.proxy != null && apn.proxy.length() != 0) {
2919 String port = apn.port;
2921 ProxyInfo proxy = new ProxyInfo(apn.proxy,
2926 apn.port + "): " + e);
2939 mPreferredApn = apn;
2968 // We do this if this isn't a special provisioning apn or if we've been
2978 log("onDataSetupComplete: successful, BUT send connected to prov apn as"
3022 ApnSetting apn = apnContext.getApnSetting();
3023 log(String.format("onDataSetupComplete: error apn=%s cause=%s",
3024 (apn == null ? "unknown" : apn.apn), cause));
3032 ApnSetting apn = apnContext.getApnSetting();
3034 apnContext.getApnType(), apn != null ? apn.apn : "unknown", cause.toString());
3052 log("cause = " + cause + ", mark apn as permanent failed. apn = " + apn);
3053 apnContext.markApnPermanentFailed(apn);
3201 if(DBG) log("onDisconnectDone: isOnlySigneDcAllowed true so setup single apn");
3309 for (ApnSetting apn : mAllApnSettings) {
3310 if (apn.modemCognitive) {
3311 DataProfile dp = createDataProfile(apn);
3335 // query only enabled apn.
3336 // carrier_enabled : 1 means enabled apn, 0 disabled apn.
3425 return new ApnSetting(id, dest.numeric, dest.carrier, dest.apn,
3537 for (ApnSetting apn : mAllApnSettings) {
3538 if (apn.canHandleType(requestedApnType)) {
3539 if (ServiceState.bitmaskHasTech(apn.networkTypeBitmask,
3541 if (DBG) log("buildWaitingApns: adding apn=" + apn);
3542 apnList.add(apn);
3545 log("buildWaitingApns: bearerBitmask:" + apn.bearerBitmask
3546 + " or " + "networkTypeBitmask:" + apn.networkTypeBitmask
3632 uri, new String[] { "_id", "name", "apn" },
3774 // of service and is not applicable for apn bearer bitmask. We should bypass the
3775 // check of waiting apn list and keep the data connection on, and no need to
4359 for (ApnSetting apn : mAllApnSettings) {
4360 if (ArrayUtils.contains(apn.types, PhoneConstants.APN_TYPE_EMERGENCY)) {
4400 // service and is not applicable for apn bearer bitmask. We should bypass the check
4401 // of waiting apn list and keep the data connection on.
4416 if (VDBG) log("new waiting apn is different for " + apnContext);
4586 // send one out for each apn type in play
4875 private static DataProfile createDataProfile(ApnSetting apn) {
4876 return createDataProfile(apn, apn.profileId);
4880 public static DataProfile createDataProfile(ApnSetting apn, int profileId) {
4885 apn.networkTypeBitmask);
4895 return new DataProfile(profileId, apn.apn, apn.protocol,
4896 apn.authType, apn.user, apn.password, profileType,
4897 apn.maxConnsTime, apn.maxConns, apn.waitTime, apn.carrierEnabled, apn.typesBitmap,
4898 apn.roamingProtocol, bearerBitmap, apn.mtu, apn.mvnoType, apn.mvnoMatchData,
4899 apn.modemCognitive);