HomeSort by relevance Sort by last modified time
    Searched refs:HttpURLConnection (Results 26 - 50 of 81) sorted by null

12 3 4

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
Uploader.java 40 import java.net.HttpURLConnection;
120 HttpURLConnection connection = null;
124 connection = (HttpURLConnection) mUrl.openConnection();
130 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) {
  /libcore/luni/src/main/java/javax/net/ssl/
HttpsURLConnection.java 20 import java.net.HttpURLConnection;
27 * An {@link HttpURLConnection} for HTTPS (<a
106 public abstract class HttpsURLConnection extends HttpURLConnection {
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
ExcludedProxyTest.java 43 * @tests java.net.HttpURLConnection#usingProxy()
70 java.net.HttpURLConnection conn2 = (java.net.HttpURLConnection) u2
92 java.net.HttpURLConnection conn4 = (java.net.HttpURLConnection) u4
171 java.net.HttpURLConnection conn = (java.net.HttpURLConnection) u
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
ResponseHeaders.java 22 import java.net.HttpURLConnection;
344 if (responseCode != HttpURLConnection.HTTP_OK
345 && responseCode != HttpURLConnection.HTTP_NOT_AUTHORITATIVE
346 && responseCode != HttpURLConnection.HTTP_MULT_CHOICE
347 && responseCode != HttpURLConnection.HTTP_MOVED_PERM
348 && responseCode != HttpURLConnection.HTTP_GONE) {
419 headers.add("Warning", "110 HttpURLConnection \"Response is stale\"");
423 headers.add("Warning", "113 HttpURLConnection \"Heuristic expiration\"");
446 if (networkResponse.headers.getResponseCode() == HttpURLConnection.HTTP_NOT_MODIFIED) {
HttpAuthenticator.java 32 import static java.net.HttpURLConnection.HTTP_PROXY_AUTH;
33 import static java.net.HttpURLConnection.HTTP_UNAUTHORIZED;
  /external/mockwebserver/src/test/java/com/google/mockwebserver/
MockWebServerTest.java 24 import java.net.HttpURLConnection;
105 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
109 assertEquals(HttpURLConnection.HTTP_OK, connection.getResponseCode());
120 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP)
209 server.enqueue(new MockResponse()); // The jdk's HttpUrlConnection is a bastard.
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
MultipartForm.java 25 import java.net.HttpURLConnection;
72 HttpURLConnection connection = null;
75 connection = (HttpURLConnection) url.openConnection();
  /developers/build/prebuilts/gradle/NetworkConnect/NetworkConnectSample/src/main/java/com/example/android/networkconnect/
MainActivity.java 36 import java.net.HttpURLConnection;
42 * the network connection, it uses HttpURLConnection.
137 * @return An InputStream retrieved from a successful HttpURLConnection.
143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /developers/samples/android/connectivity/network/NetworkConnect/NetworkConnectSample/src/main/java/com/example/android/networkconnect/
MainActivity.java 36 import java.net.HttpURLConnection;
42 * the network connection, it uses HttpURLConnection.
137 * @return An InputStream retrieved from a successful HttpURLConnection.
143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
MainActivity.java 36 import java.net.HttpURLConnection;
42 * the network connection, it uses HttpURLConnection.
137 * @return An InputStream retrieved from a successful HttpURLConnection.
143 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
URLEncodingTest.java 23 import java.net.HttpURLConnection;
38 * Exercises HttpURLConnection to convert URL to a URI. Unlike URL#toURI,
39 * HttpURLConnection recovers from URLs with unescaped but unsupported URI
140 HttpURLConnection connection = client.open(url);
  /libcore/luni/src/main/java/java/net/
HttpURLConnection.java 33 * <li>Obtain a new {@code HttpURLConnection} by calling {@link
35 * {@code HttpURLConnection}.
49 * HttpURLConnection} should be closed by calling {@link #disconnect()}.
57 * HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
80 * {@code HttpURLConnection} will follow up to five HTTP redirects. It will
96 * HttpURLConnection} will be forced to buffer the complete request body in
101 * HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
136 * <p>By default, this implementation of {@code HttpURLConnection} requests tha
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
URLConnectionTest.java 41 import java.net.HttpURLConnection;
187 return new HttpURLConnection(u) {
240 ((HttpURLConnection) uc).disconnect();
241 ((HttpURLConnection) uc2).disconnect();
288 HttpURLConnection connection = (HttpURLConnection)
332 ((HttpURLConnection) uc).disconnect();
374 ((HttpURLConnection) uc).disconnect();
402 ((HttpURLConnection) uc).disconnect();
851 ((HttpURLConnection) uc).disconnect()
    [all...]
  /external/jmonkeyengine/engine/src/core-plugins/com/jme3/asset/plugins/
HttpZipLocator.java 41 import java.net.HttpURLConnection;
169 HttpURLConnection conn = (HttpURLConnection) zipUrl.openConnection();
187 if (conn.getResponseCode() == HttpURLConnection.HTTP_PARTIAL){
189 }else if (conn.getResponseCode() == HttpURLConnection.HTTP_OK){
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadThread.java 29 import static java.net.HttpURLConnection.HTTP_INTERNAL_ERROR;
30 import static java.net.HttpURLConnection.HTTP_MOVED_PERM;
31 import static java.net.HttpURLConnection.HTTP_MOVED_TEMP;
32 import static java.net.HttpURLConnection.HTTP_OK;
33 import static java.net.HttpURLConnection.HTTP_PARTIAL;
34 import static java.net.HttpURLConnection.HTTP_SEE_OTHER;
35 import static java.net.HttpURLConnection.HTTP_UNAVAILABLE;
68 import java.net.HttpURLConnection;
310 HttpURLConnection conn = null;
313 conn = (HttpURLConnection) state.mUrl.openConnection()
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
HttpsURLConnectionTest.java 28 import java.net.HttpURLConnection;
714 HttpURLConnection connection = (HttpURLConnection) url
754 HttpURLConnection connection = (HttpURLConnection) url
    [all...]
  /external/okhttp/src/main/java/com/squareup/okhttp/
HttpResponseCache.java 42 import java.net.HttpURLConnection;
161 CacheResponse conditionalCacheHit, HttpURLConnection connection) throws IOException {
227 if (!(urlConnection instanceof HttpURLConnection)) {
231 HttpURLConnection httpConnection = (HttpURLConnection) urlConnection;
289 private void update(CacheResponse conditionalCacheHit, HttpURLConnection httpConnection)
547 public Entry(URI uri, RawHeaders varyHeaders, HttpURLConnection httpConnection)
578 private SSLSocket getSslSocket(HttpURLConnection httpConnection) {
OkHttpClient.java 26 import java.net.HttpURLConnection;
260 * the built-in {@code HttpURLConnection}'s default.
325 // Create the HttpURLConnection immediately so the enqueued job gets the current settings of
339 public HttpURLConnection open(URL url) {
343 HttpURLConnection open(URL url, Proxy proxy) {
  /external/smack/src/org/jivesoftware/smack/proxy/
HTTPProxySocketFactory.java 24 import java.net.HttpURLConnection;
161 if (code != HttpURLConnection.HTTP_OK)
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
ThreadingTest.java 19 import static java.net.HttpURLConnection.HTTP_OK;
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
NetworkUtilities.java 50 import java.net.HttpURLConnection;
237 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  /development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
ImageFetcher.java 37 import java.net.HttpURLConnection;
268 HttpURLConnection urlConnection = null;
274 urlConnection = (HttpURLConnection) url.openConnection();
  /development/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 41 import java.net.HttpURLConnection;
267 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 41 import java.net.HttpURLConnection;
267 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  /developers/build/prebuilts/gradle/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/com/example/android/basicsyncadapter/
SyncAdapter.java 42 import java.net.HttpURLConnection;
297 HttpURLConnection conn = (HttpURLConnection) url.openConnection();

Completed in 763 milliseconds

12 3 4