Home
last modified time | relevance | path

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

123

/external/obex/src/com/android/obex/
DClientOperation.java176 if ((mOperationDone) && (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_CONTINUE)) { in abort()
181 if ((!mOperationDone) && (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)) { in abort()
189 if (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_OK) { in abort()
210 if ((mReplyHeader.responseCode == -1) in getResponseCode()
211 || (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)) { in getResponseCode()
215 return mReplyHeader.responseCode; in getResponseCode()
390 if (mPrivateInput == null || mReplyHeader.responseCode == -1) { in validateConnection()
456 if (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_CONTINUE) { in sendRequest()
599 mReplyHeader.responseCode = ResponseCodes.OBEX_HTTP_CONTINUE; in startProcessing()
600 while ((more) && (mReplyHeader.responseCode == in startProcessing()
[all …]
DHeaderSet.java259 public int responseCode; field in HeaderSet
269 responseCode = -1; in HeaderSet()
723 if (responseCode == -1) { in getResponseCode()
726 return responseCode; in getResponseCode()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DResponseCodeProcessing.c47 TPM_RC responseCode, in RcSafeAddToResult() argument
51 if((responseCode & RC_FMT1) && !(responseCode & 0xf40)) in RcSafeAddToResult()
52 return responseCode + modifier; in RcSafeAddToResult()
54 return responseCode; in RcSafeAddToResult()
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/platform/
DAdminPPI.c61 TPM_RC responseCode; member
303 PPIResponse.header.responseCode = TPM_RC_COMMAND_SIZE; in _admin__PPICommand()
330 PPIResponse.header.responseCode = TPM_RC_BAD_TAG; in _admin__PPICommand()
338 PPIResponse.header.responseCode = TPM_RC_COMMAND_SIZE; in _admin__PPICommand()
343 PPIResponse.header.responseCode = TPM_RC_COMMAND_SIZE; in _admin__PPICommand()
376 PPIResponse.header.responseCode = TPM_RC_COMMAND_SIZE; in _admin__PPICommand()
387 PPIResponse.header.responseCode = TPM_RC_FAILURE; in _admin__PPICommand()
401 PPIResponse.header.responseCode = TPM_RC_SUCCESS; in _admin__PPICommand()
404 if (PPIResponse.header.responseCode != TPM_RC_SUCCESS) { in _admin__PPICommand()
416 … PPIResponse.header.responseCode = BYTE_ARRAY_TO_UINT32((BYTE *)&PPIResponse.header.responseCode); in _admin__PPICommand()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultHttpDataSource.java226 private int responseCode; field in DefaultHttpDataSource
319 return connection == null || responseCode <= 0 ? -1 : responseCode; in getResponseCode()
369 responseCode = connection.getResponseCode(); in open()
378 if (responseCode < 200 || responseCode > 299) { in open()
380 if (responseCode == 416) { in open()
401 responseCode == 416 in open()
405 responseCode, responseMessage, cause, headers, dataSpec, errorResponseBody); in open()
418 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
550 int responseCode = connection.getResponseCode(); in makeConnection() local
553 && (responseCode == HttpURLConnection.HTTP_MULT_CHOICE in makeConnection()
[all …]
DHttpDataSource.java398 public final int responseCode; field in HttpDataSource.InvalidResponseCodeException
415 int responseCode, Map<String, List<String>> headerFields, DataSpec dataSpec) { in InvalidResponseCodeException() argument
417 responseCode, in InvalidResponseCodeException()
431 int responseCode, in InvalidResponseCodeException() argument
436 responseCode, in InvalidResponseCodeException()
445 int responseCode, in InvalidResponseCodeException() argument
452 "Response code: " + responseCode, in InvalidResponseCodeException()
457 this.responseCode = responseCode; in InvalidResponseCodeException()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultHttpDataSource.java226 private int responseCode; field in DefaultHttpDataSource
311 return connection == null || responseCode <= 0 ? -1 : responseCode; in getResponseCode()
361 responseCode = connection.getResponseCode(); in open()
370 if (responseCode < 200 || responseCode > 299) { in open()
372 if (responseCode == 416) { in open()
393 responseCode == 416 in open()
397 responseCode, responseMessage, cause, headers, dataSpec, errorResponseBody); in open()
410 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
542 int responseCode = connection.getResponseCode(); in makeConnection() local
545 && (responseCode == HttpURLConnection.HTTP_MULT_CHOICE in makeConnection()
[all …]
DHttpDataSource.java394 public final int responseCode; field in HttpDataSource.InvalidResponseCodeException
411 int responseCode, Map<String, List<String>> headerFields, DataSpec dataSpec) { in InvalidResponseCodeException() argument
413 responseCode, in InvalidResponseCodeException()
427 int responseCode, in InvalidResponseCodeException() argument
432 responseCode, in InvalidResponseCodeException()
441 int responseCode, in InvalidResponseCodeException() argument
448 "Response code: " + responseCode, in InvalidResponseCodeException()
453 this.responseCode = responseCode; in InvalidResponseCodeException()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultLoadErrorHandlingPolicy.java142 return invalidResponseCodeException.responseCode == 403 // HTTP 403 Forbidden. in isEligibleForFallback()
143 || invalidResponseCodeException.responseCode == 404 // HTTP 404 Not Found. in isEligibleForFallback()
144 || invalidResponseCodeException.responseCode == 410 // HTTP 410 Gone. in isEligibleForFallback()
145 || invalidResponseCodeException.responseCode == 416 // HTTP 416 Range Not Satisfiable. in isEligibleForFallback()
146 || invalidResponseCodeException.responseCode == 500 // HTTP 500 Internal Server Error. in isEligibleForFallback()
147 || invalidResponseCodeException.responseCode == 503; // HTTP 503 Service Unavailable. in isEligibleForFallback()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultLoadErrorHandlingPolicy.java144 return invalidResponseCodeException.responseCode == 403 // HTTP 403 Forbidden. in isEligibleForFallback()
145 || invalidResponseCodeException.responseCode == 404 // HTTP 404 Not Found. in isEligibleForFallback()
146 || invalidResponseCodeException.responseCode == 410 // HTTP 410 Gone. in isEligibleForFallback()
147 || invalidResponseCodeException.responseCode == 416 // HTTP 416 Range Not Satisfiable. in isEligibleForFallback()
148 || invalidResponseCodeException.responseCode == 500 // HTTP 500 Internal Server Error. in isEligibleForFallback()
149 || invalidResponseCodeException.responseCode == 503; // HTTP 503 Service Unavailable. in isEligibleForFallback()
/external/volley/core/src/main/java/com/android/volley/toolbox/
DHurlStack.java91 int responseCode = connection.getResponseCode(); in executeRequest() local
92 if (responseCode == -1) { in executeRequest()
98 if (!hasResponseBody(request.getMethod(), responseCode)) { in executeRequest()
99 return new HttpResponse(responseCode, convertHeaders(connection.getHeaderFields())); in executeRequest()
106 responseCode, in executeRequest()
140 private static boolean hasResponseBody(int requestMethod, int responseCode) { in hasResponseBody() argument
142 && !(HTTP_CONTINUE <= responseCode && responseCode < HttpURLConnection.HTTP_OK) in hasResponseBody()
143 && responseCode != HttpURLConnection.HTTP_NO_CONTENT in hasResponseBody()
144 && responseCode != HttpURLConnection.HTTP_NOT_MODIFIED; in hasResponseBody()
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresenceSubscriber.java304 private int translateResponseCode(int responseCode, String reasonPhrase) { in translateResponseCode() argument
306 logger.debug("translateResponseCode getSipResponseCode=" +responseCode); in translateResponseCode()
309 if(responseCode < 100 || responseCode > 699){ in translateResponseCode()
310 logger.debug("internal error code sipCode=" + responseCode); in translateResponseCode()
315 switch(responseCode){ in translateResponseCode()
382 public void onSipResponse(int requestId, int responseCode, String reasonPhrase) { in onSipResponse() argument
388 if(isInConfigList(responseCode, reasonPhrase, in onSipResponse()
390 logger.print("volte provision sipCode=" + responseCode + " phrase=" + reasonPhrase); in onSipResponse()
396 } else if(isInConfigList(responseCode, reasonPhrase, in onSipResponse()
398 logger.print("rcs proRcsPresence.vision sipCode=" + responseCode + " phrase=" in onSipResponse()
[all …]
DPresencePublication.java1059 public void onSipResponse(int requestId, int responseCode, String reasonPhrase) { in onSipResponse() argument
1060 logger.print( "Publish response code = " + responseCode in onSipResponse()
1068 if (isInConfigList(responseCode, reasonPhrase, in onSipResponse()
1070 logger.print("volte provision error. sipCode=" + responseCode + " phrase=" + in onSipResponse()
1080 if (isInConfigList(responseCode, reasonPhrase, mConfigRcsProvisionErrorOnPublishResponse)) { in onSipResponse()
1081 logger.print("rcs provision error.sipCode=" + responseCode + " phrase=" + reasonPhrase); in onSipResponse()
1088 switch (responseCode) { in onSipResponse()
1104 if ((responseCode < 100) || (responseCode > 699)) { in onSipResponse()
1105 logger.debug("Ignore internal response code, sipCode=" + responseCode); in onSipResponse()
1110 if(responseCode == 888) { in onSipResponse()
[all …]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DLogUploader.java62 final int responseCode = urlConnection.getResponseCode(); in loadInBackground() local
63 if (responseCode / 100 == 2) { in loadInBackground()
66 logger.log("Log upload may have failed. Server return status code " + responseCode); in loadInBackground()
68 return responseCode; in loadInBackground()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSource.java572 int responseCode = responseInfo.getHttpStatusCode(); in open() local
574 if (responseCode < 200 || responseCode > 299) { in open()
575 if (responseCode == 416) { in open()
594 responseCode == 416 in open()
598 responseCode, in open()
618 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
1059 int responseCode = info.getHttpStatusCode(); in onRedirectReceived() local
1062 if (responseCode == 307 || responseCode == 308) { in onRedirectReceived()
1065 responseCode, in onRedirectReceived()
1082 && responseCode == 302; in onRedirectReceived()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSource.java692 int responseCode = responseInfo.getHttpStatusCode(); in open() local
694 if (responseCode < 200 || responseCode > 299) { in open()
695 if (responseCode == 416) { in open()
714 responseCode == 416 in open()
718 responseCode, in open()
738 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
1179 int responseCode = info.getHttpStatusCode(); in onRedirectReceived() local
1182 if (responseCode == 307 || responseCode == 308) { in onRedirectReceived()
1185 responseCode, in onRedirectReceived()
1202 && responseCode == 302; in onRedirectReceived()
/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/
DExternalHttp2Example.java48 int responseCode = connection.getResponseCode(); in main() local
49 System.out.println(responseCode); in main()
DExternalSpdyExample.java48 int responseCode = connection.getResponseCode(); in main() local
49 System.out.println(responseCode); in main()
/external/openthread/src/cli/
Dcli_coap.cpp620 otCoapCode responseCode = OT_COAP_CODE_EMPTY; in HandleRequest() local
688 responseCode = OT_COAP_CODE_SERVICE_UNAVAILABLE; in HandleRequest()
694 responseCode = OT_COAP_CODE_CONTENT; in HandleRequest()
732 responseCode = OT_COAP_CODE_VALID; in HandleRequest()
739 …= otCoapMessageInitResponse(responseMessage, aMessage, OT_COAP_TYPE_ACKNOWLEDGMENT, responseCode)); in HandleRequest()
741 if (responseCode == OT_COAP_CODE_CONTENT) in HandleRequest()
795 else if (responseCode >= OT_COAP_CODE_RESPONSE_MIN) in HandleRequest()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSource.java294 int responseCode = response.code(); in open() local
298 if (responseCode == 416) { in open()
318 responseCode == 416 in open()
322 responseCode, response.message(), cause, headers, dataSpec, errorResponseBody); in open()
336 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSource.java288 int responseCode = response.code(); in open() local
292 if (responseCode == 416) { in open()
312 responseCode == 416 in open()
316 responseCode, response.message(), cause, headers, dataSpec, errorResponseBody); in open()
330 long bytesToSkip = responseCode == 200 && dataSpec.position != 0 ? dataSpec.position : 0; in open()
/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/examples/androidapp/src/org/appspot/apprtc/util/
DAsyncHttpURLConnection.java91 int responseCode = connection.getResponseCode(); in sendHttpMessage() local
92 if (responseCode != 200) { in sendHttpMessage()

123