Searched refs:rq (Results 1 – 5 of 5) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | ReferenceQueueTest.java | 50 SoftReference sr = new SoftReference(integer, rq); in run() 55 ReferenceQueue rq; field in ReferenceQueueTest 67 SoftReference sr = new SoftReference(b, rq); in test_poll() 68 WeakReference wr = new WeakReference(obj, rq); in test_poll() 69 PhantomReference pr = new PhantomReference(str, rq); in test_poll() 70 assertNull(rq.poll()); in test_poll() 76 assertTrue("Remove failed.", ((Boolean) rq.poll().get()) in test_poll() 83 assertEquals("Remove failed.", obj, (rq.poll().get())); in test_poll() 89 assertNull("Remove failed.", rq.poll().get()); in test_poll() 94 assertNull(rq.poll()); in test_poll() [all …]
|
D | PhantomReferenceTest.java | 39 ReferenceQueue rq = new ReferenceQueue(); in test_get() local 41 PhantomReference pr = new PhantomReference(bool, rq); in test_get() 83 final ReferenceQueue rq = new ReferenceQueue(); in check_gcInteraction() local 91 tprs[0] = new TestPhantomReference(obj, rq); in check_gcInteraction() 92 tprs[1] = new TestPhantomReference(obj, rq); in check_gcInteraction() 93 tprs[2] = new TestPhantomReference(obj, rq); in check_gcInteraction() 94 tprs[3] = new TestPhantomReference(obj, rq); in check_gcInteraction() 111 Reference r = rq.remove(100L); in check_gcInteraction() 131 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() local 134 PhantomReference pr = new PhantomReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
|
D | ReferenceTest.java | 89 ReferenceQueue rq = new ReferenceQueue(); in test_enqueue() local 91 Reference ref = new SoftReference(obj, rq); in test_enqueue() 94 assertTrue("Not properly enqueued.", rq.poll().get() == obj); in test_enqueue() 98 && (rq.poll() == null)); in test_enqueue() 100 rq = new ReferenceQueue(); in test_enqueue() 103 ref = new WeakReference(obj, rq); in test_enqueue() 106 assertTrue("Not properly enqueued2.", rq.poll().get() == obj); in test_enqueue() 110 && (rq.poll() == null)); in test_enqueue() 112 ref = new PhantomReference(obj, rq); in test_enqueue() 115 assertNull("Not properly enqueued3.", rq.poll().get()); in test_enqueue() [all …]
|
D | SoftReferenceTest.java | 38 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() local 41 SoftReference sr = new SoftReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 94 final ReferenceQueue rq = new ReferenceQueue(); in test_get_SoftReference() local 99 r = new SoftReference(testObj, rq); in test_get_SoftReference() 127 ref = rq.poll(); in test_get_SoftReference()
|
D | WeakReferenceTest.java | 35 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() local 39 WeakReference wr = new WeakReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
|