OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:urlConnection
(Results
1 - 25
of
48
) sorted by null
1
2
/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/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
OkHttp.java
66
HttpURLConnection
urlConnection
= client.open(url);
67
long total = readAllAndClose(
urlConnection
.getInputStream());
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"))) {
/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));
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DocumentBuilderImpl.java
21
import java.net.
URLConnection
;
116
URLConnection
urlConnection
= url.openConnection();
117
urlConnection
.connect();
119
parser.setInput(
urlConnection
.getInputStream(), inputEncoding);
/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
/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();
/libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java
43
import java.net.
URLConnection
;
118
HttpURLConnection
urlConnection
= (HttpURLConnection) server.getUrl("/").openConnection();
119
urlConnection
.addRequestProperty("D", "e");
120
urlConnection
.addRequestProperty("D", "f");
121
assertEquals("f",
urlConnection
.getRequestProperty("D"));
122
assertEquals("f",
urlConnection
.getRequestProperty("d"));
123
Map<String, List<String>> requestHeaders =
urlConnection
.getRequestProperties();
137
urlConnection
.setRequestProperty(null, "j");
142
urlConnection
.addRequestProperty(null, "k");
146
urlConnection
.setRequestProperty("NullValue", null); // should fail silently
[
all
...]
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
VideoProvider.java
31
import java.net.
URLConnection
;
69
URLConnection
urlConnection
= url.openConnection();
70
is = new BufferedInputStream(
urlConnection
.getInputStream());
72
urlConnection
.getInputStream(), "iso-8859-1"), 8);
/external/mockwebserver/src/test/java/com/google/mockwebserver/
MockWebServerTest.java
27
import java.net.
URLConnection
;
125
URLConnection
connection = server.getUrl("/").openConnection();
153
URLConnection
connection = server.getUrl("/").openConnection();
166
URLConnection
connection = server.getUrl("/").openConnection();
184
URLConnection
urlConnection
= server.getUrl("/").openConnection();
185
urlConnection
.setReadTimeout(1000);
186
InputStream in =
urlConnection
.getInputStream();
196
URLConnection
urlConnection2 = server.getUrl("/").openConnection();
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
MockWebServerTest.java
27
import java.net.
URLConnection
;
185
URLConnection
connection = server.getUrl("/").openConnection();
213
URLConnection
connection = server.getUrl("/").openConnection();
226
URLConnection
connection = server.getUrl("/").openConnection();
244
URLConnection
urlConnection
= server.getUrl("/").openConnection();
245
urlConnection
.setReadTimeout(1000);
246
InputStream in =
urlConnection
.getInputStream();
256
URLConnection
urlConnection2 = server.getUrl("/").openConnection();
303
URLConnection
connection = server.getUrl("/").openConnection()
[
all
...]
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
MusicProvider.java
35
import java.net.
URLConnection
;
135
URLConnection
urlConnection
= url.openConnection();
136
is = new BufferedInputStream(
urlConnection
.getInputStream());
138
urlConnection
.getInputStream(), "iso-8859-1"), 8);
/frameworks/base/services/core/java/com/android/server/connectivity/
NetworkMonitor.java
656
HttpURLConnection
urlConnection
= null;
[
all
...]
PacManager.java
48
import java.net.
URLConnection
;
201
URLConnection
urlConnection
= url.openConnection(java.net.Proxy.NO_PROXY);
202
return new String(Streams.readFully(
urlConnection
.getInputStream()));
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/
MusicProvider.java
33
import java.net.
URLConnection
;
273
URLConnection
urlConnection
= url.openConnection();
274
is = new BufferedInputStream(
urlConnection
.getInputStream());
276
urlConnection
.getInputStream(), "iso-8859-1"));
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/
MusicProvider.java
33
import java.net.
URLConnection
;
273
URLConnection
urlConnection
= url.openConnection();
274
is = new BufferedInputStream(
urlConnection
.getInputStream());
276
urlConnection
.getInputStream(), "iso-8859-1"));
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
MusicProvider.java
33
import java.net.
URLConnection
;
273
URLConnection
urlConnection
= url.openConnection();
274
is = new BufferedInputStream(
urlConnection
.getInputStream());
276
urlConnection
.getInputStream(), "iso-8859-1"));
/libcore/luni/src/main/java/org/apache/harmony/xml/
ExpatParser.java
24
import java.net.
URLConnection
;
748
URLConnection
urlConnection
= new URL(url).openConnection();
749
urlConnection
.setConnectTimeout(TIMEOUT);
750
urlConnection
.setReadTimeout(TIMEOUT);
751
urlConnection
.setDoInput(true);
752
urlConnection
.setDoOutput(false);
753
return
urlConnection
.getInputStream();
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
ResponseCacheTest.java
43
import java.net.
URLConnection
;
158
HttpURLConnection
urlConnection
= openConnection(server.getUrl("/"));
159
InputStream in =
urlConnection
.getInputStream();
160
assertEquals("I love ", readAscii(
urlConnection
, "I love ".length()));
162
assertEquals("spiders", readAscii(
urlConnection
, "spiders".length()));
166
urlConnection
= openConnection(server.getUrl("/")); // cached!
167
in =
urlConnection
.getInputStream();
169
readAscii(
urlConnection
, "I love puppies but hate spiders".length()));
170
assertEquals(200,
urlConnection
.getResponseCode());
171
assertEquals("Fantastic",
urlConnection
.getResponseMessage())
[
all
...]
HttpResponseCacheTest.java
48
import java.net.
URLConnection
;
319
HttpURLConnection
urlConnection
= openConnection(server.getUrl("/"));
320
InputStream in =
urlConnection
.getInputStream();
321
assertEquals("I love ", readAscii(
urlConnection
, "I love ".length()));
323
assertEquals("spiders", readAscii(
urlConnection
, "spiders".length()));
329
urlConnection
= openConnection(server.getUrl("/")); // cached!
330
in =
urlConnection
.getInputStream();
332
readAscii(
urlConnection
, "I love puppies but hate spiders".length()));
333
assertEquals(200,
urlConnection
.getResponseCode());
334
assertEquals("Fantastic",
urlConnection
.getResponseMessage())
[
all
...]
/developers/build/lib/
assetstudio.jar
Completed in 903 milliseconds
1
2