/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicMarkableReference.java | 53 final T reference; field in AtomicMarkableReference.Pair 55 private Pair(T reference, boolean mark) { in Pair() argument 56 this.reference = reference; in Pair() 59 static <T> Pair<T> of(T reference, boolean mark) { in of() argument 60 return new Pair<T>(reference, mark); in of() 83 return pair.reference; in getReference() 106 return pair.reference; in get() 151 expectedReference == current.reference && in compareAndSet() 153 ((newReference == current.reference && in compareAndSet() 166 if (newReference != current.reference || newMark != current.mark) in set() [all …]
|
D | AtomicStampedReference.java | 53 final T reference; field in AtomicStampedReference.Pair 55 private Pair(T reference, int stamp) { in Pair() argument 56 this.reference = reference; in Pair() 59 static <T> Pair<T> of(T reference, int stamp) { in of() argument 60 return new Pair<T>(reference, stamp); in of() 83 return pair.reference; in getReference() 106 return pair.reference; in get() 151 expectedReference == current.reference && in compareAndSet() 153 ((newReference == current.reference && in compareAndSet() 166 if (newReference != current.reference || newStamp != current.stamp) in set() [all …]
|
/libcore/luni/src/main/java/java/lang/ref/ |
D | FinalizerReference.java | 61 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue); in add() local 63 reference.prev = null; in add() 64 reference.next = head; in add() 66 head.prev = reference; in add() 68 head = reference; in add() 73 public static void remove(FinalizerReference<?> reference) { in remove() argument 75 FinalizerReference<?> next = reference.next; in remove() 76 FinalizerReference<?> prev = reference.prev; in remove() 77 reference.next = null; in remove() 78 reference.prev = null; in remove()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 210 public void test_plusWeeks_symmetry(LocalDate reference) { in test_plusWeeks_symmetry() argument 212 LocalDate t = reference.plusWeeks(weeks).plusWeeks(-weeks); in test_plusWeeks_symmetry() 213 assertEquals(t, reference); in test_plusWeeks_symmetry() 215 t = reference.plusWeeks(-weeks).plusWeeks(weeks); in test_plusWeeks_symmetry() 216 assertEquals(t, reference); in test_plusWeeks_symmetry() 262 public void test_plusDays_symmetry(LocalDate reference) { in test_plusDays_symmetry() argument 264 LocalDate t = reference.plusDays(days).plusDays(-days); in test_plusDays_symmetry() 265 assertEquals(t, reference); in test_plusDays_symmetry() 267 t = reference.plusDays(-days).plusDays(days); in test_plusDays_symmetry() 268 assertEquals(t, reference); in test_plusDays_symmetry() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalTest.java | 77 final AtomicReference<String> reference = new AtomicReference<>(); in testIfPresent() local 80 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent() 81 assertSame(foo, reference.get()); in testIfPresent() 102 final AtomicReference<String> reference = new AtomicReference<>(); in testFilter() local 103 optionalFoo.filter(s -> { reference.set(s); return true; }); in testFilter() 104 assertSame(foo, reference.get()); in testFilter() 116 final AtomicReference<String> reference = new AtomicReference<>(); in testMap() local 117 Function<String, String> identity = (String s) -> { reference.set(s); return s; }; in testMap() 122 assertSame(foo, reference.get()); in testMap() 137 final AtomicReference<String> reference = new AtomicReference<>(); in testFlatMap() local [all …]
|
D | OptionalLongTest.java | 53 final AtomicLong reference = new AtomicLong(); in testIfPresent() local 54 LongConsumer recorder = (long value) -> reference.set(value); in testIfPresent() 56 assertEquals(56, reference.get()); in testIfPresent()
|
D | OptionalIntTest.java | 53 final AtomicInteger reference = new AtomicInteger(); in testIfPresent() local 54 IntConsumer recorder = value -> reference.set(value);; in testIfPresent() 56 assertEquals(56, reference.get()); in testIfPresent()
|
D | OptionalDoubleTest.java | 55 final AtomicReference<Double> reference = new AtomicReference<>(); in testIfPresent() local 56 DoubleConsumer recorder = value -> reference.set(value); in testIfPresent() 58 assertEquals(56.0, reference.get().doubleValue()); in testIfPresent()
|
D | OldCollectionsTest.java | 47 public void assertDeserialized(Serializable reference, Serializable test) { 48 assertSame(reference, test);
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | ReferenceQueue.java | 99 boolean isEnqueued(Reference<? extends T> reference) { in isEnqueued() argument 101 return reference.queueNext != null && reference.queueNext != sQueueNextUnenqueued; in isEnqueued() 112 boolean enqueue(Reference<? extends T> reference) { in enqueue() argument 114 if (enqueueLocked(reference)) { in enqueue()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 182 public void setReference(int idx, Object reference) { in setReference() argument 188 if (reference != null && !ptypes[idx].isInstance(reference)) { in setReference() 192 references[idx] = reference; in setReference() 241 public void setReturnValueTo(Object reference) { in setReturnValueTo() argument 247 if (reference != null && !returnType.isInstance(reference)) { in setReturnValueTo() 251 references[references.length - 1] = reference; in setReturnValueTo()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | HttpRetryExceptionTest.java | 36 public void assertDeserialized(Serializable reference, Serializable test) { 38 HttpRetryException ref = (HttpRetryException) reference;
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ref/ |
D | ReferenceQueue.java | 42 boolean isEnqueued(java.lang.ref.Reference<? extends T> reference) { in isEnqueued() argument 46 boolean enqueue(java.lang.ref.Reference<? extends T> reference) { in enqueue() argument
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | HeapCategorization.java | 314 for (AhatInstance reference : instance.getHardReverseReferences()) { in isOwnedByClassMatching() 315 if (!visited.contains(reference)) { in isOwnedByClassMatching() 316 visited.add(reference); in isOwnedByClassMatching() 317 queue.add(reference); in isOwnedByClassMatching()
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 284 private void doFinalize(FinalizerReference<?> reference) { in doFinalize() argument 285 FinalizerReference.remove(reference); in doFinalize() 286 Object object = reference.get(); in doFinalize() 287 reference.clear(); in doFinalize()
|
/libcore/luni/src/test/resources/out_hb/ |
D | staff.out | 13 This is an adjacent CDATASection with a reference to a tab &tab;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalDateTime.java | 1562 public void test_plusWeeks_symmetry(LocalDateTime reference) { 1564 LocalDateTime t = reference.plusWeeks(weeks).plusWeeks(-weeks); 1565 assertEquals(t, reference); 1567 t = reference.plusWeeks(-weeks).plusWeeks(weeks); 1568 assertEquals(t, reference); 1672 public void test_plusDays_symmetry(LocalDateTime reference) { 1674 LocalDateTime t = reference.plusDays(days).plusDays(-days); 1675 assertEquals(t, reference); 1677 t = reference.plusDays(-days).plusDays(days); 1678 assertEquals(t, reference); [all …]
|
/libcore/luni/src/test/resources/out_dh/ |
D | staff.out | 13 This is an adjacent CDATASection with a reference to a tab &tab;
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 1295 Reference<? extends T> reference; in expungeStaleElements() local 1296 while ((reference = stale.poll()) != null) { in expungeStaleElements() 1297 map.remove(reference); in expungeStaleElements()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 49 public void assertDeserialized(Serializable reference, Serializable test) { 50 assertSame(reference, test);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/ |
D | README.txt | 16 For reference, MetadataVariations started out as:
|