HomeSort by relevance Sort by last modified time
    Searched refs:urlConnection (Results 1 - 25 of 140) sorted by null

1 2 3 4 5 6

  /external/glide/library/src/main/java/com/bumptech/glide/load/data/
HttpUrlFetcher.java 24 private HttpURLConnection urlConnection;
57 urlConnection = connectionFactory.build(url);
58 urlConnection.setConnectTimeout(2500);
59 urlConnection.setReadTimeout(2500);
60 urlConnection.setUseCaches(false);
61 urlConnection.setDoInput(true);
64 urlConnection.connect();
68 final int statusCode = urlConnection.getResponseCode();
70 stream = urlConnection.getInputStream();
73 String redirectUrlString = urlConnection.getHeaderField("Location")
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/
FileURLConnectionTest.java 21 import java.net.URLConnection;
93 URLConnection urlConnection = url.openConnection();
94 assertNull(urlConnection.getHeaderField(Integer.MIN_VALUE));
95 assertNull(urlConnection.getHeaderField(Integer.MAX_VALUE));
96 assertNull(urlConnection.getHeaderFieldKey(Integer.MIN_VALUE));
97 assertNull(urlConnection.getHeaderFieldKey(Integer.MAX_VALUE));
98 assertNull(urlConnection.getHeaderField(null));
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20100529-0735.jar 
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/eclipse/tycho/tycho-bundles-external/0.20.0/eclipse/plugins/
org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20130604-1622.jar 
  /prebuilts/tools/common/m2/repository/org/eclipse/tycho/tycho-bundles-external/0.18.1/eclipse/plugins/
org.eclipse.ecf.provider.filetransfer.ssl_1.0.0.v20130604-1622.jar 
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
FileURLConnectionTest.java 26 import java.net.URLConnection;
125 URLConnection urlConnection = url.openConnection();
126 assertNull(urlConnection.getHeaderField(Integer.MIN_VALUE));
127 assertNull(urlConnection.getHeaderField(Integer.MAX_VALUE));
128 assertNull(urlConnection.getHeaderFieldKey(Integer.MIN_VALUE));
129 assertNull(urlConnection.getHeaderFieldKey(Integer.MAX_VALUE));
130 assertNull(urlConnection.getHeaderField(null));
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
UrlConnection.java 31 class UrlConnection extends SynchronousHttpClient {
63 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
64 InputStream in = urlConnection.getInputStream();
65 if ("gzip".equals(urlConnection.getHeaderField("Content-Encoding"))) {
OkHttp.java 67 HttpURLConnection urlConnection = new OkUrlFactory(client).open(url);
68 long total = readAllAndClose(urlConnection.getInputStream());
  /frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
CaptivePortalLoginActivity.java 231 HttpURLConnection urlConnection = null;
234 urlConnection = (HttpURLConnection) mURL.openConnection();
235 urlConnection.setInstanceFollowRedirects(false);
236 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS);
237 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS);
238 urlConnection.setUseCaches(false);
239 urlConnection.getInputStream();
240 httpResponseCode = urlConnection.getResponseCode();
243 if (urlConnection != null) urlConnection.disconnect()
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
StreamingVideoActivity.java 242 HttpURLConnection urlConnection = null;
245 urlConnection = (HttpURLConnection) url.openConnection();
246 if (urlConnection.getResponseCode() != 200) {
248 + urlConnection.getResponseCode());
251 new InputStreamReader(urlConnection.getInputStream()));
257 if (urlConnection != null) {
258 urlConnection.disconnect();
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
70 is = new BufferedInputStream(urlConnection.getInputStream());
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
70 is = new BufferedInputStream(urlConnection.getInputStream());
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
BitmapHelper.java 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
70 is = new BufferedInputStream(urlConnection.getInputStream());
  /packages/apps/Browser/src/com/android/browser/search/
OpenSearchSearchEngine.java 171 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
172 urlConnection.setRequestProperty("User-Agent", USER_AGENT);
173 urlConnection.setConnectTimeout(HTTP_TIMEOUT_MS);
175 if (urlConnection.getResponseCode() == 200) {
178 responseCharset = ResponseUtils.responseCharset(urlConnection.getContentType());
187 byte[] responseBytes = Streams.readFully(urlConnection.getInputStream());
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
JavaApiConverter.java 39 import java.net.URLConnection;
64 * Creates an OkHttp {@link Response} using the supplied {@link URI} and {@link URLConnection}
65 * to supply the data. The URLConnection is assumed to already be connected. If this method
68 public static Response createOkResponseForCachePut(URI uri, URLConnection urlConnection)
71 HttpURLConnection httpUrlConnection = (HttpURLConnection) urlConnection;
76 Headers responseHeaders = createHeaders(urlConnection.getHeaderFields());
78 Headers varyHeaders = varyHeaders(urlConnection, responseHeaders);
111 ResponseBody okBody = createOkBody(urlConnection);
154 private static Headers varyHeaders(URLConnection urlConnection, Headers responseHeaders)
    [all...]
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageFetcher.java 268 HttpURLConnection urlConnection = null;
274 urlConnection = (HttpURLConnection) url.openConnection();
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
286 if (urlConnection != null) {
287 urlConnection.disconnect();
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageFetcher.java 268 HttpURLConnection urlConnection = null;
274 urlConnection = (HttpURLConnection) url.openConnection();
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
286 if (urlConnection != null) {
287 urlConnection.disconnect();
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageFetcher.java 268 HttpURLConnection urlConnection = null;
274 urlConnection = (HttpURLConnection) url.openConnection();
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
286 if (urlConnection != null) {
287 urlConnection.disconnect();
  /frameworks/base/services/core/java/com/android/server/connectivity/
NetworkMonitor.java 640 HttpURLConnection urlConnection = null;
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
RichFeedUtil.java 35 import java.net.URLConnection;
70 URLConnection urlConnection = new URL(catalogUri.toString()).openConnection();
71 inputStream = urlConnection.getInputStream();
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
AndroidShimResponseCache.java 26 import java.net.URLConnection;
68 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException {
69 Response okResponse = JavaApiConverter.createOkResponseForCachePut(uri, urlConnection);
71 // The URLConnection is not cacheable or could not be converted. Stop.
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
HttpResponseCache.java 30 import java.net.URLConnection;
101 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException {
102 return shimResponseCache.put(uri, urlConnection);
  /frameworks/base/core/java/android/net/http/
HttpResponseCache.java 30 import java.net.URLConnection;
208 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException {
209 return delegate.put(uri, urlConnection);
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiStatusTest.java 396 HttpURLConnection urlConnection = null;
400 urlConnection = (HttpURLConnection) url.openConnection();
401 if (urlConnection.getResponseCode() == 200) {
404 mHttpClientTestResult = "Fail: Code: " + urlConnection.getResponseMessage();
409 if (urlConnection != null) {
410 urlConnection.disconnect();
  /packages/apps/Settings/tests/src/com/android/settings/vpn2/
VpnTests.java 231 HttpURLConnection urlConnection = null;
241 urlConnection = (HttpURLConnection) url.openConnection();
242 Log.i(TAG, "Response from httpget: " + urlConnection.getResponseCode());
244 InputStream is = urlConnection.getInputStream();
263 if (urlConnection != null) {
264 urlConnection.disconnect();

Completed in 924 milliseconds

1 2 3 4 5 6