Lines Matching refs:apn
72 * @param apn The APN
80 ApnSettingsLoader.Apn apn, Bundle mmsConfig, String userAgent, String uaProfUrl)
86 * @param apn The APN to use
89 protected abstract String getHttpRequestUrl(ApnSettingsLoader.Apn apn);
124 * @param apnSettingsLoader the APN loader
148 // Load the potential APNs. In most cases there should be only one APN available.
149 // On some devices on which we can't obtain APN from system, we look up our own
150 // APN list. Since we don't have exact information, we may get a list of potential
151 // APNs to try. Whenever we found a successful APN, we signal it and return.
153 final List<ApnSettingsLoader.Apn> apns = apnSettingsLoader.get(apnName);
155 throw new ApnException("No valid APN");
162 for (ApnSettingsLoader.Apn apn : apns) {
163 Log.i(MmsService.TAG, "Using APN ["
164 + "MMSC=" + apn.getMmsc() + ", "
165 + "PROXY=" + apn.getMmsProxy() + ", "
166 + "PORT=" + apn.getMmsProxyPort() + "]");
168 final String url = getHttpRequestUrl(apn);
170 requestRoute(networkManager.getConnectivityManager(), apn, url);
173 context, networkManager, apn, mmsConfig, userAgent, uaProfUrl);
178 // Notify APN loader this is a valid APN
179 apn.setSuccess();
191 Log.e(MmsService.TAG, "MmsRequest: APN failure", e);
213 * Check if the response indicates a failure when we send to wrong APN.
214 * Sometimes even if you send to the wrong APN, a response in valid PDU format can still
283 * Request the route to the APN (either proxy host or the MMSC host)
286 * @param apn the current APN
291 final ApnSettingsLoader.Apn apn, final String url) throws MmsHttpException {
292 String host = apn.getMmsProxy();