Home
last modified time | relevance | path

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

/frameworks/support/tv-provider/src/android/support/media/tv/
DChannelLogoUtils.java79 URLConnection urlConnection = null; in storeChannelLogo() local
90 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() local
163 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()
164 urlConnection.setReadTimeout(READ_TIMEOUT_MS_FOR_URLCONNECTION); in getUrlConnection()
165 return urlConnection; in getUrlConnection()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java280 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 …]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java225 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()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkMonitor.java820 HttpURLConnection urlConnection = null; in sendHttpProbe() local
826 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 …]
DPacManager.java217 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local
220 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()
230 while ((count = urlConnection.getInputStream().read(buffer)) != -1) { in get()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DBitmapHelper.java71 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in fetchAndRescaleBitmap() local
72 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchAndRescaleBitmap()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java209 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument
210 return delegate.put(uri, urlConnection); in put()
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
DMusicProvider.java135 URLConnection urlConnection = url.openConnection(); in parseUrl() local
136 is = new BufferedInputStream(urlConnection.getInputStream()); in parseUrl()
138 urlConnection.getInputStream(), "iso-8859-1"), 8); in parseUrl()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/model/
DMusicProvider.java304 URLConnection urlConnection = url.openConnection(); in fetchJSONFromUrl() local
305 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchJSONFromUrl()
307 urlConnection.getInputStream(), "iso-8859-1")); in fetchJSONFromUrl()