Home
last modified time | relevance | path

Searched refs:request (Results 1 – 13 of 13) sorted by relevance

/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java65 public abstract Chunk handleChunk(Chunk request); in handleChunk() argument
89 public static ByteBuffer wrapChunk(Chunk request) { in wrapChunk() argument
92 in = ByteBuffer.wrap(request.data, request.offset, request.length); in wrapChunk()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java693 HttpsURLConnection connection, RecordedRequest request) throws Exception { in checkConnectionStateParameters() argument
694 assertEquals(request.getSslCipherSuite(), connection.getCipherSuite()); in checkConnectionStateParameters()
695 assertEquals(request.getSslLocalPrincipal(), connection.getPeerPrincipal()); in checkConnectionStateParameters()
696 assertEquals(request.getSslPeerPrincipal(), connection.getLocalPrincipal()); in checkConnectionStateParameters()
699 Certificate[] localCertificates = request.getSslLocalCertificates(); in checkConnectionStateParameters()
704 serverCertificates = request.getSslPeerCertificates(); in checkConnectionStateParameters()
834 public MockResponse dispatch(RecordedRequest request) throws InterruptedException { in dispatch() argument
835 return delegates.removeFirst().dispatch(request); in dispatch()
848 public MockResponse dispatch(RecordedRequest request) throws InterruptedException { in dispatch() argument
849 assertEquals("CONNECT", request.getMethod()); in dispatch()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java45 final byte[] request; field in SSLSocketBenchmark.WebSite
62 this.request = ("GET " + uri + " HTTP/1.0\r\n" in WebSite()
85 out.write(webSite.request); in time()
DURLConnectionBenchmark.java46 @Override public MockResponse dispatch(RecordedRequest request) { in dispatch() argument
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java273 RecordedRequest request = server.takeRequest(); in requestHeaders() local
274 assertContains(request.getHeaders(), "D: e"); in requestHeaders()
275 assertContains(request.getHeaders(), "D: f"); in requestHeaders()
276 assertContainsNoneMatching(request.getHeaders(), "NullValue.*"); in requestHeaders()
277 assertContainsNoneMatching(request.getHeaders(), "AnotherNullValue.*"); in requestHeaders()
278 assertContainsNoneMatching(request.getHeaders(), "G:.*"); in requestHeaders()
279 assertContainsNoneMatching(request.getHeaders(), "null:.*"); in requestHeaders()
523 RecordedRequest request = server.takeRequest(); in doUpload() local
524 assertEquals(n, request.getBodySize()); in doUpload()
526 assertTrue(request.getChunkSizes().size() > 0); in doUpload()
[all …]
DAbstractCookiesTest.java351 RecordedRequest request = server.takeRequest(); in testSendingCookiesFromStore() local
353 List<String> receivedHeaders = request.getHeaders(); in testSendingCookiesFromStore()
379 RecordedRequest request = redirectSource.takeRequest(); in testRedirectsDoNotIncludeTooManyCookies() local
381 assertContains(request.getHeaders(), "Cookie: $Version=\"1\"; " in testRedirectsDoNotIncludeTooManyCookies()
428 RecordedRequest request = server.takeRequest(); in testHeadersSentToCookieHandler() local
449 assertContainsAll(request.getHeaders(), "Foo: foo", "Cookie: Bar=bar", "Cookie2: Baz=baz"); in testHeadersSentToCookieHandler()
450 assertFalse(request.getHeaders().contains("Quux: quux")); in testHeadersSentToCookieHandler()
468 RecordedRequest request = server.takeRequest(); in testCookiesSentIgnoresCase() local
469 assertContainsAll(request.getHeaders(), "COOKIE: Bar=bar", "cooKIE2: Baz=baz"); in testCookiesSentIgnoresCase()
470 assertFalse(request.getHeaders().contains("Quux: quux")); in testCookiesSentIgnoresCase()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSP.java206 OCSPRequest request = null; in check() local
208 request = new OCSPRequest(certIds, extensions); in check()
209 bytes = request.encodeBytes(); in check()
291 request.getNonce()); in check()
/libcore/ojluni/src/main/java/java/util/concurrent/
DFlow.java283 public void request(long n); in request() method
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java170 byte[] request = new byte[256]; in checkUnixDomainSocket()
171 Os.read(clientFd, request, 0, request.length); in checkUnixDomainSocket()
173 String s = new String(request, "UTF-8"); in checkUnixDomainSocket()
192 byte[] request = string.getBytes("UTF-8"); in checkUnixDomainSocket()
193 assertEquals(request.length, Os.write(clientFd, request, 0, request.length)); in checkUnixDomainSocket()
195 byte[] response = new byte[request.length]; in checkUnixDomainSocket()
1115 byte[] request = new byte[1]; in test_socket_setSockoptTimeval_effective()
1117 expectException(() -> Os.read(fd, request, 0, request.length), in test_socket_setSockoptTimeval_effective()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java106 String request = new String(buff, 0, num); in run() local
108 request.toLowerCase().indexOf("proxy-authorization:") > 0; in run()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java336 int request = Math.max(2 * words.length, wordsRequired); in ensureCapacity() local
337 words = Arrays.copyOf(words, request); in ensureCapacity()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java2189 byte[] request = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in testReadByteBuffer_Direct2()
2201 out.write(request); in testReadByteBuffer_Direct2()
2209 buffer.limit(request.length); in testReadByteBuffer_Direct2()
2214 assertEquals(request.length, buffer.limit()); in testReadByteBuffer_Direct2()
2216 assertEquals(ByteBuffer.wrap(request), buffer); in testReadByteBuffer_Direct2()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf143 req_extensions = v3_req # The extensions to add to a certificate request