OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:urlConnection
(Results
1 - 25
of
28
) 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
;
92
URLConnection
urlConnection
= url.openConnection();
93
assertNull(
urlConnection
.getHeaderField(Integer.MIN_VALUE));
94
assertNull(
urlConnection
.getHeaderField(Integer.MAX_VALUE));
95
assertNull(
urlConnection
.getHeaderFieldKey(Integer.MIN_VALUE));
96
assertNull(
urlConnection
.getHeaderFieldKey(Integer.MAX_VALUE));
97
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
org.eclipse.ecf.provider.filetransfer_3.1.0.v20100529-0735.jar
org.eclipse.help.base_3.5.2.v201011171123.jar
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
OkResponseCacheAdapter.java
26
import java.net.
URLConnection
;
41
@Override public CacheRequest put(URI uri,
URLConnection
urlConnection
) throws IOException {
42
return responseCache.put(uri,
urlConnection
);
/external/okhttp/src/main/java/com/squareup/okhttp/
OkResponseCache.java
23
import java.net.
URLConnection
;
38
CacheRequest put(URI uri,
URLConnection
urlConnection
) throws IOException;
HttpResponseCache.java
46
import java.net.
URLConnection
;
152
@Override public CacheRequest put(URI uri,
URLConnection
connection) throws IOException {
226
@Override public CacheRequest put(URI uri,
URLConnection
urlConnection
) throws IOException {
227
if (!(
urlConnection
instanceof HttpURLConnection)) {
231
HttpURLConnection httpConnection = (HttpURLConnection)
urlConnection
;
322
private HttpEngine getHttpEngine(
URLConnection
httpConnection) {
/frameworks/base/core/java/android/net/
CaptivePortalTracker.java
373
HttpURLConnection
urlConnection
= null;
381
urlConnection
= (HttpURLConnection) url.openConnection();
382
urlConnection
.setInstanceFollowRedirects(false);
383
urlConnection
.setConnectTimeout(SOCKET_TIMEOUT_MS);
384
urlConnection
.setReadTimeout(SOCKET_TIMEOUT_MS);
385
urlConnection
.setUseCaches(false);
390
urlConnection
.getInputStream();
396
int rspCode =
urlConnection
.getResponseCode();
408
} // else something went wrong with setting up the
urlConnection
411
if (
urlConnection
!= null)
[
all
...]
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/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
45
import java.net.
URLConnection
;
114
HttpURLConnection
urlConnection
= (HttpURLConnection) server.getUrl("/").openConnection();
115
urlConnection
.addRequestProperty("D", "e");
116
urlConnection
.addRequestProperty("D", "f");
117
assertEquals("f",
urlConnection
.getRequestProperty("D"));
118
assertEquals("f",
urlConnection
.getRequestProperty("d"));
119
Map<String, List<String>> requestHeaders =
urlConnection
.getRequestProperties();
133
urlConnection
.setRequestProperty(null, "j");
138
urlConnection
.addRequestProperty(null, "k");
142
urlConnection
.setRequestProperty("NullValue", null); // should fail silently
[
all
...]
/frameworks/base/core/java/android/net/http/
HttpResponseCache.java
31
import java.net.
URLConnection
;
214
@Override public CacheRequest put(URI uri,
URLConnection
urlConnection
) throws IOException {
215
return delegate.put(uri,
urlConnection
);
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
URLConnectionTest.java
49
import java.net.
URLConnection
;
132
HttpURLConnection
urlConnection
= client.open(server.getUrl("/"));
133
urlConnection
.addRequestProperty("D", "e");
134
urlConnection
.addRequestProperty("D", "f");
135
assertEquals("f",
urlConnection
.getRequestProperty("D"));
136
assertEquals("f",
urlConnection
.getRequestProperty("d"));
137
Map<String, List<String>> requestHeaders =
urlConnection
.getRequestProperties();
151
urlConnection
.setRequestProperty(null, "j");
156
urlConnection
.addRequestProperty(null, "k");
160
urlConnection
.setRequestProperty("NullValue", null)
[
all
...]
HttpResponseCacheTest.java
46
import java.net.
URLConnection
;
241
@Override public CacheRequest put(URI uri,
URLConnection
conn) throws IOException {
302
HttpURLConnection
urlConnection
= openConnection(server.getUrl("/"));
303
InputStream in =
urlConnection
.getInputStream();
304
assertEquals("I love ", readAscii(
urlConnection
, "I love ".length()));
306
assertEquals("spiders", readAscii(
urlConnection
, "spiders".length()));
312
urlConnection
= openConnection(server.getUrl("/")); // cached!
313
in =
urlConnection
.getInputStream();
315
readAscii(
urlConnection
, "I love puppies but hate spiders".length()));
316
assertEquals(200,
urlConnection
.getResponseCode())
[
all
...]
/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();
/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/jmonkeyengine/engine/src/test/jme3test/
TestChooser.java
49
import java.net.
URLConnection
;
128
URLConnection
urlConnection
= url.openConnection();
129
if (
urlConnection
instanceof JarURLConnection) {
130
JarURLConnection conn = (JarURLConnection)
urlConnection
;
/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);
/frameworks/base/services/java/com/android/server/connectivity/
PacManager.java
51
import java.net.
URLConnection
;
204
URLConnection
urlConnection
= url.openConnection(java.net.Proxy.NO_PROXY);
205
return new String(Streams.readFully(
urlConnection
.getInputStream()));
/developers/build/lib/
assetstudio.jar
/prebuilts/devtools/tools/lib/
asset-studio.jar
/libcore/benchmarks/libs/
caliper.jar
/prebuilts/sdk/14/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
/prebuilts/sdk/current/
android.jar
Completed in 503 milliseconds
1
2