Searched refs:urlConnection (Results 1 – 8 of 8) 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 …]
480 HttpURLConnection urlConnection = null; in testForCaptivePortal()484 urlConnection = (HttpURLConnection) mNetwork.openConnection(mUrl); in testForCaptivePortal()485 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()486 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()487 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()488 urlConnection.setUseCaches(false); in testForCaptivePortal()490 urlConnection.setRequestProperty("User-Agent", mUserAgent); in testForCaptivePortal()493 String requestHeader = urlConnection.getRequestProperties().toString(); in testForCaptivePortal()495 urlConnection.getInputStream(); in testForCaptivePortal()496 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()
363 HttpURLConnection urlConnection = null; in httpClientTest() local367 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()368 if (urlConnection.getResponseCode() == 200) { in httpClientTest()371 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()376 if (urlConnection != null) { in httpClientTest()377 urlConnection.disconnect(); in httpClientTest()
1644 HttpURLConnection urlConnection = null; in run() local1647 urlConnection = makeProbeConnection(url, true /* followRedirects */); in run()1651 readContentFromDownloadUrl(urlConnection); in run()1666 if (urlConnection != null) { in run()1667 urlConnection.disconnect(); in run()2426 HttpURLConnection urlConnection = null; in sendHttpProbe() local2436 urlConnection = makeProbeConnection(url, followRedirect); in sendHttpProbe()2438 String requestHeader = urlConnection.getRequestProperties().toString(); in sendHttpProbe()2443 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()2444 redirectUrl = urlConnection.getHeaderField("location"); in sendHttpProbe()[all …]
1060 HttpURLConnection urlConnection = null; in httpClientTest() local1064 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()1065 if (urlConnection.getResponseCode() == 200) { in httpClientTest()1068 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()1073 if (urlConnection != null) { in httpClientTest()1074 urlConnection.disconnect(); in httpClientTest()
1259 HttpURLConnection urlConnection = null; in httpClientTest() local1263 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()1264 if (urlConnection.getResponseCode() == 200) { in httpClientTest()1267 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()1272 if (urlConnection != null) { in httpClientTest()1273 urlConnection.disconnect(); in httpClientTest()