/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicMarkableReference.java | 52 private static class Pair<T> { class in AtomicMarkableReference 55 private Pair(T reference, boolean mark) { in Pair() method in AtomicMarkableReference.Pair 59 static <T> Pair<T> of(T reference, boolean mark) { in of() 60 return new Pair<T>(reference, mark); in of() 64 private volatile Pair<V> pair; 74 pair = Pair.of(initialRef, initialMark); in AtomicMarkableReference() 104 Pair<V> pair = this.pair; in get() 149 Pair<V> current = pair; in compareAndSet() 155 casPair(current, Pair.of(newReference, newMark))); in compareAndSet() 165 Pair<V> current = pair; in set() [all …]
|
D | AtomicStampedReference.java | 52 private static class Pair<T> { class in AtomicStampedReference 55 private Pair(T reference, int stamp) { in Pair() method in AtomicStampedReference.Pair 59 static <T> Pair<T> of(T reference, int stamp) { in of() 60 return new Pair<T>(reference, stamp); in of() 64 private volatile Pair<V> pair; 74 pair = Pair.of(initialRef, initialStamp); in AtomicStampedReference() 104 Pair<V> pair = this.pair; in get() 149 Pair<V> current = pair; in compareAndSet() 155 casPair(current, Pair.of(newReference, newStamp))); in compareAndSet() 165 Pair<V> current = pair; in set() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 938 new Pair("class2.algorithm2", "impl2") /* operationParameters */, in testHashMapOperations() 967 new Pair("class1.algorithm1", CONCAT), in testHashMapOperations() 973 new Pair("class1.algorithm1", "impl2"), in testHashMapOperations() 980 new Pair("class2.algorithm2", "impl2"), in testHashMapOperations() 986 new Pair("class2.algorithm2", "impl2"), in testHashMapOperations() 992 new Pair("class1.algorithm1", CONCAT), in testHashMapOperations() 998 new Pair("class2.algorithm2", CONCAT), in testHashMapOperations() 1005 new Pair("class2.algorithm2", TO_UPPER_CASE), in testHashMapOperations() 1011 new Pair("class1.algorithm1", TO_UPPER_CASE), in testHashMapOperations() 1018 new Pair("class1.algorithm1", "impl3"), in testHashMapOperations() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldGenericReflectionCornerCases.java | 33 static class Pair<T, S> {} class in OldGenericReflectionCornerCases 36 void wildcardEquality(Pair<? extends T, ? extends T> param) {} in wildcardEquality() 42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class); in testWildcardEquality() 79 void wildcardUnEquality(Pair<? extends T, ? super T> param) {} in wildcardUnEquality() 85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class); in testWildcardUnEquality() 121 void multipleBoundedWildcardUnEquality(Pair<? extends T, ? super T> param) {} in multipleBoundedWildcardUnEquality() 130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class); in testMultipleBoundedWildcardUnEquality() 176 void multipleBoundedWildcardEquality(Pair<? extends T, ? extends T> param) {} in multipleBoundedWildcardEquality() 182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair.class); in testMultipleBoundedWildcard()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestReducedParser.java | 273 Pair strict, Pair lenient) { in test_parseStrict() 288 Pair strict, Pair lenient) { in test_parseStrict_baseDate() 306 Pair strict, Pair lenient) { in test_parseLenient() 321 Pair strict, Pair lenient) { in test_parseLenient_baseDate() 498 private static Pair strict(int parseLen, Integer parseVal) { in strict() 499 return new Pair(parseLen, parseVal, STRICT); in strict() 501 private static Pair lenient(int parseLen, Integer parseVal) { in lenient() 502 return new Pair(parseLen, parseVal, LENIENT); in lenient() 505 private static class Pair { class in TestReducedParser 509 public Pair(int parseLen, Integer parseVal, boolean strict) { in Pair() method in TestReducedParser.Pair
|