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.java359 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 …]
/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/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1598 HttpURLConnection urlConnection = null; in sendHttpProbe() local
1605 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 …]
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java1057 HttpURLConnection urlConnection = null; in httpClientTest() local
1061 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()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java1155 HttpURLConnection urlConnection = null; in httpClientTest() local
1159 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()