Home
last modified time | relevance | path

Searched refs:urlConnection (Results 1 – 8 of 8) sorted by relevance

/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java116 URLConnection urlConnection = null; in decodeSampledBitmapFromUriString() local
126 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() local
179 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()
180 urlConnection.setReadTimeout(READ_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()
[all …]
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java480 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 …]
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java84 HttpURLConnection urlConnection = null; in httpRequest() local
87 urlConnection = (HttpURLConnection) targetURL.openConnection(); in httpRequest()
88 urlConnection.connect(); in httpRequest()
89 int respCode = urlConnection.getResponseCode(); in httpRequest()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java363 HttpURLConnection urlConnection = null; in httpClientTest() local
367 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiStatusTest.java363 HttpURLConnection urlConnection = null; in httpClientTest() local
367 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()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1644 HttpURLConnection urlConnection = null; in run() local
1647 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() local
2436 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 …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java1060 HttpURLConnection urlConnection = null; in httpClientTest() local
1064 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()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1259 HttpURLConnection urlConnection = null; in httpClientTest() local
1263 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()