Searched refs:urlConnection (Results 1 – 9 of 9) sorted by relevance
79 URLConnection urlConnection = null; in storeChannelLogo() local90 urlConnection = getUrlConnection(logoUri.toString()); in storeChannelLogo()91 inputStream = urlConnection.getInputStream(); in storeChannelLogo()104 if (urlConnection instanceof HttpURLConnection) { in storeChannelLogo()105 ((HttpURLConnection) urlConnection).disconnect(); in storeChannelLogo()162 URLConnection urlConnection = new URL(uriString).openConnection(); in getUrlConnection() local163 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()164 urlConnection.setReadTimeout(READ_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()165 return urlConnection; in getUrlConnection()
280 HttpURLConnection urlConnection = null; in testForCaptivePortal()283 urlConnection = (HttpURLConnection) mNetwork.openConnection(mUrl); in testForCaptivePortal()284 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()285 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()286 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()287 urlConnection.setUseCaches(false); in testForCaptivePortal()289 urlConnection.setRequestProperty("User-Agent", mUserAgent); in testForCaptivePortal()292 String requestHeader = urlConnection.getRequestProperties().toString(); in testForCaptivePortal()294 urlConnection.getInputStream(); in testForCaptivePortal()295 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()[all …]
225 HttpURLConnection urlConnection = null; in testForCaptivePortal()229 urlConnection = (HttpURLConnection) mNetwork.openConnection(mUrl); in testForCaptivePortal()230 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()231 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()232 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()233 urlConnection.setUseCaches(false); in testForCaptivePortal()234 urlConnection.getInputStream(); in testForCaptivePortal()235 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()238 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
820 HttpURLConnection urlConnection = null; in sendHttpProbe() local826 urlConnection = (HttpURLConnection) mNetworkAgentInfo.network.openConnection(url); in sendHttpProbe()827 urlConnection.setInstanceFollowRedirects(probeType == ValidationProbeEvent.PROBE_PAC); in sendHttpProbe()828 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()829 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()830 urlConnection.setUseCaches(false); in sendHttpProbe()832 urlConnection.setRequestProperty("User-Agent", mCaptivePortalUserAgent); in sendHttpProbe()835 String requestHeader = urlConnection.getRequestProperties().toString(); in sendHttpProbe()840 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()841 redirectUrl = urlConnection.getHeaderField("location"); in sendHttpProbe()[all …]
217 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local220 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()230 while ((count = urlConnection.getInputStream().read(buffer)) != -1) { in get()
71 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in fetchAndRescaleBitmap() local72 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchAndRescaleBitmap()
209 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument210 return delegate.put(uri, urlConnection); in put()
135 URLConnection urlConnection = url.openConnection(); in parseUrl() local136 is = new BufferedInputStream(urlConnection.getInputStream()); in parseUrl()138 urlConnection.getInputStream(), "iso-8859-1"), 8); in parseUrl()
304 URLConnection urlConnection = url.openConnection(); in fetchJSONFromUrl() local305 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchJSONFromUrl()307 urlConnection.getInputStream(), "iso-8859-1")); in fetchJSONFromUrl()