Home
last modified time | relevance | path

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

12

/external/volley/src/test/java/com/android/volley/toolbox/
DHurlStackTest.java200 when(mMockConnection.getResponseCode()).thenThrow(new SocketTimeoutException()); in executeRequestClosesConnection_connectionError()
212 when(mMockConnection.getResponseCode()).thenReturn(-1); in executeRequestClosesConnection_invalidResponseCode()
224 when(mMockConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_NO_CONTENT); in executeRequestClosesConnection_noResponseBody()
231 when(mMockConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK); in executeRequestClosesConnection_hasResponseBody()
/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/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/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()
487 assertEquals(200, conn.getResponseCode()); in doUpload()
504 assertEquals(200, conn.getResponseCode()); in getResponseCodeNoResponseBody()
625 connection.getResponseCode(); in connectViaHttpsWithSSLFallbackFailuresRecorded()
747 connection.getResponseCode(); in testConnectViaSocketFactory()
[all …]
/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/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/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/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/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
DServiceConnection.java63 public int getResponseCode() throws IOException; in getResponseCode() method
/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/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/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/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/opencensus-java/contrib/monitored_resource_util/src/main/java/io/opencensus/contrib/monitoredresource/util/
DGcpMetadataConfig.java74 if (connection.getResponseCode() == 200) { in getAttribute()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DLogUploader.java61 final int responseCode = urlConnection.getResponseCode(); in loadInBackground()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DExternalSpdyExample.java48 int responseCode = connection.getResponseCode(); in main()
DExternalHttp2Example.java48 int responseCode = connection.getResponseCode(); in main()
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DHttpUrlFetcher.java68 final int statusCode = urlConnection.getResponseCode(); in loadDataWithRedirects()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
DAsyncHttpURLConnection.java97 int responseCode = connection.getResponseCode(); in sendHttpMessage()
/external/replicaisland/src/com/replica/replicaisland/
DEventReporter.java105 final int response = connection.getResponseCode(); in recordEvent()
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java61 return ((HttpURLConnection) connection).getResponseCode(); in getStatusCode()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/internal/huc/
DURLEncodingTest.java167 connection.getResponseCode(); in backdoorUrlToUri()
/external/smali/smalidea/src/main/java/org/jf/smalidea/errorReporting/
DGithubFeedbackTask.java114 int responseCode = httpURLConnection.getResponseCode(); in sendFeedback()

12