Searched refs:urlConnection (Results 1 – 7 of 7) sorted by relevance
116 URLConnection urlConnection = null; in decodeSampledBitmapFromUriString() local126 urlConnection = getUrlConnection(uriString); in decodeSampledBitmapFromUriString()127 inputStream = urlConnection.getInputStream(); in decodeSampledBitmapFromUriString()144 close(inputStream, urlConnection); in decodeSampledBitmapFromUriString()148 urlConnection = getUrlConnection(uriString); in decodeSampledBitmapFromUriString()149 inputStream = urlConnection.getInputStream(); in decodeSampledBitmapFromUriString()172 close(inputStream, urlConnection); in decodeSampledBitmapFromUriString()178 URLConnection urlConnection = new URL(uriString).openConnection(); in getUrlConnection() local179 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()180 urlConnection.setReadTimeout(READ_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()[all …]
497 HttpURLConnection urlConnection = null; in testForCaptivePortal()501 urlConnection = (HttpURLConnection) mNetwork.openConnection(mUrl); in testForCaptivePortal()502 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()503 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()504 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()505 urlConnection.setUseCaches(false); in testForCaptivePortal()507 urlConnection.setRequestProperty("User-Agent", mUserAgent); in testForCaptivePortal()510 String requestHeader = urlConnection.getRequestProperties().toString(); in testForCaptivePortal()512 urlConnection.getInputStream(); in testForCaptivePortal()513 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()[all …]
84 HttpURLConnection urlConnection = null; in httpRequest() local87 urlConnection = (HttpURLConnection) targetURL.openConnection(); in httpRequest()88 urlConnection.connect(); in httpRequest()89 int respCode = urlConnection.getResponseCode(); in httpRequest()
362 HttpURLConnection urlConnection = null; in httpClientTest() local366 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()367 if (urlConnection.getResponseCode() == 200) { in httpClientTest()370 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()375 if (urlConnection != null) { in httpClientTest()376 urlConnection.disconnect(); in httpClientTest()
1680 HttpURLConnection urlConnection = null; in run() local1683 urlConnection = makeProbeConnection(url, true /* followRedirects */); in run()1687 readContentFromDownloadUrl(urlConnection); in run()1702 if (urlConnection != null) { in run()1703 urlConnection.disconnect(); in run()2462 HttpURLConnection urlConnection = null; in sendHttpProbe() local2472 urlConnection = makeProbeConnection(url, followRedirect); in sendHttpProbe()2474 String requestHeader = urlConnection.getRequestProperties().toString(); in sendHttpProbe()2479 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()2480 redirectUrl = urlConnection.getHeaderField("location"); in sendHttpProbe()[all …]
293 URLConnection urlConnection; in performTlsConnection() local297 urlConnection = mNetwork.openConnection(mUrl); in performTlsConnection()308 if (urlConnection instanceof HttpsURLConnection) { in performTlsConnection()309 httpsURLConnection = (HttpsURLConnection) urlConnection; in performTlsConnection()
1224 HttpURLConnection urlConnection = null; in httpClientTest() local1228 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()1229 if (urlConnection.getResponseCode() == 200) { in httpClientTest()1232 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()1237 if (urlConnection != null) { in httpClientTest()1238 urlConnection.disconnect(); in httpClientTest()