Home
last modified time | relevance | path

Searched refs:wr (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DWeakReferenceTest.java39 WeakReference wr = new WeakReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() local
40 assertTrue("Initialization failed.", ((Boolean) wr.get()) in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
63 WeakReference wr = new WeakReference(bool); in test_ConstructorLjava_lang_Object() local
66 assertTrue("Initialization failed.", ((Boolean) wr.get()) in test_ConstructorLjava_lang_Object()
DReferenceTest.java70 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue()); in test_clear() local
73 && (wr.get() != null)); in test_clear()
76 wr.clear(); in test_clear()
79 && (wr.get() == null)); in test_clear()
82 assertTrue("should always pass", tmpA != sr.get() && tmpB != wr.get()); in test_clear()
93 final WeakReference wr = new WeakReference(tmpB, new ReferenceQueue()); in test_refersTo() local
96 assertTrue("weak refersTo(referent)", wr.refersTo(tmpB)); in test_refersTo()
99 assertFalse("weak refersTo(other)", wr.refersTo(tmpA)); in test_refersTo()
102 wr.clear(); in test_refersTo()
105 assertTrue("weak refersTo(null)", wr.refersTo(null)); in test_refersTo()
[all …]
DReferenceQueueTest.java68 WeakReference wr = new WeakReference(obj, rq); in test_poll() local
72 wr.enqueue(); in test_poll()
97 wr.enqueue(); in test_poll()
177 WeakReference wr = new WeakReference(obj, rq); in test_removeJ() local
184 wr.enqueue(); in test_removeJ()
/libcore/ojluni/src/test/java/util/HashMap/
DHashMapCloneLeak.java40 static WeakReference<Object> wr = null; field in HashMapCloneLeak
46 wr = new WeakReference<Object>(testObject); in makeMap()
59 while (wr.get() != null) { in main()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DWriterTest.java69 Writer wr = new MockLockWriter(lock); in test_writeLjava_lang_String() local
70 wr.write("Some string"); in test_writeLjava_lang_String()
71 wr.close(); in test_writeLjava_lang_String()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java369 WeakReference<CharsetDecoder> wr = cachedDecoder; in isLegalReplacement() local
371 if ((wr == null) || ((dec = wr.get()) == null)) { in isLegalReplacement()
DCharset-X-Coder.java.template369 WeakReference<CharsetDecoder> wr = cachedDecoder;
371 if ((wr == null) || ((dec = wr.get()) == null)) {
/libcore/ojluni/src/main/native/
Dnet_util_md.c1379 fd_set rd, wr, ex;
1386 FD_ZERO(&wr);
1392 FD_SET(fd, &wr);
1395 FD_SET(fd, &wr);
1400 read_rv = NET_Select(fd+1, &rd, &wr, &ex, &t);