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

1 2 3 4 5 6 7 8 91011>>

  /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/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();
  /frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
ChannelLogoUtils.java 37 import java.net.URLConnection;
80 URLConnection urlConnection = null;
91 urlConnection = getUrlConnection(logoUri.toString());
92 inputStream = urlConnection.getInputStream();
105 if (urlConnection instanceof HttpURLConnection) {
106 ((HttpURLConnection) urlConnection).disconnect();
162 private static URLConnection getUrlConnection(String uriString) throws IOException {
163 URLConnection urlConnection = new URL(uriString).openConnection()
    [all...]
PreviewChannelHelper.java 41 import java.net.URLConnection;
82 * @param urlConnectionTimeoutMillis see {@link URLConnection#setConnectTimeout(int)}
83 * @param urlReadTimeoutMillis see {@link URLConnection#setReadTimeout(int)}
326 URLConnection urlConnection = null;
331 urlConnection = new URL(logoUri.toString()).openConnection();
332 urlConnection.setConnectTimeout(mUrlConnectionTimeoutMillis);
333 urlConnection.setReadTimeout(mUrlReadTimeoutMillis);
334 inputStream = urlConnection.getInputStream();
344 if (urlConnection instanceof HttpURLConnection)
    [all...]
  /cts/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/
NetstatsDeviceTest.java 56 final HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();
59 final int status = urlConnection.getResponseCode();
65 urlConnection.disconnect();
  /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...]
  /packages/apps/TV/src/com/android/tv/util/images/
BitmapUtils.java 39 import java.net.URLConnection;
100 URLConnection urlConnection = null;
108 // If the URLConnection is HttpURLConnection, disconnect() should be called
110 urlConnection = getUrlConnection(uriString);
111 inputStream = urlConnection.getInputStream();
128 close(inputStream, urlConnection);
132 urlConnection = getUrlConnection(uriString);
133 inputStream = urlConnection.getInputStream();
156 close(inputStream, urlConnection);
    [all...]
  /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 
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
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"))) {
OkHttp.java 67 HttpURLConnection urlConnection = new OkUrlFactory(client).open(url.url());
68 long total = readAllAndClose(urlConnection.getInputStream());
  /packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
ConnectivityTestActivity.java 84 HttpURLConnection urlConnection = null;
87 urlConnection = (HttpURLConnection) targetURL.openConnection();
88 urlConnection.connect();
89 int respCode = urlConnection.getResponseCode();
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
OsuServerConnection.java 113 HttpsURLConnection urlConnection;
115 urlConnection = (HttpsURLConnection) mNetwork.openConnection(mUrl);
116 urlConnection.setSSLSocketFactory(mSocketFactory);
117 urlConnection.connect();
123 mUrlConnection = urlConnection;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
StreamingVideoActivity.java 238 HttpURLConnection urlConnection = null;
241 urlConnection = (HttpURLConnection) url.openConnection();
242 if (urlConnection.getResponseCode() != 200) {
244 + urlConnection.getResponseCode());
247 new InputStreamReader(urlConnection.getInputStream()));
253 if (urlConnection != null) {
254 urlConnection.disconnect();
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
BitmapHelper.java 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
70 is = new BufferedInputStream(urlConnection.getInputStream());
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
BitmapHelper.java 71 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
72 is = new BufferedInputStream(urlConnection.getInputStream());
  /packages/apps/Music/src/com/android/music/utils/
BitmapHelper.java 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
70 is = new BufferedInputStream(urlConnection.getInputStream());
  /frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
CaptivePortalLoginActivity.java 252 HttpURLConnection urlConnection = null;
256 urlConnection = (HttpURLConnection) network.openConnection(
258 urlConnection.setInstanceFollowRedirects(false);
259 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS);
260 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS);
261 urlConnection.setUseCaches(false);
262 urlConnection.getInputStream();
263 httpResponseCode = urlConnection.getResponseCode();
267 if (urlConnection != null) urlConnection.disconnect()
    [all...]
  /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...]
  /frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
CaptivePortalLoginActivity.java 343 HttpURLConnection urlConnection = null;
347 urlConnection = (HttpURLConnection) network.openConnection(mUrl);
348 urlConnection.setInstanceFollowRedirects(false);
349 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS);
350 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS);
351 urlConnection.setUseCaches(false);
353 urlConnection.setRequestProperty("User-Agent", mUserAgent);
356 String requestHeader = urlConnection.getRequestProperties().toString();
358 urlConnection.getInputStream();
359 httpResponseCode = urlConnection.getResponseCode()
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
NetworkLoggingTest.java 264 HttpURLConnection urlConnection = null;
267 urlConnection = (HttpURLConnection) url.openConnection();
268 urlConnection.setConnectTimeout(2000);
269 urlConnection.setReadTimeout(2000);
270 urlConnection.getResponseCode();
274 if (urlConnection != null) {
275 urlConnection.disconnect();
  /developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
SecurityHelper.java 75 HttpURLConnection urlConnection = null;
79 urlConnection = (HttpURLConnection) url.openConnection();
81 new InputStreamReader(urlConnection.getInputStream()))) {
98 if (urlConnection != null) {
99 urlConnection.disconnect();
  /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();
  /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();

Completed in 1643 milliseconds

1 2 3 4 5 6 7 8 91011>>