HomeSort by relevance Sort by last modified time
    Searched refs:statusCode (Results 26 - 50 of 135) sorted by null

12 3 4 5 6

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
TestHttpResponse.java 24 private int statusCode;
33 this.statusCode = 200;
37 public TestHttpResponse(int statusCode, String responseBody) {
38 this.statusCode = statusCode;
42 public TestHttpResponse(int statusCode, String responseBody, Header... headers) {
43 this(statusCode, responseBody.getBytes(), headers);
46 public TestHttpResponse(int statusCode, byte[] responseBody, Header... headers) {
47 this.statusCode = statusCode;
    [all...]
  /frameworks/volley/src/com/android/volley/toolbox/
BasicNetwork.java 95 int statusCode = statusLine.getStatusCode();
99 if (statusCode == HttpStatus.SC_NOT_MODIFIED) {
109 if (statusCode != HttpStatus.SC_OK && statusCode != HttpStatus.SC_NO_CONTENT) {
112 return new NetworkResponse(statusCode, responseContents, responseHeaders, false);
120 int statusCode = 0;
123 statusCode = httpResponse.getStatusLine().getStatusCode();
127 VolleyLog.e("Unexpected response code %d for %s", statusCode, request.getUrl());
129 networkResponse = new NetworkResponse(statusCode, responseContents,
131 if (statusCode == HttpStatus.SC_UNAUTHORIZED |
    [all...]
  /frameworks/base/media/java/android/media/
MediaRouterClientState.java 100 public int statusCode;
111 statusCode = MediaRouter.RouteInfo.STATUS_NONE;
124 statusCode = other.statusCode;
139 statusCode = in.readInt();
160 dest.writeInt(statusCode);
176 + ", statusCode=" + statusCode
  /external/chromium_org/third_party/WebKit/Source/core/events/
SecurityPolicyViolationEvent.h 47 int statusCode;
71 int statusCode() const { return m_statusCode; }
92 , m_statusCode(initializer.statusCode)
SecurityPolicyViolationEvent.idl 38 [InitializedByEventConstructor] readonly attribute long statusCode;
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
HttpHelper.java 125 public HttpException(int statusCode, String reasonPhrase) {
126 super(statusCode + " " + reasonPhrase);
127 mStatusCode = statusCode;
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppUtility.java 262 public static String getStatusDescription(Context context, int statusCode, String deviceName) {
264 if (statusCode == BluetoothShare.STATUS_PENDING) {
266 } else if (statusCode == BluetoothShare.STATUS_RUNNING) {
268 } else if (statusCode == BluetoothShare.STATUS_SUCCESS) {
270 } else if (statusCode == BluetoothShare.STATUS_NOT_ACCEPTABLE) {
272 } else if (statusCode == BluetoothShare.STATUS_FORBIDDEN) {
274 } else if (statusCode == BluetoothShare.STATUS_CANCELED) {
276 } else if (statusCode == BluetoothShare.STATUS_FILE_ERROR) {
278 } else if (statusCode == BluetoothShare.STATUS_ERROR_NO_SDCARD) {
280 } else if (statusCode == BluetoothShare.STATUS_CONNECTION_ERROR)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/message/
MessageFactoryImpl.java 260 * Creates a new Response message of type specified by the statusCode
264 * @param statusCode -
265 * the new integer of the statusCode value of this Message.
284 * while parsing the statusCode or the body.
286 public Response createResponse(int statusCode, CallIdHeader callId,
297 statusLine.setStatusCode(statusCode);
298 String reasonPhrase = SIPResponse.getReasonPhrase(statusCode);
300 // throw new ParseException(statusCode + " Unkown ", 0);
317 * Creates a new Response message of type specified by the statusCode
321 * @param statusCode
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/parser/
StatusLineParser.java 50 protected int statusCode() throws ParseException {
53 dbg_enter("statusCode");
63 dbg_leave("statusCode");
80 int scode = statusCode();
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
MockSpdyPeer.java 170 public int statusCode;
226 @Override public void rstStream(int flags, int streamId, int statusCode) {
231 this.statusCode = statusCode;
246 @Override public void goAway(int flags, int lastGoodStreamId, int statusCode) {
251 this.statusCode = statusCode;
  /frameworks/volley/tests/src/com/android/volley/mock/
MockHttpClient.java 45 public void setErrorCode(int statusCode) {
46 if (statusCode == HttpStatus.SC_OK) {
47 throw new IllegalArgumentException("statusCode cannot be 200 for an error");
49 mStatusCode = statusCode;
  /external/nist-sip/java/javax/sip/message/
Response.java 61 void setStatusCode(int statusCode) throws ParseException;
  /frameworks/av/include/media/stagefright/foundation/
ParsedMessage.h 36 bool getStatusCode(int32_t *statusCode) const;
  /frameworks/av/media/libstagefright/foundation/
ParsedMessage.cpp 206 bool ParsedMessage::getStatusCode(int32_t *statusCode) const {
209 *statusCode = 0;
214 *statusCode = strtol(statusCodeString.c_str(), &end, 10);
217 || (*statusCode) < 100 || (*statusCode) > 999) {
218 *statusCode = 0;
  /external/chromium_org/third_party/WebKit/Source/modules/websockets/
WebSocketHandshake.cpp 302 int statusCode;
304 int lineLength = readStatusLine(header, len, statusCode, statusText);
307 if (statusCode == -1) {
311 WTF_LOG(Network, "WebSocketHandshake %p readServerHandshake() Status code is %d", this, statusCode);
312 m_response.setStatusCode(statusCode);
314 if (statusCode != 101) {
316 m_failureReason = formatHandshakeFailureReason("Unexpected response code: " + String::number(statusCode));
406 // statusCode and statusText will be set to -1 and a null string, respectively.
407 int WebSocketHandshake::readStatusLine(const char* header, size_t headerLength, int& statusCode, String& statusText)
413 statusCode = -1
    [all...]
  /frameworks/base/core/java/android/net/http/
Request.java 250 int statusCode = 0;
255 statusCode = statusLine.getStatusCode();
256 } while (statusCode < HttpStatus.SC_OK);
263 statusCode, statusLine.getReasonPhrase());
266 hasBody = canResponseHaveBody(mHttpRequest, statusCode);
337 if (statusCode == HttpStatus.SC_OK
338 || statusCode == HttpStatus.SC_PARTIAL_CONTENT) {
HttpsConnection.java 203 int statusCode = 0;
229 statusCode = statusLine.getStatusCode();
230 } while (statusCode < HttpStatus.SC_OK);
257 if (statusCode == HttpStatus.SC_OK) {
279 statusCode,
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
SpdyConnection.java 202 void writeSynResetLater(final int streamId, final int statusCode) {
206 writeSynReset(streamId, statusCode);
213 void writeSynReset(int streamId, int statusCode) throws IOException {
214 spdyWriter.rstStream(streamId, statusCode);
292 * @param statusCode one of {@link #GOAWAY_OK}, {@link
295 public void shutdown(int statusCode) throws IOException {
305 spdyWriter.goAway(0, lastGoodStreamId, statusCode);
501 @Override public void rstStream(int flags, int streamId, int statusCode) {
504 rstStream.receiveRstStream(statusCode);
549 @Override public void goAway(int flags, int lastGoodStreamId, int statusCode) {
    [all...]
SpdyReader.java 184 int statusCode = in.readInt();
185 handler.rstStream(flags, streamId, statusCode);
283 int statusCode = in.readInt();
284 handler.goAway(flags, lastGoodStreamId, statusCode);
319 void rstStream(int flags, int streamId, int statusCode);
323 void goAway(int flags, int lastGoodStreamId, int statusCode);
  /external/chromium_org/third_party/WebKit/Source/web/tests/
PageSerializerTest.cpp 113 void registerErrorURL(const char* file, int statusCode)
116 error.reason = 0xdead + statusCode;
122 response.setHTTPStatusCode(statusCode);
  /external/smack/src/com/kenai/jbosh/
ApacheHTTPResponse.java 102 private int statusCode;
214 return statusCode;
242 statusCode = httpResp.getStatusLine().getStatusCode();
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
WiFiDirectServicesList.java 89 public static String getDeviceStatus(int statusCode) {
90 switch (statusCode) {
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/
RequestHeadersView.js 377 requestMethodElement.hidden = !this._request.statusCode;
379 statusCodeElement.hidden = !this._request.statusCode;
381 if (this._request.statusCode) {
386 statusCodeImage.title = this._request.statusCode + " " + this._request.statusText;
388 if (this._request.statusCode < 300 || this._request.statusCode === 304)
390 else if (this._request.statusCode < 400)
398 value.textContent = this._request.statusCode + " " + this._request.statusText;
  /external/chromium_org/third_party/WebKit/Source/platform/exported/
WebHTTPLoadInfo.cpp 73 void WebHTTPLoadInfo::setHTTPStatusCode(int statusCode)
76 m_private->httpStatusCode = statusCode;
  /external/nist-sip/java/gov/nist/javax/sip/stack/
SIPClientTransaction.java 608 int statusCode = transactionResponse.getStatusCode();
610 if (statusCode / 100 == 1) {
621 } else if (200 <= statusCode && statusCode <= 699) {
636 if (statusCode / 100 == 1) {
642 } else if (200 <= statusCode && statusCode <= 699) {
    [all...]

Completed in 1784 milliseconds

12 3 4 5 6