Home
last modified time | relevance | path

Searched refs:response (Results 1 – 7 of 7) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DURLConnectionBenchmark.java42 private MockResponse response; field in URLConnectionBenchmark.SingleResponseDispatcher
43 SingleResponseDispatcher(MockResponse response) { in SingleResponseDispatcher() argument
44 this.response = response; in SingleResponseDispatcher()
47 return response; in dispatch()
55 MockResponse response = new MockResponse(); in setUp() local
56 responseHeaders.apply(response); in setUp()
57 transferEncoding.setBody(response, bodySize, chunkSize); in setUp()
60 server.setDispatcher(new SingleResponseDispatcher(response)); in setUp()
95 void setBody(MockResponse response, int bodySize, int chunkSize) throws IOException { in setBody() argument
97 response.setBody(new byte[bodySize]); in setBody()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSP.java217 byte[] response = null; in check()
247 response = new byte[contentLength > 2048 ? 2048 : contentLength]; in check()
250 int count = in.read(response, total, response.length - total); in check()
255 if (total >= response.length && total < contentLength) { in check()
256 response = Arrays.copyOf(response, total * 2); in check()
259 response = Arrays.copyOf(response, total); in check()
283 ocspResponse = new OCSPResponse(response); in check()
DRevocationChecker.java682 OCSPResponse response = null;
700 response = new OCSPResponse(responseBytes);
709 response.verify(Collections.singletonList(certId), issuerCert,
722 response = OCSP.check(Collections.singletonList(certId),
733 (RevocationStatus)response.getSingleResponse(certId);
740 response.getSignerCertificate().getSubjectX500Principal(),
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java851 MockResponse response = new MockResponse(); in dispatch() local
852 response.setResponseCode(AUTHENTICATION_REQUIRED_CODE); in dispatch()
853 response.addHeader("Proxy-authenticate: Basic realm=\"localhost\""); in dispatch()
854 log("Authentication required. Sending response: " + response); in dispatch()
855 return response; in dispatch()
886 MockResponse response = new MockResponse(); in dispatch() local
887 response.setResponseCode(200); in dispatch()
888 response.setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END); in dispatch()
889 return response; in dispatch()
931 MockResponse response = new MockResponse(); in dispatch() local
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java380 String response = getLastResponseString(); in getTransferSize() local
384 Matcher m = transPat.matcher(response); in getTransferSize()
398 String response = getLastResponseString(); in getTransferName() local
399 int i = response.indexOf("unique file name:"); in getTransferName()
400 int e = response.lastIndexOf(')'); in getTransferName()
403 lastFileName = response.substring(i, e); in getTransferName()
416 String response; in readServerResponse() local
431 response = replyBuf.toString(); in readServerResponse()
434 logger.finest("Server [" + serverAddr + "] --> " + response); in readServerResponse()
437 if (response.length() == 0) { in readServerResponse()
[all …]
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java134 byte[] response = s.toUpperCase(Locale.ROOT).getBytes("UTF-8"); in checkUnixDomainSocket()
135 Os.write(clientFd, response, 0, response.length); in checkUnixDomainSocket()
155 byte[] response = new byte[request.length]; in checkUnixDomainSocket()
156 assertEquals(response.length, Os.read(clientFd, response, 0, response.length)); in checkUnixDomainSocket()
158 assertEquals(string.toUpperCase(Locale.ROOT), new String(response, "UTF-8")); in checkUnixDomainSocket()
/libcore/luni/src/main/java/libcore/net/
Dmime.types67 application/index.response
91 application/ocsp-response
134 application/whoispp-response