Searched refs:rq (Results 1 – 7 of 7) 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 | 146 ReferenceQueue rq = new ReferenceQueue(); in test_enqueue() local 148 Reference ref = new SoftReference(obj, rq); in test_enqueue() 151 assertTrue("Not properly enqueued.", rq.poll().get() == obj); in test_enqueue() 155 && (rq.poll() == null)); in test_enqueue() 157 rq = new ReferenceQueue(); in test_enqueue() 160 ref = new WeakReference(obj, rq); in test_enqueue() 163 assertTrue("Not properly enqueued2.", rq.poll().get() == obj); in test_enqueue() 167 && (rq.poll() == null)); in test_enqueue() 169 ref = new PhantomReference(obj, rq); in test_enqueue() 172 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()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 5410 long[] rq = divRemNegativeLong(tmp, v1); in divideAndRound128() local 5411 q1 = rq[1]; in divideAndRound128() 5412 r_tmp = rq[0]; in divideAndRound128() 5432 long[] rq = divRemNegativeLong(tmp, v1); in divideAndRound128() local 5433 q0 = rq[1]; in divideAndRound128() 5434 r_tmp = rq[0]; in divideAndRound128()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 1450 ReferenceQueue rq = new ReferenceQueue(); in test_DirectByteBuffer_PhantomReference() local 1451 PhantomReference pr = new PhantomReference(bb, rq); in test_DirectByteBuffer_PhantomReference()
|