Home
last modified time | relevance | path

Searched refs:responseCode (Results 1 – 21 of 21) sorted by relevance

/external/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java96 int responseCode = connection.getResponseCode(); in executeRequest() local
97 if (responseCode == -1) { in executeRequest()
103 if (!hasResponseBody(request.getMethod(), responseCode)) { in executeRequest()
104 return new HttpResponse(responseCode, convertHeaders(connection.getHeaderFields())); in executeRequest()
111 responseCode, in executeRequest()
145 private static boolean hasResponseBody(int requestMethod, int responseCode) { in hasResponseBody() argument
147 && !(HTTP_CONTINUE <= responseCode && responseCode < HttpURLConnection.HTTP_OK) in hasResponseBody()
148 && responseCode != HttpURLConnection.HTTP_NO_CONTENT in hasResponseBody()
149 && responseCode != HttpURLConnection.HTTP_NOT_MODIFIED; in hasResponseBody()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DLogUploader.java61 final int responseCode = urlConnection.getResponseCode(); in loadInBackground() local
62 if (responseCode / 100 == 2) { in loadInBackground()
65 logger.log("Log upload may have failed. Server return status code " + responseCode); in loadInBackground()
67 return responseCode; in loadInBackground()
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
DCrawler.java96 int responseCode = response.code(); in fetch() local
98 System.out.printf("%03d: %s %s%n", responseCode, url, responseSource); in fetch()
101 if (responseCode != 200 || contentType == null) { in fetch()
/external/smali/smalidea/src/main/java/org/jf/smalidea/errorReporting/
DGithubFeedbackTask.java114 int responseCode = httpURLConnection.getResponseCode(); in sendFeedback() local
115 if (responseCode != 201) { in sendFeedback()
116 throw new RuntimeException("Expected HTTP_CREATED (201), obtained " + responseCode); in sendFeedback()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DExternalSpdyExample.java48 int responseCode = connection.getResponseCode(); in main() local
49 System.out.println(responseCode); in main()
DExternalHttp2Example.java48 int responseCode = connection.getResponseCode(); in main() local
49 System.out.println(responseCode); in main()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DCustomDispatcherTest.java86 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { in buildRequestThread() argument
93responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
DAsyncHttpURLConnection.java97 int responseCode = connection.getResponseCode(); in sendHttpMessage() local
98 if (responseCode != 200) { in sendHttpMessage()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DCustomDispatcherTest.java86 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { in buildRequestThread() argument
93 responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttpEngine.java505 int responseCode = response.code(); in hasBody() local
506 if ((responseCode < HTTP_CONTINUE || responseCode >= 200) in hasBody()
507 && responseCode != HTTP_NO_CONTENT in hasBody()
508 && responseCode != HTTP_NOT_MODIFIED) { in hasBody()
909 int responseCode = userResponse.code(); in followUpRequest() local
912 switch (responseCode) { in followUpRequest()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java494 int responseCode = response.code(); in hasBody() local
495 if ((responseCode < HTTP_CONTINUE || responseCode >= 200) in hasBody()
496 && responseCode != HTTP_NO_CONTENT in hasBody()
497 && responseCode != HTTP_NOT_MODIFIED) { in hasBody()
896 int responseCode = userResponse.code(); in followUpRequest() local
899 switch (responseCode) { in followUpRequest()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DRoomParametersFetcher.java178 int responseCode = connection.getResponseCode(); in requestTurnServers() local
179 if (responseCode != 200) { in requestTurnServers()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java156 private void assertCached(boolean shouldPut, int responseCode) throws Exception { in assertCached() argument
161 .setResponseCode(responseCode) in assertCached()
164 if (responseCode == HttpURLConnection.HTTP_PROXY_AUTH) { in assertCached()
166 } else if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) { in assertCached()
168 } else if (responseCode == HttpURLConnection.HTTP_NO_CONTENT in assertCached()
169 || responseCode == HttpURLConnection.HTTP_RESET) { in assertCached()
179 assertEquals(responseCode, response.code()); in assertCached()
186 assertNotNull(Integer.toString(responseCode), cached); in assertCached()
189 assertNull(Integer.toString(responseCode), cached); in assertCached()
433 int responseCode, String headerName, String headerValue) throws Exception { in temporaryRedirectCachedWithCachingHeader() argument
[all …]
DURLConnectionTest.java1519 int responseCode = proxy ? 407 : 401;
1523 .setResponseCode(responseCode)
1534 assertEquals(responseCode, connection.getResponseCode());
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java182 private void assertCached(boolean shouldPut, int responseCode) throws Exception { in assertCached() argument
187 .setResponseCode(responseCode) in assertCached()
190 if (responseCode == HttpURLConnection.HTTP_PROXY_AUTH) { in assertCached()
192 } else if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) { in assertCached()
200 assertEquals(responseCode, connection.getResponseCode()); in assertCached()
207 assertNotNull(Integer.toString(responseCode), cached); in assertCached()
209 assertNull(Integer.toString(responseCode), cached); in assertCached()
424 int responseCode, String headerName, String headerValue) throws Exception { in temporaryRedirectCachedWithCachingHeader() argument
426 .setResponseCode(responseCode) in temporaryRedirectCachedWithCachingHeader()
442 private void temporaryRedirectNotCachedWithoutCachingHeader(int responseCode) throws Exception { in temporaryRedirectNotCachedWithoutCachingHeader() argument
[all …]
/external/clang/test/CodeGenObjC/
Ddebug-info-block-line.m51 - (void)sendResponseCode:(TResponseCode)responseCode dataFollows:(BOOL)flag
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java165 private void assertCached(boolean shouldPut, int responseCode) throws Exception { in assertCached() argument
170 .setResponseCode(responseCode) in assertCached()
173 if (responseCode == HttpURLConnection.HTTP_PROXY_AUTH) { in assertCached()
175 } else if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) { in assertCached()
183 assertEquals(responseCode, conn.getResponseCode()); in assertCached()
190 assertNotNull(Integer.toString(responseCode), cached); in assertCached()
193 assertNull(Integer.toString(responseCode), cached); in assertCached()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DSmsFacade.java600 int responseCode = sendConf.getResponseStatus(); in onReceive() local
601 String responseStatus = getMmsResponseStatus(responseCode); in onReceive()
603 if (responseCode == PduHeaders.RESPONSE_STATUS_OK) { in onReceive()
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/
DSRWebSocket.m442 NSInteger responseCode = CFHTTPMessageGetResponseStatusCode(_receivedHTTPHeaders);
444 if (responseCode >= 400) {
445 SRFastLog(@"Request failed with response code %d", responseCode);
446 …eceived bad response code from server %ld", (long)responseCode], SRHTTPResponseErrorKey:@(response…
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/
DHttpURLConnectionImpl.java440 throw new HttpRetryException("Cannot retry streamed HTTP body", responseCode); in getResponse()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DHttpURLConnectionImpl.java436 throw new HttpRetryException("Cannot retry streamed HTTP body", responseCode); in getResponse()