/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SortedMapTestBase.java | 44 SortedMap<Integer, Integer> ref; field in SortedMapTestBase 51 ref.put(rnd.nextInt(N) * 2, rnd.nextBoolean() ? null : rnd.nextInt(N) * 2); in setUp() 63 assertEquals(ref.containsKey(key), map.containsKey(key)); in testContainsKey() 71 assertEquals(ref.containsValue(value), map.containsValue(value)); in testContainsValue() 77 Set<Map.Entry<Integer, Integer>> refSet = ref.entrySet(); in testEntrySet() 85 assertEquals(ref.entrySet(), map.entrySet()); in testEntrySet() 92 assertEquals(ref.get(key), map.get(key)); in testGet() 98 assertEquals(ref.keySet(), map.keySet()); in testKeySet() 99 Iterator<Integer> i = ref.keySet().iterator(); in testKeySet() 115 assertEquals(ref.put(key, value), map.put(key, value)); in testPut() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | ReferenceTest.java | 17 package org.apache.harmony.tests.java.lang.ref; 19 import java.lang.ref.PhantomReference; 20 import java.lang.ref.Reference; 21 import java.lang.ref.ReferenceQueue; 22 import java.lang.ref.SoftReference; 23 import java.lang.ref.WeakReference; 25 import libcore.java.lang.ref.FinalizationTester; 148 Reference ref = new SoftReference(obj, rq); in test_enqueue() local 149 assertTrue("Enqueue failed.", (!ref.isEnqueued()) in test_enqueue() 150 && ((ref.enqueue()) && (ref.isEnqueued()))); in test_enqueue() [all …]
|
D | SoftReferenceTest.java | 17 package org.apache.harmony.tests.java.lang.ref; 19 import java.lang.ref.Reference; 20 import java.lang.ref.ReferenceQueue; 21 import java.lang.ref.SoftReference; 23 import libcore.java.lang.ref.FinalizationTester; 102 Reference ref; in test_get_SoftReference() local 127 ref = rq.poll(); in test_get_SoftReference() 128 assertNotNull("Object not garbage collected.", ref); in test_get_SoftReference() 129 assertNull("Object is not null.", ref.get()); in test_get_SoftReference()
|
D | PhantomReferenceTest.java | 18 package org.apache.harmony.tests.java.lang.ref; 20 import java.lang.ref.PhantomReference; 21 import java.lang.ref.Reference; 22 import java.lang.ref.ReferenceQueue; 23 import libcore.java.lang.ref.FinalizationTester;
|
D | ReferenceQueueTest.java | 18 package org.apache.harmony.tests.java.lang.ref; 20 import java.lang.ref.PhantomReference; 21 import java.lang.ref.Reference; 22 import java.lang.ref.ReferenceQueue; 23 import java.lang.ref.SoftReference; 24 import java.lang.ref.WeakReference; 26 import libcore.java.lang.ref.FinalizationTester;
|
D | WeakReferenceTest.java | 18 package org.apache.harmony.tests.java.lang.ref; 20 import java.lang.ref.ReferenceQueue; 21 import java.lang.ref.WeakReference;
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ref/ |
D | ReferenceQueue.java | 27 package java.lang.ref; 38 private boolean enqueueLocked(java.lang.ref.Reference<? extends T> r) { in enqueueLocked() 42 boolean isEnqueued(java.lang.ref.Reference<? extends T> reference) { in isEnqueued() 46 boolean enqueue(java.lang.ref.Reference<? extends T> reference) { in enqueue() 50 private java.lang.ref.Reference<? extends T> reallyPollLocked() { in reallyPollLocked() 54 public java.lang.ref.Reference<? extends T> poll() { in poll() 58 public java.lang.ref.Reference<? extends T> remove(long timeout) in remove() 63 public java.lang.ref.Reference<? extends T> remove() throws java.lang.InterruptedException { in remove() 67 public static void enqueuePending(java.lang.ref.Reference<?> list) { in enqueuePending() 72 static void add(java.lang.ref.Reference<?> list) { in add() [all …]
|
D | Reference.java | 27 package java.lang.ref; 38 Reference(T referent, java.lang.ref.ReferenceQueue<? super T> queue) { in Reference() 63 public static void reachabilityFence(java.lang.Object ref) { in reachabilityFence() argument 69 java.lang.ref.Reference<?> pendingNext; 71 final java.lang.ref.ReferenceQueue<? super T> queue; 77 java.lang.ref.Reference queueNext;
|
/libcore/ojluni/src/test/java/util/SequencedCollection/ |
D | Basic.java | 357 public void checkContents1(SequencedCollection<String> seq, List<String> ref) { in checkContents1() argument 361 assertEquals(list1, ref); in checkContents1() 365 assertEquals(list2, ref); in checkContents1() 368 assertEquals(list3, ref); in checkContents1() 371 assertEquals(list4, ref); in checkContents1() 374 assertEquals(list5, ref); in checkContents1() 377 assertEquals(list6, ref); in checkContents1() 380 assertEquals(list7, ref); in checkContents1() 382 assertEquals(seq.size(), ref.size()); in checkContents1() 383 assertEquals(seq.isEmpty(), ref.isEmpty()); in checkContents1() [all …]
|
D | BasicMap.java | 282 …blic void checkContents1(SequencedMap<String, Integer> map, List<Map.Entry<String, Integer>> ref) { in checkContents1() argument 285 assertEquals(list1, ref); in checkContents1() 287 assertEquals(map.size(), ref.size()); in checkContents1() 288 assertEquals(map.isEmpty(), ref.isEmpty()); in checkContents1() 290 for (var e : ref) { in checkContents1() 297 …ublic void checkContents(SequencedMap<String, Integer> map, List<Map.Entry<String, Integer>> ref) { in checkContents() argument 298 checkContents1(map, ref); in checkContents() 300 var rref = new ArrayList<>(ref); in checkContents() 306 checkContents1(rrmap, ref); in checkContents() 584 …ndamentals(String label, SequencedMap<String, Integer> map, List<Map.Entry<String, Integer>> ref) { in testFundamentals() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldInputStreamTest.java | 88 byte[] ref = testString.getBytes(); in test_read$B() 98 equal &= (b[i] == ref[i]); in test_read$B() 104 b = new byte[ref.length]; in test_read$B() 107 bytesRead, ref.length - 10); in test_read$B() 110 equal &= (b[i] == ref[i + 10]); in test_read$B() 168 byte[] ref = testString.getBytes(); in test_read$BII() 178 equal &= (b[i] == ref[i]); in test_read$BII() 187 equal &= (b[i] == ref[i]); in test_read$BII() 193 b = new byte[ref.length]; in test_read$BII() 198 bytesRead, ref.length - 8); in test_read$BII() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileLockTable.java | 31 import java.lang.ref.*; 184 FileLockReference ref = list.get(index); in remove() local 185 FileLock lock = ref.get(); in remove() 188 ref.clear(); in remove() 205 FileLockReference ref = list.get(index); in removeAll() local 206 FileLock lock = ref.get(); in removeAll() 211 ref.clear(); in removeAll() 236 FileLockReference ref = list.get(index); in replace() local 237 FileLock lock = ref.get(); in replace() 239 ref.clear(); in replace() [all …]
|
/libcore/ojluni/src/test/java/lang/ref/ |
D | ReferenceCloneTest.java | 29 package test.java.lang.ref; 31 import java.lang.ref.*; 52 CloneableReference ref = new CloneableReference(o); in test() local 54 ref.clone(); in test() 58 private void assertCloneNotSupported(CloneableRef ref) { in assertCloneNotSupported() argument 60 ref.clone(); in assertCloneNotSupported()
|
D | CleanerTest.java | 23 package test.java.lang.ref; 28 import java.lang.ref.Cleaner; 29 import java.lang.ref.Reference; 30 import java.lang.ref.PhantomReference; 31 import java.lang.ref.ReferenceQueue; 39 import jdk.internal.ref.PhantomCleanable; 40 import jdk.internal.ref.CleanerFactory; 285 PhantomReference<Object> ref = new PhantomReference<>(service, queue); in testCleanerTermination() local 293 Assert.assertEquals(r, ref, "Wrong Reference dequeued"); in testCleanerTermination() 419 private volatile Reference<?> ref; field in CleanerTest.CleanableCase [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URL.java | 215 private String ref; field in URL 423 ref = parts.getRef(); in URL() 615 ref = spec.substring(i + 1, limit); in URL() 625 if (ref == null) { in URL() 626 ref = context.ref; in URL() 680 String file, String ref) { in set() argument 687 this.ref = ref; in set() 718 String query, String ref) { in set() argument 728 this.ref = ref; in set() 847 return ref; in getRef() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | HttpRetryExceptionTest.java | 38 HttpRetryException ref = (HttpRetryException) reference; 41 assertEquals("getLocation", ref.getLocation(), tst.getLocation()); 42 assertEquals("responseCode", ref.responseCode(), tst.responseCode()); 43 assertEquals("getReason", ref.getReason(), tst.getReason()); 44 assertEquals("getMessage", ref.getMessage(), tst.getMessage());
|
/libcore/ojluni/src/main/java/jdk/internal/ref/ |
D | CleanerImpl.java | 26 package jdk.internal.ref; 28 import java.lang.ref.Cleaner; 29 import java.lang.ref.Cleaner.Cleanable; 30 import java.lang.ref.ReferenceQueue; 174 Cleanable ref = (Cleanable) queue.remove(60 * 1000L); in run() local 175 if (ref != null) { in run() 176 ref.clean(); in run()
|
D | PhantomCleanable.java | 26 package jdk.internal.ref; 28 import java.lang.ref.Cleaner; 29 import java.lang.ref.Reference; 30 import java.lang.ref.PhantomReference;
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoZonedDateTimeSerialization.java | 98 … ZonedDateTime ref = LocalDate.of(2013, 1, 5).atTime(12, 1, 2, 3).atZone(ZoneId.of("GMT+01:23")); in test_ChronoZonedDateTimeSerialization() local 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
|
D | TCKChronoLocalDateTimeSerialization.java | 98 LocalDateTime ref = LocalDate.of(2013, 1, 5).atTime(12, 1, 2, 3); in test_ChronoLocalDateTimeSerialization() local 99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization()
|
/libcore/ojluni/src/test/java/lang/ref/SoftReference/ |
D | BashTest.java | 31 package test.java.lang.ref.SoftReference; 35 import java.lang.ref.SoftReference; 62 TestReference ref = new TestReference(new byte[BLOCK_SIZE]); in test() local
|
/libcore/tools/expected_upstream/ |
D | ojluni_refresh_files.py | 150 ref = entry_set[0].git_ref 151 upstream_commit = repo.commit(ref) 180 summary=summary_msg, ref=ref, files=str_dst_paths) 193 summary=summary_msg, ref=ref, files=str_dst_paths)
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Proxy.java | 140 private static final class Key1 extends java.lang.ref.WeakReference<java.lang.Class<?>> { 163 private static final class Key2 extends java.lang.ref.WeakReference<java.lang.Class<?>> { 184 private final java.lang.ref.WeakReference<java.lang.Class<?>> ref2; 222 java.lang.ref.WeakReference<java.lang.Class<?>>[] refs1, in equals() 223 java.lang.ref.WeakReference<java.lang.Class<?>>[] refs2) { in equals() 233 private final java.lang.ref.WeakReference<java.lang.Class<?>>[] refs; 236 refs = new java.lang.ref.WeakReference[0];
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceGetBenchmark.java | 20 import java.lang.ref.Reference; 21 import java.lang.ref.SoftReference; 22 import java.lang.ref.WeakReference;
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | Reference.java | 27 package java.lang.ref; 345 public static void reachabilityFence(Object ref) { in reachabilityFence() argument 351 SinkHolder.sink = ref; in reachabilityFence()
|