/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/support/src/test/java/tests/util/ |
D | Pair.java | 27 public class Pair<F, S> { class 31 private Pair(F first, S second) { in Pair() method in Pair 42 public static <F, S> Pair<F, S> of(F first, S second) { in of() 43 return new Pair<F, S>(first, second); in of() 90 Pair other = (Pair) obj; in equals()
|
D | ForEachRunner.java | 44 public static <T> void runNamed(Callback<T> callback, Iterable<Pair<String, T>> namesAndValues) in runNamed() 46 for (Pair<String, T> nameAndValue : namesAndValues) { in runNamed()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 892 new Pair("class2.algorithm2", "impl2") /* operationParameters */, in testHashMapOperations() 921 new Pair("class1.algorithm1", CONCAT), in testHashMapOperations() 927 new Pair("class1.algorithm1", "impl2"), in testHashMapOperations() 934 new Pair("class2.algorithm2", "impl2"), in testHashMapOperations() 940 new Pair("class2.algorithm2", "impl2"), in testHashMapOperations() 946 new Pair("class1.algorithm1", CONCAT), in testHashMapOperations() 952 new Pair("class2.algorithm2", CONCAT), in testHashMapOperations() 959 new Pair("class2.algorithm2", TO_UPPER_CASE), in testHashMapOperations() 965 new Pair("class1.algorithm1", TO_UPPER_CASE), in testHashMapOperations() 972 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
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 120 import tests.util.Pair; 2202 private List<Pair<String, SSLSocketFactory>> getSSLSocketFactoriesToTest() in getSSLSocketFactoriesToTest() 2204 List<Pair<String, SSLSocketFactory>> result = in getSSLSocketFactoriesToTest() 2205 new ArrayList<Pair<String, SSLSocketFactory>>(); in getSSLSocketFactoriesToTest() 2206 result.add(Pair.of("default", (SSLSocketFactory) SSLSocketFactory.getDefault())); in getSSLSocketFactoriesToTest() 2213 result.add(Pair.of( in getSSLSocketFactoriesToTest()
|