Home
last modified time | relevance | path

Searched refs:urlConnection (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java229 HttpURLConnection urlConnection = null; in testForCaptivePortal()
232 urlConnection = (HttpURLConnection) mURL.openConnection(); in testForCaptivePortal()
233 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()
234 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()
235 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()
236 urlConnection.setUseCaches(false); in testForCaptivePortal()
237 urlConnection.getInputStream(); in testForCaptivePortal()
238 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()
241 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkMonitor.java805 HttpURLConnection urlConnection = null; in sendHttpProbe() local
810 urlConnection = (HttpURLConnection) mNetworkAgentInfo.network.openConnection(url); in sendHttpProbe()
811 urlConnection.setInstanceFollowRedirects(probeType == ValidationProbeEvent.PROBE_PAC); in sendHttpProbe()
812 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()
813 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()
814 urlConnection.setUseCaches(false); in sendHttpProbe()
819 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()
820 redirectUrl = urlConnection.getHeaderField("location"); in sendHttpProbe()
828 " headers=" + urlConnection.getHeaderFields()); in sendHttpProbe()
840 if (httpResponseCode == 200 && urlConnection.getContentLength() == 0) { in sendHttpProbe()
[all …]
DPacManager.java201 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local
202 return new String(Streams.readFully(urlConnection.getInputStream())); in get()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java209 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument
210 return delegate.put(uri, urlConnection); in put()
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
DMusicProvider.java135 URLConnection urlConnection = url.openConnection(); in parseUrl() local
136 is = new BufferedInputStream(urlConnection.getInputStream()); in parseUrl()
138 urlConnection.getInputStream(), "iso-8859-1"), 8); in parseUrl()
/frameworks/base/docs/html/training/articles/
Dsecurity-ssl.jd117 URLConnection urlConnection = url.openConnection();
118 InputStream in = urlConnection.getInputStream();
222 HttpsURLConnection urlConnection =
224 urlConnection.setSSLSocketFactory(context.getSocketFactory());
225 InputStream in = urlConnection.getInputStream();
411 HttpsURLConnection urlConnection =
413 urlConnection.setHostnameVerifier(hostnameVerifier);
414 InputStream in = urlConnection.getInputStream();