Home
last modified time | relevance | path

Searched refs:getResponseCode (Results 1 – 25 of 56) sorted by relevance

123

/external/downloader/src/main/java/com/google/android/downloader/
DPlatformUrlEngine.java142 int httpResponseCode = getResponseCode(urlConnection); in send()
186 public int getResponseCode() { in getResponseCode() method in PlatformUrlResponse
259 private static int getResponseCode(URLConnection urlConnection) throws IOException {
263 int httpResponseCode = httpUrlConnection.getResponseCode();
DUrlResponse.java36 int getResponseCode(); in getResponseCode() method
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/
DNetworkFetcher.java96 …if (connection.getErrorStream() != null || connection.getResponseCode() != HttpURLConnection.HTTP_… in fetchFromNetworkInternal()
98 …ntException("Unable to fetch " + url + ". Failed with " + connection.getResponseCode() + "\n" + er… in fetchFromNetworkInternal()
112 int responseCode = connection.getResponseCode(); in getErrorFromConnection()
/external/volley/src/test/java/com/android/volley/toolbox/
DHurlStackTest.java226 when(mMockConnection.getResponseCode()).thenThrow(new SocketTimeoutException()); in executeRequestClosesConnection_connectionError()
238 when(mMockConnection.getResponseCode()).thenReturn(-1); in executeRequestClosesConnection_invalidResponseCode()
250 when(mMockConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_NO_CONTENT); in executeRequestClosesConnection_noResponseBody()
257 when(mMockConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK); in executeRequestClosesConnection_hasResponseBody()
288 when(mMockConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK); in interceptResponseStream()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DCustomDispatcherTest.java51 conn.getResponseCode(); // Force the connection to hit the "server". in testSimpleDispatch()
93 … responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DExcludedProxyTest.java78 conn2.getResponseCode(); in test_usingProxy()
101 conn4.getResponseCode(); in test_usingProxy()
180 conn.getResponseCode(); in test_openConnectionLjava_net_Proxy()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DCustomDispatcherTest.java51 conn.getResponseCode(); // Force the connection to hit the "server". in simpleDispatch()
93 responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DServiceConnectionSE.java104 public int getResponseCode() throws IOException { in getResponseCode() method in ServiceConnectionSE
105 return connection.getResponseCode(); in getResponseCode()
DHttpsServiceConnectionSE.java113 public int getResponseCode() throws IOException { in getResponseCode() method in HttpsServiceConnectionSE
114 return connection.getResponseCode(); in getResponseCode()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java168 connection.getResponseCode(); in requestHeaders()
208 assertEquals(200, connection.getResponseCode()); in responseHeaders()
239 connection.getResponseCode(); in serverSendsInvalidResponseHeaders()
250 connection.getResponseCode(); in serverSendsInvalidCodeTooLarge()
261 connection.getResponseCode(); in serverSendsInvalidCodeNotANumber()
272 connection.getResponseCode(); in serverSendsUnnecessaryWhitespace()
492 assertEquals(200, conn.getResponseCode()); in doUpload()
509 assertEquals(200, conn.getResponseCode()); in getResponseCodeNoResponseBody()
630 connection.getResponseCode(); in connectViaHttpsWithSSLFallbackFailuresRecorded()
756 connection.getResponseCode(); in testConnectViaSocketFactory()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverHttp2Test.java46 assertEquals(200, connection.getResponseCode()); in serverSendsPushPromise_GET()
70 assertEquals(200, connection.getResponseCode()); in serverSendsPushPromise_HEAD()
/external/downloader/src/test/java/com/google/android/downloader/
DDataUrlEngineTest.java73 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest()
101 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest_writeError()
DMockWebServerUrlEngineTestHelper.java95 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest_normalResponse_succeeds()
139 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest_responseThrottled_succeeds()
187 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest_largeResponse_succeeds()
278 assertThat(response.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in executeRequest_writeError_failsInternalError()
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
DServiceConnection.java63 public int getResponseCode() throws IOException; in getResponseCode() method
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java200 assertEquals(responseCode, connection.getResponseCode()); in assertCached()
251 assertEquals(200, urlConnection.getResponseCode()); in testResponseCaching()
1163 assertEquals(HttpURLConnection.HTTP_NOT_MODIFIED, connection.getResponseCode()); in assertClientSuppliedCondition()
1210 assertEquals(HttpURLConnection.HTTP_NOT_MODIFIED, connection.getResponseCode()); in clientSuppliedConditionWithoutCachedResult()
1609 assertEquals(HttpURLConnection.HTTP_OK, connection2.getResponseCode()); in conditionalHitDoesNotUpdateCache()
1722 assertEquals(HttpURLConnection.HTTP_OK, connection1.getResponseCode()); in assertConditionallyCached()
1726 assertEquals(HttpURLConnection.HTTP_OK, connection2.getResponseCode()); in assertConditionallyCached()
1732 assertEquals(HttpURLConnection.HTTP_OK, connection3.getResponseCode()); in assertConditionallyCached()
1736 assertEquals(HttpURLConnection.HTTP_OK, connection4.getResponseCode()); in assertConditionallyCached()
1810 InputStream in = httpConnection.getResponseCode() < HttpURLConnection.HTTP_BAD_REQUEST in readAscii()
[all …]
/external/opencensus-java/contrib/monitored_resource_util/src/main/java/io/opencensus/contrib/monitoredresource/util/
DGcpMetadataConfig.java74 if (connection.getResponseCode() == 200) { in getAttribute()
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/
DDelegatingHttpsURLConnection.java105 @Override public int getResponseCode() throws IOException { in getResponseCode() method in DelegatingHttpsURLConnection
106 return delegate.getResponseCode(); in getResponseCode()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DDelegatingHttpsURLConnection.java104 @Override public int getResponseCode() throws IOException { in getResponseCode() method in DelegatingHttpsURLConnection
105 return delegate.getResponseCode(); in getResponseCode()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java59 conn.getResponseCode(); in originServerSends407()
190 assertEquals(expected, connection.getResponseCode()); in assertResponseCode()
DUrlConnectionCacheTest.java183 assertEquals(responseCode, conn.getResponseCode()); in assertCached()
237 assertEquals(200, urlConnection.getResponseCode()); in testResponseCaching()
1033 assertEquals(HttpURLConnection.HTTP_NOT_MODIFIED, connection.getResponseCode()); in assertClientSuppliedCondition()
1097 assertEquals(HttpURLConnection.HTTP_NOT_MODIFIED, connection.getResponseCode()); in clientSuppliedConditionWithoutCachedResult()
1527 assertEquals(HttpURLConnection.HTTP_OK, connection2.getResponseCode()); in conditionalHitUpdatesCache()
1705 assertEquals(HttpURLConnection.HTTP_OK, connection1.getResponseCode()); in assertConditionallyCached()
1709 assertEquals(HttpURLConnection.HTTP_OK, connection2.getResponseCode()); in assertConditionallyCached()
1715 assertEquals(HttpURLConnection.HTTP_OK, connection3.getResponseCode()); in assertConditionallyCached()
1719 assertEquals(HttpURLConnection.HTTP_OK, connection4.getResponseCode()); in assertConditionallyCached()
1757 InputStream in = httpConnection.getResponseCode() < HttpURLConnection.HTTP_BAD_REQUEST in readAscii()
[all …]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DLogUploader.java62 final int responseCode = urlConnection.getResponseCode(); in loadInBackground()
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandler.java202 if (connection.getResponseCode() != 200) { in export()
206 Status.UNKNOWN.withDescription("Response " + connection.getResponseCode())); in export()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DExternalHttp2Example.java48 int responseCode = connection.getResponseCode(); in main()
DExternalSpdyExample.java48 int responseCode = connection.getResponseCode(); in main()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultHttpDataSource.java243 public int getResponseCode() { in getResponseCode() method in DefaultHttpDataSource
288 responseCode = connection.getResponseCode(); in open()
464 int responseCode = connection.getResponseCode(); in makeConnection()

123