Searched refs:urlConnection (Results 1 – 4 of 4) sorted by relevance
239 HttpURLConnection urlConnection = null; in testForCaptivePortal()244 urlConnection = (HttpURLConnection) mNetwork.openConnection( in testForCaptivePortal()246 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()247 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()248 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()249 urlConnection.setUseCaches(false); in testForCaptivePortal()250 urlConnection.getInputStream(); in testForCaptivePortal()251 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()255 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
211 public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument212 return mDelegate.put(uri, urlConnection); in put()
213 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local216 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()226 while ((count = urlConnection.getInputStream().read(buffer)) != -1) { in get()
281 URLConnection urlConnection; in performTlsConnection() local285 urlConnection = mNetwork.openConnection(mUrl); in performTlsConnection()296 if (urlConnection instanceof HttpsURLConnection) { in performTlsConnection()297 httpsURLConnection = (HttpsURLConnection) urlConnection; in performTlsConnection()