/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicStampedReference.java | 56 final T reference; field in AtomicStampedReference.Pair 58 private Pair(T reference, int stamp) { in Pair() argument 59 this.reference = reference; in Pair() 62 static <T> Pair<T> of(T reference, int stamp) { in of() argument 63 return new Pair<T>(reference, stamp); in of() 86 return pair.reference; in getReference() 109 return pair.reference; in get() 152 expectedReference == current.reference && in compareAndSet() 154 ((newReference == current.reference && in compareAndSet() 167 if (newReference != current.reference || newStamp != current.stamp) in set() [all …]
|
D | AtomicMarkableReference.java | 56 final T reference; field in AtomicMarkableReference.Pair 58 private Pair(T reference, boolean mark) { in Pair() argument 59 this.reference = reference; in Pair() 62 static <T> Pair<T> of(T reference, boolean mark) { in of() argument 63 return new Pair<T>(reference, mark); in of() 86 return pair.reference; in getReference() 109 return pair.reference; in get() 152 expectedReference == current.reference && in compareAndSet() 154 ((newReference == current.reference && in compareAndSet() 167 if (newReference != current.reference || newMark != current.mark) 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/lang/invoke/VarHandles/ |
D | X-VarHandleTestMethodType.java.template | 135 checkCCE(() -> { // receiver reference class 142 check{#if[String]?CCE:WMTE}(() -> { // reference class 162 checkCCE(() -> { // receiver reference class 165 check{#if[String]?CCE:WMTE}(() -> { // value reference class 185 checkCCE(() -> { // receiver reference class 192 check{#if[String]?CCE:WMTE}(() -> { // reference class 212 checkCCE(() -> { // receiver reference class 215 check{#if[String]?CCE:WMTE}(() -> { // value reference class 235 checkCCE(() -> { // receiver reference class 242 check{#if[String]?CCE:WMTE}(() -> { // reference class [all …]
|
D | X-VarHandleTestAccess.java.template | 1872 checkASE(() -> { // receiver reference class 1877 checkASE(() -> { // receiver reference class 1882 checkASE(() -> { // receiver reference class 1887 checkASE(() -> { // receiver reference class 1892 checkASE(() -> { // receiver reference class 1897 checkASE(() -> { // receiver reference class 1902 checkASE(() -> { // receiver reference class 1907 checkASE(() -> { // receiver reference class 1912 checkASE(() -> { // receiver reference class 1917 checkASE(() -> { // receiver reference class [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 211 public void test_plusWeeks_symmetry(LocalDate reference) { in test_plusWeeks_symmetry() argument 213 LocalDate t = reference.plusWeeks(weeks).plusWeeks(-weeks); in test_plusWeeks_symmetry() 214 assertEquals(t, reference); in test_plusWeeks_symmetry() 216 t = reference.plusWeeks(-weeks).plusWeeks(weeks); in test_plusWeeks_symmetry() 217 assertEquals(t, reference); in test_plusWeeks_symmetry() 263 public void test_plusDays_symmetry(LocalDate reference) { in test_plusDays_symmetry() argument 265 LocalDate t = reference.plusDays(days).plusDays(-days); in test_plusDays_symmetry() 266 assertEquals(t, reference); in test_plusDays_symmetry() 268 t = reference.plusDays(-days).plusDays(days); in test_plusDays_symmetry() 269 assertEquals(t, reference); in test_plusDays_symmetry() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalTest.java | 78 final AtomicReference<String> reference = new AtomicReference<>(); in testIfPresent() local 81 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent() 82 assertSame(foo, reference.get()); in testIfPresent() 103 final AtomicReference<String> reference = new AtomicReference<>(); in testFilter() local 104 optionalFoo.filter(s -> { reference.set(s); return true; }); in testFilter() 105 assertSame(foo, reference.get()); in testFilter() 117 final AtomicReference<String> reference = new AtomicReference<>(); in testMap() local 118 Function<String, String> identity = (String s) -> { reference.set(s); return s; }; in testMap() 123 assertSame(foo, reference.get()); in testMap() 138 final AtomicReference<String> reference = new AtomicReference<>(); in testFlatMap() local [all …]
|
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 | OptionalLongTest.java | 58 final AtomicLong reference = new AtomicLong(); in testIfPresent() local 59 LongConsumer recorder = (long value) -> reference.set(value); in testIfPresent() 61 assertEquals(56, reference.get()); in testIfPresent()
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | ReferenceQueue.java | 106 boolean isEnqueued(Reference<? extends T> reference) { in isEnqueued() argument 108 return reference.queueNext != null && reference.queueNext != sQueueNextUnenqueued; in isEnqueued() 119 boolean enqueue(Reference<? extends T> reference) { in enqueue() argument 121 if (reference instanceof sun.misc.Cleaner cl) { in enqueue() 130 reference.queueNext = sQueueNextUnenqueued; in enqueue() 134 if (enqueueLocked(reference)) { in enqueue()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 205 public void setReference(int idx, Object reference) { in setReference() argument 210 if (reference != null && !ptypes[idx].isInstance(reference)) { in setReference() 214 references[referenceIndex] = reference; in setReference() 263 public void setReturnValueTo(Object reference) { in setReturnValueTo() argument 269 if (reference != null && !returnType.isInstance(reference)) { in setReturnValueTo() 273 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/ojluni/src/test/java/lang/Math/ |
D | MultiplicationTests.java | 71 private static boolean check(BiFunction<Long,Long,Long> reference, in check() argument 73 long p1 = reference.apply(x, y); in check()
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 365 private void doFinalize(FinalizerReference<?> reference) { in doFinalize() argument 366 FinalizerReference.remove(reference); in doFinalize() 367 Object object = reference.get(); in doFinalize() 368 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 | 1556 public void test_plusWeeks_symmetry(LocalDateTime reference) { 1558 LocalDateTime t = reference.plusWeeks(weeks).plusWeeks(-weeks); 1559 assertEquals(t, reference); 1561 t = reference.plusWeeks(-weeks).plusWeeks(weeks); 1562 assertEquals(t, reference); 1666 public void test_plusDays_symmetry(LocalDateTime reference) { 1668 LocalDateTime t = reference.plusDays(days).plusDays(-days); 1669 assertEquals(t, reference); 1671 t = reference.plusDays(-days).plusDays(days); 1672 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/test/java/math/BigInteger/ |
D | BigIntegerTest.java | 192 BigInteger reference = new BigInteger(2 + random.nextInt(336), 4, random); in constructor() local 194 byte[] refArray = reference.toByteArray(); in constructor() 203 Assert.assertEquals(twosComp.compareTo(reference), 0, in constructor() 209 Assert.assertEquals(signMag.compareTo(isNegative ? reference.negate() : reference), 0, in constructor()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 1367 Reference<? extends T> reference; 1368 while ((reference = stale.poll()) != null) { 1369 map.remove(reference);
|
/libcore/luni/src/test/java/libcore/java/lang/smali/ |
D | README.txt | 18 For reference, the classes started out as:
|
/libcore/tools/expected_upstream/ |
D | ojluni_merge_to_main.py | 242 repo.head.reference = head 496 repo.head.reference = master_head
|
/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);
|