Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 265) sorted by relevance

1234567891011

/external/autotest/client/tests/kvm/tests/
Dqmp_basic.py93 def check_success_resp(resp, empty=False): argument
100 check_key_is_dict(resp, "return")
101 if empty and len(resp["return"]) > 0:
103 str(resp))
106 def check_error_resp(resp, classname=None, datadict=None): argument
114 check_key_is_dict(resp, "error")
115 check_key_is_str(resp["error"], "class")
116 if classname and resp["error"]["class"] != classname:
118 (resp["error"]["class"], classname))
119 check_key_is_dict(resp["error"], "data")
[all …]
Dqmp_basic_rhel6.py94 def check_success_resp(resp, empty=False): argument
101 check_key_is_dict(resp, "return")
102 if empty and len(resp["return"]) > 0:
104 str(resp))
107 def check_error_resp(resp, classname=None, datadict=None): argument
115 logging.debug("resp %s", str(resp))
116 check_key_is_dict(resp, "error")
117 check_key_is_str(resp["error"], "class")
118 if classname and resp["error"]["class"] != classname:
120 (resp["error"]["class"], classname))
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dp2p_supplicant_sd.c183 static void wpas_sd_add_empty(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_empty() argument
188 if (wpabuf_tailroom(resp) < 5) in wpas_sd_add_empty()
192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty()
193 wpabuf_put_u8(resp, srv_proto); in wpas_sd_add_empty()
194 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_add_empty()
196 wpabuf_put_u8(resp, status); in wpas_sd_add_empty()
198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty()
202 static void wpas_sd_add_proto_not_avail(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_proto_not_avail() argument
205 wpas_sd_add_empty(resp, srv_proto, srv_trans_id, in wpas_sd_add_proto_not_avail()
210 static void wpas_sd_add_bad_request(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_bad_request() argument
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/
DOCSPResp.java26 private OCSPResponse resp; field in OCSPResp
29 OCSPResponse resp) in OCSPResp() argument
31 this.resp = resp; in OCSPResp()
35 byte[] resp) in OCSPResp() argument
38 this(new ByteArrayInputStream(resp)); in OCSPResp()
42 InputStream resp) in OCSPResp() argument
45 this(new ASN1InputStream(resp)); in OCSPResp()
54 this.resp = OCSPResponse.getInstance(aIn.readObject()); in OCSPResp()
69 if (resp == null) in OCSPResp()
77 return this.resp.getResponseStatus().getValue().intValue(); in getStatus()
[all …]
DBasicOCSPResp.java36 private BasicOCSPResponse resp; field in BasicOCSPResp
41 BasicOCSPResponse resp) in BasicOCSPResp() argument
43 this.resp = resp; in BasicOCSPResp()
44 this.data = resp.getTbsResponseData(); in BasicOCSPResp()
45 this.extensions = Extensions.getInstance(resp.getTbsResponseData().getResponseExtensions()); in BasicOCSPResp()
56 return resp.getTbsResponseData().getEncoded(ASN1Encoding.DER); in getTBSResponseData()
71 return resp.getSignatureAlgorithm(); in getSignatureAlgorithmID()
135 return resp.getSignatureAlgorithm().getAlgorithm(); in getSignatureAlgOID()
140 return resp.getSignature().getOctets(); in getSignature()
148 if (resp.getCerts() != null) in getCerts()
[all …]
DSingleResp.java16 private SingleResponse resp; field in SingleResp
20 SingleResponse resp) in SingleResp() argument
22 this.resp = resp; in SingleResp()
23 this.extensions = resp.getSingleExtensions(); in SingleResp()
28 return new CertificateID(resp.getCertID()); in getCertID()
38 CertStatus s = resp.getCertStatus(); in getCertStatus()
54 return OCSPUtils.extractDate(resp.getThisUpdate()); in getThisUpdate()
65 if (resp.getNextUpdate() == null) in getNextUpdate()
70 return OCSPUtils.extractDate(resp.getNextUpdate()); in getNextUpdate()
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
Dhttp.py550 % (retry_num, self._uri, resp.status))
552 resp, content = http.request(self._uri, headers=headers)
553 if resp.status < 500:
556 if resp.status in [200, 206]:
557 if 'content-location' in resp and resp['content-location'] != self._uri:
558 self._uri = resp['content-location']
562 if 'content-range' in resp:
563 content_range = resp['content-range']
566 elif 'content-length' in resp:
567 self._total_size = int(resp['content-length'])
[all …]
Derrors.py38 def __init__(self, resp, content, uri=None): argument
39 self.resp = resp
45 reason = self.resp.reason
58 self.resp.status, self.uri, self._get_reason().strip())
60 return '<HttpError %s "%s">' % (self.resp.status, self._get_reason())
112 def __init__(self, reason, resp=None, content=None): argument
113 self.resp = resp
118 return '<BatchError %s "%s">' % (self.resp.status, self.reason)
/external/chromium-trace/catapult/third_party/gsutil/third_party/socksipy-branch/
Dsocks.py225 resp = self.__recvall(4)
226 if resp[0:1] != chr(0x05).encode():
229 elif resp[1:2] != chr(0x00).encode():
232 if ord(resp[1:2])<=8:
233 raise Socks5Error((ord(resp[1:2]), _socks5errors[ord(resp[1:2])]))
237 elif resp[3:4] == chr(0x01).encode():
239 elif resp[3:4] == chr(0x03).encode():
240 resp = resp + self.recv(1)
241 boundaddr = self.__recvall(ord(resp[4:5]))
299 resp = self.__recvall(8)
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_eke.c200 struct wpabuf *resp; in eap_eke_build_fail() local
205 resp = eap_eke_build_msg(data, id, 4, EAP_EKE_FAILURE); in eap_eke_build_fail()
206 if (resp) in eap_eke_build_fail()
207 wpabuf_put_be32(resp, failure_code); in eap_eke_build_fail()
217 return resp; in eap_eke_build_fail()
227 struct wpabuf *resp; in eap_eke_process_id() local
323 resp = eap_eke_build_msg(data, id, in eap_eke_process_id()
326 if (resp == NULL) { in eap_eke_process_id()
331 wpabuf_put_u8(resp, 1); /* NumProposals */ in eap_eke_process_id()
332 wpabuf_put_u8(resp, 0); /* Reserved */ in eap_eke_process_id()
[all …]
Deap_sake.c149 struct wpabuf *resp; in eap_sake_process_identity() local
169 resp = eap_sake_build_msg(data, id, 2 + data->peerid_len, in eap_sake_process_identity()
171 if (resp == NULL) in eap_sake_process_identity()
175 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_identity()
180 return resp; in eap_sake_process_identity()
192 struct wpabuf *resp; in eap_sake_process_challenge() local
249 resp = eap_sake_build_msg(data, id, rlen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_process_challenge()
250 if (resp == NULL) in eap_sake_process_challenge()
254 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, in eap_sake_process_challenge()
259 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_challenge()
[all …]
Deap_gpsk.c283 struct wpabuf *resp; in eap_gpsk_process_gpsk_1() local
304 resp = eap_gpsk_send_gpsk_2(data, identifier, in eap_gpsk_process_gpsk_1()
306 if (resp == NULL) in eap_gpsk_process_gpsk_1()
311 return resp; in eap_gpsk_process_gpsk_1()
320 struct wpabuf *resp; in eap_gpsk_send_gpsk_2() local
332 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len, in eap_gpsk_send_gpsk_2()
334 if (resp == NULL) in eap_gpsk_send_gpsk_2()
337 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2); in eap_gpsk_send_gpsk_2()
338 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2()
342 wpabuf_put_be16(resp, data->id_peer_len); in eap_gpsk_send_gpsk_2()
[all …]
Deap_gtc.c49 struct wpabuf *resp; in eap_gtc_process() local
72 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, in eap_gtc_process()
74 return resp; in eap_gtc_process()
104 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, plen, in eap_gtc_process()
106 if (resp == NULL) in eap_gtc_process()
109 wpabuf_put_data(resp, "RESPONSE=", 9); in eap_gtc_process()
110 wpabuf_put_data(resp, identity, identity_len); in eap_gtc_process()
111 wpabuf_put_u8(resp, '\0'); in eap_gtc_process()
113 wpabuf_put_data(resp, password, password_len); in eap_gtc_process()
115 wpabuf_head_u8(resp) + sizeof(struct eap_hdr) + in eap_gtc_process()
[all …]
Deap_pax.c97 struct wpabuf *resp; in eap_pax_alloc_resp() local
100 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PAX, in eap_pax_alloc_resp()
102 if (resp == NULL) in eap_pax_alloc_resp()
105 pax = wpabuf_put(resp, sizeof(*pax)); in eap_pax_alloc_resp()
112 return resp; in eap_pax_alloc_resp()
121 struct wpabuf *resp; in eap_pax_process_std_1() local
192 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); in eap_pax_process_std_1()
193 if (resp == NULL) in eap_pax_process_std_1()
196 wpabuf_put_be16(resp, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
197 wpabuf_put_data(resp, data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
[all …]
Deap_tnc.c91 struct wpabuf *resp; in eap_tnc_build_msg() local
113 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, plen, in eap_tnc_build_msg()
115 if (resp == NULL) in eap_tnc_build_msg()
118 wpabuf_put_u8(resp, flags); /* Flags */ in eap_tnc_build_msg()
120 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_tnc_build_msg()
122 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_tnc_build_msg()
144 return resp; in eap_tnc_build_msg()
206 struct wpabuf *resp; in eap_tnc_process() local
354 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, in eap_tnc_process()
356 if (resp == NULL) in eap_tnc_process()
[all …]
Deap_ttls.c243 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, in eap_ttls_avp_encapsulate() argument
249 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4); in eap_ttls_avp_encapsulate()
251 wpabuf_free(*resp); in eap_ttls_avp_encapsulate()
252 *resp = NULL; in eap_ttls_avp_encapsulate()
257 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp)); in eap_ttls_avp_encapsulate()
258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp)); in eap_ttls_avp_encapsulate()
259 pos += wpabuf_len(*resp); in eap_ttls_avp_encapsulate()
261 wpabuf_free(*resp); in eap_ttls_avp_encapsulate()
263 *resp = msg; in eap_ttls_avp_encapsulate()
337 struct wpabuf **resp) in eap_ttls_phase2_eap_process() argument
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponseTest.java19 HttpResponse resp = in shouldSupportGetFirstHeader() local
23 assertThat(resp.getFirstHeader("None"), nullValue()); in shouldSupportGetFirstHeader()
27 assertThat(resp.getFirstHeader(l).getValue(), equalTo("http://bar.com")); in shouldSupportGetFirstHeader()
33 HttpResponse resp = in shouldSupportGetLastHeader() local
38 assertThat(resp.getLastHeader("None"), nullValue()); in shouldSupportGetLastHeader()
41 assertThat(resp.getLastHeader(l).getValue(), equalTo("http://zombo.com")); in shouldSupportGetLastHeader()
47 HttpResponse resp = in shouldSupportContainsHeader() local
51 assertThat(resp.containsHeader("X-Zombo-Com"), is(true)); in shouldSupportContainsHeader()
52 assertThat(resp.containsHeader("Location"), is(false)); in shouldSupportContainsHeader()
57 HttpResponse resp = in shouldSupportHeaderIterator() local
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pax.c187 struct eap_pax_hdr *resp; in eap_pax_check() local
193 if (pos == NULL || len < sizeof(*resp)) { in eap_pax_check()
199 resp = (struct eap_pax_hdr *) pos; in eap_pax_check()
204 resp->op_code, resp->flags, resp->mac_id, resp->dh_group_id, in eap_pax_check()
205 resp->public_key_id); in eap_pax_check()
207 (u8 *) (resp + 1), len - sizeof(*resp) - EAP_PAX_ICV_LEN); in eap_pax_check()
210 resp->op_code != EAP_PAX_OP_STD_2) { in eap_pax_check()
212 "ignore op %d", resp->op_code); in eap_pax_check()
217 resp->op_code != EAP_PAX_OP_ACK) { in eap_pax_check()
219 "ignore op %d", resp->op_code); in eap_pax_check()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dboto_resumable_upload.py165 resp = self._QueryServiceState(conn, file_length)
166 if resp.status == 200:
174 if resp.status != 308:
183 resp.status, ResumableTransferDisposition.START_OVER)
185 range_spec = resp.getheader('range')
203 str(resp.getheaders()), ResumableTransferDisposition.START_OVER)
242 resp = conn.make_request(
245 body = resp.read()
248 if resp.status in [429, 500, 503]:
252 'Will wait/retry' % resp.status,
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/
Dsocks.py264 resp = self.__recvall(4)
265 if resp[0:1] != chr(0x05).encode():
268 elif resp[1:2] != chr(0x00).encode():
271 if ord(resp[1:2])<=8:
272 raise Socks5Error((ord(resp[1:2]), _socks5errors[ord(resp[1:2])]))
276 elif resp[3:4] == chr(0x01).encode():
278 elif resp[3:4] == chr(0x03).encode():
279 resp = resp + self.recv(1)
280 boundaddr = self.__recvall(ord(resp[4:5]))
338 resp = self.__recvall(8)
[all …]
/external/autotest/server/site_tests/bluetooth_SDP_ServiceSearchRequestBasic/
Dbluetooth_SDP_ServiceSearchRequestBasic.py38 resp = self.tester.service_search_request(
40 if resp != [0]:
45 resp = self.tester.service_search_request(
47 if resp != []:
52 resp = self.tester.service_search_request(
56 if len(resp) != self.FAKE_SERVICES_CNT:
60 resp = self.tester.service_search_request(
63 if resp != self.ERROR_CODE_INVALID_PDU_SIZE:
67 resp = self.tester.service_search_request(
69 if resp != self.ERROR_CODE_INVALID_REQUEST_SYNTAX:
/external/chromium-trace/catapult/third_party/WebOb/webob/
Ddec.py130 resp = self.call_func(req, *args, **self.kwargs)
132 resp = exc
133 if resp is None:
135 resp = req.response
136 if isinstance(resp, text_type):
137 resp = bytes_(resp, req.charset)
138 if isinstance(resp, bytes):
139 body = resp
140 resp = req.response
141 resp.write(body)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/gs/
Dresumable_upload_handler.py215 resp = self._query_server_state(conn, file_length)
216 if resp.status == 200:
224 if resp.status != 308:
233 resp.status, ResumableTransferDisposition.START_OVER)
235 range_spec = resp.getheader('range')
253 str(resp.getheaders()), ResumableTransferDisposition.START_OVER)
287 resp = conn.make_request(
290 body = resp.read()
293 if resp.status in [500, 503]:
297 'Will wait/retry' % resp.status,
[all …]
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.c795 unsigned char resp[3]; in _scard_select_file() local
822 len = sizeof(resp); in _scard_select_file()
823 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in _scard_select_file()
836 if (resp[0] == 0x98 && resp[1] == 0x04) { in _scard_select_file()
843 if (resp[0] == 0x6e) { in _scard_select_file()
848 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) { in _scard_select_file()
850 "(expected 0x61, 0x6c, or 0x9f)", resp[0]); in _scard_select_file()
854 get_resp[4] = resp[1]; in _scard_select_file()
856 resp[1]); in _scard_select_file()
861 *buf_len = resp[1] < rlen ? resp[1] : rlen; in _scard_select_file()
[all …]
/external/chromium-trace/catapult/third_party/WebOb/docs/comment-example-code/
Dexample.py23 resp = req.get_response(self.app)
24 if resp.content_type != 'text/html' or resp.status_code != 200:
27 return resp(environ, start_response)
29 resp.decode_content()
31 body = resp.body
34 resp.body = body
35 return resp(environ, start_response)
106 resp = exc.HTTPBadRequest('Missing parameter: %s' % e)
107 return resp
115 resp = exc.HTTPSeeOther(location=url+'#comment-area')
[all …]

1234567891011