/libcore/luni/src/main/java/java/net/ |
HttpRetryException.java | 29 private int responseCode; 44 responseCode = code; 61 responseCode = code; 88 public int responseCode() { 89 return responseCode;
|
HttpURLConnection.java | 292 protected int responseCode = -1; 626 responseCode = Integer.parseInt(response.substring(mark, last)); 630 return responseCode;
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
StatusLine.java | 13 private final int responseCode; 45 int responseCode; 47 responseCode = Integer.parseInt(statusLine.substring(codeStart, codeStart + 3)); 63 this.responseCode = responseCode; 82 return responseCode;
|
CacheStrategy.java | 71 int responseCode = response.code(); 72 if (responseCode != HttpURLConnection.HTTP_OK 73 && responseCode != HttpURLConnection.HTTP_NOT_AUTHORITATIVE 74 && responseCode != HttpURLConnection.HTTP_MULT_CHOICE 75 && responseCode != HttpURLConnection.HTTP_MOVED_PERM 76 && responseCode != HttpURLConnection.HTTP_GONE) {
|
HttpURLConnectionImpl.java | 211 throw new ProtocolException("No response body exists; responseCode=" + getResponseCode()); 351 int responseCode = httpEngine.getResponse().code(); 352 if (responseCode == HTTP_MULT_CHOICE 353 || responseCode == HTTP_MOVED_PERM 354 || responseCode == HTTP_MOVED_TEMP 355 || responseCode == HTTP_SEE_OTHER) { 362 throw new HttpRetryException("Cannot retry streamed HTTP body", responseCode); 421 final int responseCode = getResponseCode(); 422 switch (responseCode) { 446 if (responseCode == HTTP_TEMP_REDIRECT && !method.equals("GET") && !method.equals("HEAD")) [all...] |
/frameworks/base/obex/javax/obex/ |
ClientOperation.java | 156 if ((mOperationDone) && (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_CONTINUE)) { 161 if ((!mOperationDone) && (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)) { 169 if (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_OK) { 191 if ((mReplyHeader.responseCode == -1) 192 || (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)) { 196 return mReplyHeader.responseCode; 466 if (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_CONTINUE) { 568 mReplyHeader.responseCode = ResponseCodes.OBEX_HTTP_CONTINUE; 569 while ((more) && (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)) { 573 if (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) [all...] |
HeaderSet.java | 225 public int responseCode; 236 responseCode = -1; 647 if (responseCode == -1) { 650 return responseCode;
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldHttpRetryExceptionTest.java | 32 assertTrue("responseCode is incorrect: " + hre.responseCode(), 33 hre.responseCode() == codes[i]); 47 assertTrue("responseCode is incorrect: " + hre.responseCode(), 48 hre.responseCode() == codes[i]);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
HttpRetryExceptionTest.java | 42 assertEquals("responseCode", ref.responseCode(), tst.responseCode());
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
ExternalHttp2Example.java | 44 int responseCode = connection.getResponseCode(); 45 System.out.println(responseCode);
|
ExternalSpdyExample.java | 44 int responseCode = connection.getResponseCode(); 45 System.out.println(responseCode);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/ |
BluetoothPbapRequestPullVcardEntry.java | 70 protected void checkResponseCode(int responseCode) throws IOException { 74 if (responseCode != ResponseCodes.OBEX_HTTP_NOT_FOUND) {
|
BluetoothPbapRequest.java | 125 protected void checkResponseCode(int responseCode) throws IOException {
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
HttpRetryExceptionTest.java | 42 assertEquals("responseCode", ref.responseCode(), tst.responseCode());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppObexClientSession.java | 339 int responseCode = -1; 432 responseCode = putOperation.getResponseCode(); 434 if (responseCode == ResponseCodes.OBEX_HTTP_CONTINUE 435 || responseCode == ResponseCodes.OBEX_HTTP_OK) { 443 Log.i(TAG, "Remote reject, Response code is " + responseCode); 455 responseCode = putOperation.getResponseCode(); 456 if (V) Log.v(TAG, "Response code is " + responseCode); 457 if (responseCode != ResponseCodes.OBEX_HTTP_CONTINUE 458 && responseCode != ResponseCodes.OBEX_HTTP_OK) { 476 if (responseCode == ResponseCodes.OBEX_HTTP_FORBIDDE [all...] |
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.java | 87 int responseCode = connection.getResponseCode(); 89 System.out.printf("%03d: %s %s%n", responseCode, url, responseSource); 91 if (responseCode >= 400) { 97 if (responseCode != 200 || contentType == null) {
|
/packages/services/Telephony/src/com/android/phone/ |
HfaLogic.java | 192 private void sendFinalResponse(int responseCode, String errorCode) { 195 extraStuff.putExtra(OtaUtils.EXTRA_OTASP_RESULT_CODE, responseCode); 197 if (responseCode == OTASP_FAILURE && errorCode != null) { 203 + responseCode);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMnsObexClient.java | 269 int responseCode = -1; 276 return responseCode; 357 responseCode = putOperation.getResponseCode(); 358 if (responseCode != -1) { 359 if (V) Log.v(TAG, "Put response code " + responseCode); 360 if (responseCode != ResponseCodes.OBEX_HTTP_OK) { 361 Log.i(TAG, "Response error code is " + responseCode); 373 return responseCode;
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
CustomDispatcherTest.java | 86 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { 93 responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server".
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
CustomDispatcherTest.java | 85 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { 92 responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server".
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | [all...] |
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
RSSPullService.java | 167 int responseCode = localHttpURLConnection.getResponseCode(); 169 switch (responseCode) {
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Job.java | 179 int responseCode = response.code(); 181 switch (responseCode) { 205 if (responseCode == HTTP_TEMP_REDIRECT && !method.equals("GET") && !method.equals("HEAD")) {
|
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
OkApacheClient.java | 153 int responseCode = connection.getResponseCode(); 155 BasicHttpResponse response = new BasicHttpResponse(HTTP_1_1, responseCode, message); 158 responseCode < HttpURLConnection.HTTP_BAD_REQUEST ? connection.getInputStream()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
ImapConnection.java | 349 final String responseCode = response.getResponseCodeOrEmpty().getString(); 353 if (ImapConstants.UNAVAILABLE.equals(responseCode)) { 357 throw new ImapException(toString, status, alert, responseCode); 571 final String responseCode = response.getResponseCodeOrEmpty().getString(); 572 if (ImapConstants.UNAVAILABLE.equals(responseCode)) {
|