Home
last modified time | relevance | path

Searched refs:enqueue (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceQueueTest.java51 sr.enqueue(); in run()
71 sr.enqueue(); in test_poll()
72 wr.enqueue(); in test_poll()
73 pr.enqueue(); in test_poll()
96 sr.enqueue(); in test_poll()
97 wr.enqueue(); in test_poll()
113 sr.enqueue(); in test_remove()
123 sr.enqueue(); in test_remove()
177 pr.enqueue(); in test_removeJ()
178 wr.enqueue(); in test_removeJ()
[all …]
DReferenceTest.java52 public boolean enqueue() { in enqueue() method in ReferenceTest.TestWeakReference
54 return super.enqueue(); in enqueue()
93 && ((ref.enqueue()) && (ref.isEnqueued()))); in test_enqueue()
97 assertTrue("Can not enqueue twice.", (!ref.enqueue()) in test_enqueue()
105 && ((ref.enqueue()) && (ref.isEnqueued()))); in test_enqueue()
109 assertTrue("Can not enqueue twice2.", (!ref.enqueue()) in test_enqueue()
114 && ((ref.enqueue()) && (ref.isEnqueued()))); in test_enqueue()
118 assertTrue("Can not enqueue twice3.", (!ref.enqueue()) in test_enqueue()
246 ref.enqueue(); in test_isEnqueued()
248 ref.enqueue(); in test_isEnqueued()
DPhantomReferenceTest.java43 pr.enqueue(); in test_get()
58 public boolean enqueue() { in test_gcInteraction() method in PhantomReferenceTest.TestPhantomReference
62 return super.enqueue(); in test_gcInteraction()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java210 server.enqueue(new MockResponse()); in testRequestHeaders()
281 server.enqueue(new MockResponse() in testResponseHeaders()
316 server.enqueue(new MockResponse().setBody("A")); in testGetErrorStreamOnSuccessfulRequest()
323 server.enqueue(new MockResponse().setResponseCode(404).setBody("A")); in testGetErrorStreamOnUnsuccessfulRequest()
335 server.enqueue(response); in test_2939()
336 server.enqueue(response); in test_2939()
353 server.enqueue(response); in testConnectionsArePooled()
354 server.enqueue(response); in testConnectionsArePooled()
355 server.enqueue(response); in testConnectionsArePooled()
369 server.enqueue(response); in testChunkedConnectionsArePooled()
[all …]
DOldCookieHandlerTest.java45 server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=\"android\"; " in test_get_put()
DAbstractCookiesTest.java95 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testNetscapeResponse()
124 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testRfc2109Response()
155 server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=android; " in testRfc2965Response()
191 server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=\"android\"; " in testQuotedAttributeValues()
341 server.enqueue(new MockResponse()); in testSendingCookiesFromStore()
363 redirectTarget.enqueue(new MockResponse().setBody("A")); in testRedirectsDoNotIncludeTooManyCookies()
367 redirectSource.enqueue(new MockResponse() in testRedirectsDoNotIncludeTooManyCookies()
416 server.enqueue(new MockResponse()); in testHeadersSentToCookieHandler()
465 server. enqueue(new MockResponse()); in testCookiesSentIgnoresCase()
DSocketTest.java252 server.enqueue(new byte[]{5, 3}, 0); in testReadAfterClose()
274 server.enqueue(new byte[0], 3); in testWriteAfterClose()
462 public Future<byte[]> enqueue(final byte[] sendBytes, final int receiveByteCount) in enqueue() method in SocketTest.MockServer
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java65 enqueue(referenceQueue); in testRemoveWithImmediateResultAndNoTimeout()
71 enqueue(referenceQueue); in testRemoveWithImmediateResultAndTimeout()
132 enqueue(queue); in enqueueLater()
137 private void enqueue(ReferenceQueue<Object> queue) { in enqueue() method in ReferenceQueueTest
138 new WeakReference<Object>(new Object(), queue).enqueue(); in enqueue()
/libcore/ojluni/src/main/java/java/lang/ref/
DReference.java143 public boolean enqueue() { in enqueue() method in Reference
144 return queue != null && queue.enqueue(this); in enqueue()
DReferenceQueue.java110 boolean enqueue(Reference<? extends T> reference) { in enqueue() method in ReferenceQueue
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java44 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocAndEnqueue()
52 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocEnqueueAndPoll()
63 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocEnqueueAndRemove()
/libcore/luni/src/main/java/java/util/concurrent/
DLinkedBlockingQueue.java169 private void enqueue(Node<E> node) { in enqueue() method in LinkedBlockingQueue
258 enqueue(new Node<E>(e)); in LinkedBlockingQueue()
323 enqueue(node); in put()
358 enqueue(new Node<E>(e)); in offer()
392 enqueue(node); in offer()
DArrayBlockingQueue.java121 private void enqueue(E x) { in enqueue() method in ArrayBlockingQueue
287 enqueue(e); in offer()
309 enqueue(e); in put()
336 enqueue(e); in offer()
/libcore/support/src/test/java/tests/http/
DMockWebServer.java144 public void enqueue(MockResponse response) { in enqueue() method in MockWebServer
/libcore/luni/src/test/java/libcore/xml/
DExpatSaxParserTest.java589 server.enqueue(new MockResponse().setBody("<bar></bar>")); in testExternalEntityDownload()