Home
last modified time | relevance | path

Searched refs:urlConnection (Results 1 – 7 of 7) 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.java497 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 …]
/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.java362 HttpURLConnection urlConnection = null; in httpClientTest() local
366 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()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1680 HttpURLConnection urlConnection = null; in run() local
1683 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() local
2472 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 …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java293 URLConnection urlConnection; in performTlsConnection() local
297 urlConnection = mNetwork.openConnection(mUrl); in performTlsConnection()
308 if (urlConnection instanceof HttpsURLConnection) { in performTlsConnection()
309 httpsURLConnection = (HttpsURLConnection) urlConnection; in performTlsConnection()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1224 HttpURLConnection urlConnection = null; in httpClientTest() local
1228 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()