/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicReferenceTest.java | 49 ai.set(two); in testGetSet() 50 assertSame(two, ai.get()); in testGetSet() 61 ai.lazySet(two); in testGetLazySet() 62 assertSame(two, ai.get()); in testGetLazySet() 72 assertTrue(ai.compareAndSet(one, two)); in testCompareAndSet() 73 assertTrue(ai.compareAndSet(two, m4)); in testCompareAndSet() 89 while (!ai.compareAndSet(two, three)) in testCompareAndSetInMultipleThreads() 94 assertTrue(ai.compareAndSet(one, two)); in testCompareAndSetInMultipleThreads() 106 do {} while (!ai.weakCompareAndSet(one, two)); in testWeakCompareAndSet() 107 do {} while (!ai.weakCompareAndSet(two, m4)); in testWeakCompareAndSet() [all …]
|
D | AtomicMarkableReferenceTest.java | 49 ai.set(two, false); in testGetSet() 50 assertSame(two, ai.getReference()); in testGetSet() 52 assertSame(two, ai.get(mark)); in testGetSet() 85 assertTrue(ai.compareAndSet(one, two, false, false)); in testCompareAndSet() 86 assertSame(two, ai.get(mark)); in testCompareAndSet() 89 assertTrue(ai.compareAndSet(two, m3, false, true)); in testCompareAndSet() 93 assertFalse(ai.compareAndSet(two, m3, true, true)); in testCompareAndSet() 106 while (!ai.compareAndSet(two, three, false, false)) in testCompareAndSetInMultipleThreads() 111 assertTrue(ai.compareAndSet(one, two, false, false)); in testCompareAndSetInMultipleThreads() 149 do {} while (!ai.weakCompareAndSet(one, two, false, false)); in testWeakCompareAndSet() [all …]
|
D | AtomicStampedReferenceTest.java | 49 ai.set(two, 0); in testGetSet() 50 assertSame(two, ai.getReference()); in testGetSet() 52 assertSame(two, ai.get(mark)); in testGetSet() 85 assertTrue(ai.compareAndSet(one, two, 0, 0)); in testCompareAndSet() 86 assertSame(two, ai.get(mark)); in testCompareAndSet() 89 assertTrue(ai.compareAndSet(two, m3, 0, 1)); in testCompareAndSet() 93 assertFalse(ai.compareAndSet(two, m3, 1, 1)); in testCompareAndSet() 106 while (!ai.compareAndSet(two, three, 0, 0)) in testCompareAndSetInMultipleThreads() 111 assertTrue(ai.compareAndSet(one, two, 0, 0)); in testCompareAndSetInMultipleThreads() 149 do {} while (!ai.weakCompareAndSet(one, two, 0, 0)); in testWeakCompareAndSet() [all …]
|
D | AtomicReferenceFieldUpdaterTest.java | 52 assertTrue(a.compareAndSet(this, one, two)); in checkCompareAndSetProtectedSub() 53 assertTrue(a.compareAndSet(this, two, m4)); in checkCompareAndSetProtectedSub() 69 assertTrue(a.compareAndSet(obj, one, two)); in checkPackageAccess() 70 assertSame(two, a.get(obj)); in checkPackageAccess() 158 a.set(this, two); in testGetSet() 159 assertSame(two, a.get(this)); in testGetSet() 172 a.lazySet(this, two); in testGetLazySet() 173 assertSame(two, a.get(this)); in testGetLazySet() 185 assertTrue(a.compareAndSet(this, one, two)); in testCompareAndSet() 186 assertTrue(a.compareAndSet(this, two, m4)); in testCompareAndSet() [all …]
|
D | ExchangerTest.java | 39 assertSame(one, e.exchange(two)); in testExchange() 40 assertSame(two, e.exchange(one)); in testExchange() 44 assertSame(two, e.exchange(one)); in testExchange() 45 assertSame(one, e.exchange(two)); in testExchange() 59 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 60 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 64 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 65 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 133 assertSame(two, e.exchange(one)); in testReplacementAfterExchange() 135 e.exchange(two); in testReplacementAfterExchange() [all …]
|
D | AtomicReferenceArrayTest.java | 53 Integer[] a = { two, one, three, four, seven }; in testConstructor2() 64 Integer[] a = { two, one, three, four, seven }; in testConstructorSubClassArray() 112 aa.set(i, two); in testGetSet() 113 assertSame(two, aa.get(i)); in testGetSet() 127 aa.lazySet(i, two); in testGetLazySet() 128 assertSame(two, aa.get(i)); in testGetLazySet() 141 assertTrue(aa.compareAndSet(i, one, two)); in testCompareAndSet() 142 assertTrue(aa.compareAndSet(i, two, m4)); in testCompareAndSet() 160 while (!a.compareAndSet(0, two, three)) in testCompareAndSetInMultipleThreads() 165 assertTrue(a.compareAndSet(0, one, two)); in testCompareAndSetInMultipleThreads() [all …]
|
D | ThreadLocalTest.java | 47 tl.set(two); in testRemove() 48 assertSame(tl.get(), two); in testRemove() local 59 itl.set(two); in testRemoveITL() 60 assertSame(itl.get(), two); in testRemoveITL() local
|
D | TreeMapTest.java | 44 map.put(two, "B"); in map5() 171 assertTrue(s.contains(two)); in testKeySet() 279 (e.getKey().equals(two) && e.getValue().equals("B")) || 298 (e.getKey().equals(two) && e.getValue().equals("B")) || 342 assertTrue(empty.containsKey(two)); 364 assertEquals(two, e1.getKey()); 436 assertEquals(two, e1); 511 assertEquals(two, e.getKey()); 545 map.remove(two); 632 NavigableMap sm = map.subMap(two, true, four, false); [all …]
|
D | ConcurrentSkipListMapTest.java | 45 map.put(two, "B"); in map5() 172 assertTrue(s.contains(two)); in testKeySet() 296 (e.getKey().equals(two) && e.getValue().equals("B")) || 315 (e.getKey().equals(two) && e.getValue().equals("B")) || 359 assertTrue(empty.containsKey(two)); 451 assertEquals(two, e1.getKey()); 524 assertEquals(two, e.getKey()); 555 assertEquals(two, e1); 630 assertEquals(two, e.getKey()); 664 map.remove(two); [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AtomicReferenceTest.java | 72 ai.set(two); in testGetSet() 73 assertSame(two, ai.get()); in testGetSet() 84 ai.lazySet(two); in testGetLazySet() 85 assertSame(two, ai.get()); in testGetLazySet() 95 assertTrue(ai.compareAndSet(one, two)); in testCompareAndSet() 96 assertTrue(ai.compareAndSet(two, m4)); in testCompareAndSet() 112 while (!ai.compareAndSet(two, three)) in testCompareAndSetInMultipleThreads() 117 assertTrue(ai.compareAndSet(one, two)); in testCompareAndSetInMultipleThreads() 129 do {} while (!ai.weakCompareAndSet(one, two)); in testWeakCompareAndSet() 130 do {} while (!ai.weakCompareAndSet(two, m4)); in testWeakCompareAndSet() [all …]
|
D | AtomicMarkableReferenceTest.java | 72 ai.set(two, false); in testGetSet() 73 assertSame(two, ai.getReference()); in testGetSet() 75 assertSame(two, ai.get(mark)); in testGetSet() 108 assertTrue(ai.compareAndSet(one, two, false, false)); in testCompareAndSet() 109 assertSame(two, ai.get(mark)); in testCompareAndSet() 112 assertTrue(ai.compareAndSet(two, m3, false, true)); in testCompareAndSet() 116 assertFalse(ai.compareAndSet(two, m3, true, true)); in testCompareAndSet() 129 while (!ai.compareAndSet(two, three, false, false)) in testCompareAndSetInMultipleThreads() 134 assertTrue(ai.compareAndSet(one, two, false, false)); in testCompareAndSetInMultipleThreads() 172 do {} while (!ai.weakCompareAndSet(one, two, false, false)); in testWeakCompareAndSet() [all …]
|
D | AtomicStampedReferenceTest.java | 72 ai.set(two, 0); in testGetSet() 73 assertSame(two, ai.getReference()); in testGetSet() 75 assertSame(two, ai.get(mark)); in testGetSet() 108 assertTrue(ai.compareAndSet(one, two, 0, 0)); in testCompareAndSet() 109 assertSame(two, ai.get(mark)); in testCompareAndSet() 112 assertTrue(ai.compareAndSet(two, m3, 0, 1)); in testCompareAndSet() 116 assertFalse(ai.compareAndSet(two, m3, 1, 1)); in testCompareAndSet() 129 while (!ai.compareAndSet(two, three, 0, 0)) in testCompareAndSetInMultipleThreads() 134 assertTrue(ai.compareAndSet(one, two, 0, 0)); in testCompareAndSetInMultipleThreads() 172 do {} while (!ai.weakCompareAndSet(one, two, 0, 0)); in testWeakCompareAndSet() [all …]
|
D | AtomicReferenceFieldUpdaterTest.java | 75 assertTrue(a.compareAndSet(this, one, two)); in checkCompareAndSetProtectedSub() 76 assertTrue(a.compareAndSet(this, two, m4)); in checkCompareAndSetProtectedSub() 92 assertTrue(a.compareAndSet(obj, one, two)); in checkPackageAccess() 93 assertSame(two, a.get(obj)); in checkPackageAccess() 181 a.set(this, two); in testGetSet() 182 assertSame(two, a.get(this)); in testGetSet() 195 a.lazySet(this, two); in testGetLazySet() 196 assertSame(two, a.get(this)); in testGetLazySet() 208 assertTrue(a.compareAndSet(this, one, two)); in testCompareAndSet() 209 assertTrue(a.compareAndSet(this, two, m4)); in testCompareAndSet() [all …]
|
D | ExchangerTest.java | 62 assertSame(one, e.exchange(two)); in testExchange() 63 assertSame(two, e.exchange(one)); in testExchange() 67 assertSame(two, e.exchange(one)); in testExchange() 68 assertSame(one, e.exchange(two)); in testExchange() 82 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 83 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 87 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 88 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 156 assertSame(two, e.exchange(one)); in testReplacementAfterExchange() 158 e.exchange(two); in testReplacementAfterExchange() [all …]
|
D | AtomicReferenceArrayTest.java | 76 Integer[] a = { two, one, three, four, seven }; in testConstructor2() 87 Integer[] a = { two, one, three, four, seven }; in testConstructorSubClassArray() 135 aa.set(i, two); in testGetSet() 136 assertSame(two, aa.get(i)); in testGetSet() 150 aa.lazySet(i, two); in testGetLazySet() 151 assertSame(two, aa.get(i)); in testGetLazySet() 164 assertTrue(aa.compareAndSet(i, one, two)); in testCompareAndSet() 165 assertTrue(aa.compareAndSet(i, two, m4)); in testCompareAndSet() 183 while (!a.compareAndSet(0, two, three)) in testCompareAndSetInMultipleThreads() 188 assertTrue(a.compareAndSet(0, one, two)); in testCompareAndSetInMultipleThreads() [all …]
|
D | ThreadLocalTest.java | 71 tl.set(two); in testRemove() 72 assertSame(tl.get(), two); in testRemove() local 83 itl.set(two); in testRemoveITL() 84 assertSame(itl.get(), two); in testRemoveITL() local
|
D | TreeMapTest.java | 67 map.put(two, "B"); in map5() 194 assertTrue(s.contains(two)); in testKeySet() 302 (e.getKey().equals(two) && e.getValue().equals("B")) || 321 (e.getKey().equals(two) && e.getValue().equals("B")) || 365 assertTrue(empty.containsKey(two)); 387 assertEquals(two, e1.getKey()); 459 assertEquals(two, e1); 534 assertEquals(two, e.getKey()); 568 map.remove(two); 655 NavigableMap sm = map.subMap(two, true, four, false); [all …]
|
D | ConcurrentSkipListMapTest.java | 68 map.put(two, "B"); in map5() 195 assertTrue(s.contains(two)); in testKeySet() 319 (e.getKey().equals(two) && e.getValue().equals("B")) || 338 (e.getKey().equals(two) && e.getValue().equals("B")) || 382 assertTrue(empty.containsKey(two)); 474 assertEquals(two, e1.getKey()); 547 assertEquals(two, e.getKey()); 578 assertEquals(two, e1); 653 assertEquals(two, e.getKey()); 687 map.remove(two); [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | TimestampTest.java | 69 Timestamp two = new Timestamp(now, cpath); in testEqualsObject() local 72 assertTrue(one.equals(two)); in testEqualsObject() 73 assertTrue(two.equals(one)); in testEqualsObject() 108 Timestamp two = new Timestamp(now, cpath); in testHashCode() local 113 assertTrue(one.hashCode() == two.hashCode()); in testHashCode() 115 assertTrue(two.hashCode() != three.hashCode()); in testHashCode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationTestClass.java | 105 public int two; field in SerializationTestClass.TestFieldsTwoPublic 116 private int two; field in SerializationTestClass.TestFieldsTwoPrivate 125 protected int two; field in SerializationTestClass.TestFieldsTwoProtected 134 static int two; field in SerializationTestClass.TestFieldsTwoStatic 143 final int two = 0; field in SerializationTestClass.TestFieldsTwoFinal 152 volatile int two; field in SerializationTestClass.TestFieldsTwoVolatile 161 transient int two; field in SerializationTestClass.TestFieldsTwoTransient
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 33 BigInteger two = new BigInteger("2", 10); field in BigIntegerTest 46 BigInteger twoToTheSeventy = two.pow(70); 106 .setBit(16).subtract(two))); in test_Constructor$B() 120 .setBit(16).subtract(two))); in test_ConstructorI$B() 123 .setBit(16).subtract(two).negate())); in test_ConstructorI$B() 227 assertTrue("Smaller number returned >= 0", one.compareTo(two) < 0); in test_compareToLjava_math_BigInteger() 228 assertTrue("Larger number returned >= 0", two.compareTo(one) > 0); in test_compareToLjava_math_BigInteger() 231 two.negate().compareTo(one) < 0); in test_compareToLjava_math_BigInteger() 240 assertTrue("Incorrect intValue for 2", two.intValue() == 2); in test_intValue() 249 assertTrue("Incorrect longValue for 2", two.longValue() == 2); in test_longValue() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | BiConsumerTest.java | 27 BiConsumer<String, StringBuilder> two = (s, t) -> t.append("two").append(s); in testAndThen() local 30 one.andThen(two).accept("z", sb); in testAndThen() 34 two.andThen(one).accept("z", sb); in testAndThen()
|
D | LongConsumerTest.java | 28 LongConsumer two = l -> sb.append("two:" + l); in testAndThen() local 30 one.andThen(two).accept(1L); in testAndThen()
|
D | IntConsumerTest.java | 28 IntConsumer two = i -> sb.append("two:" + i); in testAndThen() local 30 one.andThen(two).accept(1); in testAndThen()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ConcurrentModTest.java | 37 Double two = new Double(2.0); in testGet() local 41 al.add(two); in testGet() 81 Double two = new Double(2.0); in testSet() local 85 al.add(two); in testSet() 98 sub.set(1, two); in testSet() 111 Double two = new Double(2.0); in testAdd() local 115 al.add(two); in testAdd() 128 sub.add(1, two); in testAdd() 141 Double two = new Double(2.0); in testRemove() local 145 al.add(two); in testRemove() [all …]
|