Home
last modified time | relevance | path

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

/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java240 HttpURLConnection urlConnection = null; in testForCaptivePortal()
245 urlConnection = (HttpURLConnection) mNetwork.openConnection( in testForCaptivePortal()
247 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()
248 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()
249 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()
250 urlConnection.setUseCaches(false); in testForCaptivePortal()
251 urlConnection.getInputStream(); in testForCaptivePortal()
252 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()
256 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java274 HttpsURLConnection urlConnection; in performTlsConnection() local
276 urlConnection = (HttpsURLConnection) mNetwork.openConnection(mUrl); in performTlsConnection()
277 urlConnection.setSSLSocketFactory(mSocketFactory); in performTlsConnection()
278 urlConnection.setConnectTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()
279 urlConnection.setReadTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()
280 urlConnection.connect(); in performTlsConnection()
289 mUrlConnection = urlConnection; in performTlsConnection()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java211 public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument
212 return mDelegate.put(uri, urlConnection); in put()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java219 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local
222 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()
232 while ((count = urlConnection.getInputStream().read(buffer)) != -1) { in get()