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 …]
359 HttpURLConnection urlConnection = null; in testForCaptivePortal()363 urlConnection = (HttpURLConnection) mNetwork.openConnection(mUrl); in testForCaptivePortal()364 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()365 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()366 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()367 urlConnection.setUseCaches(false); in testForCaptivePortal()369 urlConnection.setRequestProperty("User-Agent", mUserAgent); in testForCaptivePortal()372 String requestHeader = urlConnection.getRequestProperties().toString(); in testForCaptivePortal()374 urlConnection.getInputStream(); in testForCaptivePortal()375 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()
1598 HttpURLConnection urlConnection = null; in sendHttpProbe() local1605 urlConnection = (HttpURLConnection) mCleartextDnsNetwork.openConnection(url); in sendHttpProbe()1606 urlConnection.setInstanceFollowRedirects(probeType == ValidationProbeEvent.PROBE_PAC); in sendHttpProbe()1607 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()1608 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()1609 urlConnection.setRequestProperty("Connection", "close"); in sendHttpProbe()1610 urlConnection.setUseCaches(false); in sendHttpProbe()1612 urlConnection.setRequestProperty("User-Agent", mCaptivePortalUserAgent); in sendHttpProbe()1615 String requestHeader = urlConnection.getRequestProperties().toString(); in sendHttpProbe()1620 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()[all …]
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()
1057 HttpURLConnection urlConnection = null; in httpClientTest() local1061 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()1062 if (urlConnection.getResponseCode() == 200) { in httpClientTest()1065 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()1070 if (urlConnection != null) { in httpClientTest()1071 urlConnection.disconnect(); in httpClientTest()
1155 HttpURLConnection urlConnection = null; in httpClientTest() local1159 urlConnection = (HttpURLConnection) url.openConnection(); in httpClientTest()1160 if (urlConnection.getResponseCode() == 200) { in httpClientTest()1163 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage(); in httpClientTest()1168 if (urlConnection != null) { in httpClientTest()1169 urlConnection.disconnect(); in httpClientTest()