Searched refs:urlConnection (Results 1 – 4 of 4) sorted by relevance
240 HttpURLConnection urlConnection = null; in testForCaptivePortal()245 urlConnection = (HttpURLConnection) mNetwork.openConnection( in testForCaptivePortal()247 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()248 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()249 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()250 urlConnection.setUseCaches(false); in testForCaptivePortal()251 urlConnection.getInputStream(); in testForCaptivePortal()252 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()256 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
274 HttpsURLConnection urlConnection; in performTlsConnection() local276 urlConnection = (HttpsURLConnection) mNetwork.openConnection(mUrl); in performTlsConnection()277 urlConnection.setSSLSocketFactory(mSocketFactory); in performTlsConnection()278 urlConnection.setConnectTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()279 urlConnection.setReadTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()280 urlConnection.connect(); in performTlsConnection()289 mUrlConnection = urlConnection; in performTlsConnection()
211 public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument212 return mDelegate.put(uri, urlConnection); in put()
219 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local222 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()232 while ((count = urlConnection.getInputStream().read(buffer)) != -1) { in get()