OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:urlconnection
(Results
1 - 25
of
861
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/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
...]
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp-urlconnection/2.7.4/
BUILD
6
jars = ["okhttp-
urlconnection
-2.7.4.jar"],
14
source = "okhttp-
urlconnection
-2.7.4.pom",
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
URLConnectionTest.java
42
import java.net.
URLConnection
;
64
private
URLConnection
fileURLCon;
71
* {@link java.net.
URLConnection
#addRequestProperty(String, String)}
101
* {@link java.net.
URLConnection
#setRequestProperty(String, String)}
134
* {@link java.net.
URLConnection
#setUseCaches(boolean)}
151
* {@link java.net.
URLConnection
#setAllowUserInteraction(boolean)}
168
static class MockURLConnection extends
URLConnection
{
181
protected
URLConnection
openConnection(URL u) throws IOException {
209
URLConnection
uc;
211
URLConnection
uc2
[
all
...]
ContentHandlerTest.java
23
import java.net.
URLConnection
;
30
* java.net.ContentHandler#getContent(java.net.
URLConnection
,
34
URLConnection
conn = new URL("http://www.apache.org").openConnection();
57
public Object getContent(
URLConnection
uConn) throws IOException {
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
LogUploader.java
51
HttpURLConnection
urlConnection
=
53
urlConnection
.setRequestMethod("POST");
54
urlConnection
.setDoOutput(true);
55
urlConnection
.setRequestProperty("Content-Type", "text/plain");
57
new BufferedOutputStream(
urlConnection
.getOutputStream());
61
final int responseCode =
urlConnection
.getResponseCode();
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
HttpFacade.java
103
HttpURLConnection
urlConnection
= null;
105
urlConnection
= (HttpURLConnection) targetURL.openConnection();
106
urlConnection
.connect();
107
int respCode =
urlConnection
.getResponseCode();
108
String respMsg =
urlConnection
.getResponseMessage();
114
return
urlConnection
;
134
HttpURLConnection
urlConnection
= httpRequest(url);
155
String contentDisposition =
urlConnection
.getHeaderField("Content-Disposition");
173
InputStream in = new BufferedInputStream(
urlConnection
.getInputStream());
177
urlConnection
.disconnect()
[
all
...]
/frameworks/support/tv-provider/src/android/support/media/tv/
ChannelLogoUtils.java
36
import java.net.
URLConnection
;
79
URLConnection
urlConnection
= null;
90
urlConnection
= getUrlConnection(logoUri.toString());
91
inputStream =
urlConnection
.getInputStream();
104
if (
urlConnection
instanceof HttpURLConnection) {
105
((HttpURLConnection)
urlConnection
).disconnect();
161
private static
URLConnection
getUrlConnection(String uriString) throws IOException {
162
URLConnection
urlConnection
= new URL(uriString).openConnection()
[
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/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/
URLStreamHandlerRuntime.java
17
import java.net.
URLConnection
;
73
// final
URLConnection
connection = url.openConnection();
101
"openConnection", "()Ljava/net/
URLConnection
;", false);
103
// Stack[2]: [Ljava/net/
URLConnection
;
110
// Stack[1]: [Ljava/net/
URLConnection
;
132
protected
URLConnection
openConnection(final URL u) throws IOException {
137
private final
URLConnection
connection = new
URLConnection
(null) {
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
Client.java
37
UrlConnection
{
39
return new
UrlConnection
();
UrlConnection.java
31
class
UrlConnection
extends SynchronousHttpClient {
63
HttpURLConnection
urlConnection
= (HttpURLConnection) url.url().openConnection();
64
InputStream in =
urlConnection
.getInputStream();
65
if ("gzip".equals(
urlConnection
.getHeaderField("Content-Encoding"))) {
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/
Handler.java
21
import java.net.
URLConnection
;
30
@Override protected
URLConnection
openConnection(URL url) throws IOException {
34
public static class HandlerURLConnection extends
URLConnection
{
/packages/apps/TV/src/com/android/tv/util/
BitmapUtils.java
39
import java.net.
URLConnection
;
97
URLConnection
urlConnection
= null;
105
// If the
URLConnection
is HttpURLConnection, disconnect() should be called
107
urlConnection
= getUrlConnection(uriString);
108
inputStream =
urlConnection
.getInputStream();
125
close(inputStream,
urlConnection
);
129
urlConnection
= getUrlConnection(uriString);
130
inputStream =
urlConnection
.getInputStream();
153
close(inputStream,
urlConnection
);
[
all
...]
/cts/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/
NetstatsDeviceTest.java
55
final HttpURLConnection
urlConnection
= (HttpURLConnection) url.openConnection();
58
final int status =
urlConnection
.getResponseCode();
64
urlConnection
.disconnect();
/libcore/ojluni/src/main/java/java/net/
ContentHandler.java
33
* {@code
URLConnection
}.
38
* {@code URL} or in {@code
URLConnection
}.
47
* If no content handler could be found,
URLConnection
will
63
* @see java.net.ContentHandler#getContent(java.net.
URLConnection
)
66
* @see java.net.
URLConnection
67
* @see java.net.
URLConnection
#getContent()
68
* @see java.net.
URLConnection
#setContentHandlerFactory(java.net.ContentHandlerFactory)
81
abstract public Object getContent(
URLConnection
urlc) throws IOException;
100
public Object getContent(
URLConnection
urlc, Class[] classes) throws IOException {
URLConnection.java
44
* The abstract class {@code
URLConnection
} is the superclass
134
* {@code
URLConnection
} after a request may free network resources associated with this
140
* @see java.net.
URLConnection
#connect()
141
* @see java.net.
URLConnection
#getContent()
142
* @see java.net.
URLConnection
#getContentEncoding()
143
* @see java.net.
URLConnection
#getContentLength()
144
* @see java.net.
URLConnection
#getContentType()
145
* @see java.net.
URLConnection
#getDate()
146
* @see java.net.
URLConnection
#getExpiration()
147
* @see java.net.
URLConnection
#getHeaderField(int
[
all
...]
ResponseCache.java
34
* Represents implementations of
URLConnection
caches. An instance of
51
* The settings for
URLConnection
#useCaches controls whether the
133
* @see java.net.
URLConnection
#setUseCaches(boolean)
134
* @see java.net.
URLConnection
#getUseCaches()
135
* @see java.net.
URLConnection
#setDefaultUseCaches(boolean)
136
* @see java.net.
URLConnection
#getDefaultUseCaches()
153
* @param conn - a
URLConnection
instance that is used to fetch
162
public abstract CacheRequest put(URI uri,
URLConnection
conn) throws IOException;
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
JarURLConnection.java
33
import java.net.
URLConnection
;
65
private
URLConnection
jarFileURLConnection;
284
* this <code>
URLConnection
</code>.
287
* @see java.net.
URLConnection
#allowUserInteraction
299
* @see java.net.
URLConnection
#allowUserInteraction
311
* <code>
URLConnection
</code> to the specified value.
321
* @see java.net.
URLConnection
#useCaches
328
* Returns the value of this <code>
URLConnection
</code>'s
331
* @return the value of this <code>
URLConnection
</code>'s
333
* @see java.net.
URLConnection
#useCache
[
all
...]
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
ConnectivityTestActivity.java
70
HttpURLConnection
urlConnection
= null;
72
urlConnection
= (HttpURLConnection) targetURL.openConnection();
73
urlConnection
.connect();
74
int respCode =
urlConnection
.getResponseCode();
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/test_protocol/
Handler.java
22
import java.net.
URLConnection
;
26
protected
URLConnection
openConnection(URL u) throws IOException {
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
AbstractResponseCache.java
25
import java.net.
URLConnection
;
35
@Override public CacheRequest put(URI uri,
URLConnection
connection) throws IOException {
/external/okhttp/okhttp-urlconnection/
pom.xml
12
<artifactId>okhttp-
urlconnection
</artifactId>
13
<name>OkHttp
URLConnection
</name>
/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/test/java/libcore/java/net/
OldFileNameMapTest.java
22
import java.net.
URLConnection
;
26
FileNameMap map =
URLConnection
.getFileNameMap();
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/test_protocol/
Handler.java
22
import java.net.
URLConnection
;
26
protected
URLConnection
openConnection(URL u) throws IOException {
Completed in 731 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>