/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | EntryTest.java | 50 static final String v1 = "a"; field in EntryTest 58 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1() 60 assertEquals(v1, e.getValue()); in testConstructor1() 67 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2() 69 assertEquals(v1, s.getValue()); in testConstructor2() 76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() 79 assertEquals(v1, e.getValue()); in testConstructor3() 86 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4() 89 assertEquals(v1, s.getValue()); in testConstructor4() 97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() [all …]
|
D | CompletableFutureTest.java | 250 for (Item v1 : new Item[] { itemOne, null }) 254 assertTrue(f.complete(v1)); 255 assertFalse(f.complete(v1)); 256 checkCompletedNormally(f, v1); 313 for (Item v1 : new Item[] { itemOne, null }) 319 assertTrue(f.complete(v1)); 333 f.obtrudeValue(v1); 334 checkCompletedNormally(f, v1); 339 assertFalse(f.complete(v1)); 348 for (Item v1 : new Item[] { itemOne, null }) [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | EntryTest.java | 27 static final String v1 = "a"; field in EntryTest 35 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1() 37 assertEquals(v1, e.getValue()); in testConstructor1() 44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2() 46 assertEquals(v1, s.getValue()); in testConstructor2() 53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() 56 assertEquals(v1, e.getValue()); in testConstructor3() 63 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4() 66 assertEquals(v1, s.getValue()); in testConstructor4() 74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() [all …]
|
D | CompletableFutureTest.java | 226 for (Integer v1 : new Integer[] { 1, null }) 230 assertTrue(f.complete(v1)); 231 assertFalse(f.complete(v1)); 232 checkCompletedNormally(f, v1); 289 for (Integer v1 : new Integer[] { 1, null }) 295 assertTrue(f.complete(v1)); 309 f.obtrudeValue(v1); 310 checkCompletedNormally(f, v1); 315 assertFalse(f.complete(v1)); 324 for (Integer v1 : new Integer[] { 1, null }) [all …]
|
/libcore/ojluni/src/test/java/util/Vector/ |
D | SimpleSerialization.java | 48 final Vector<String> v1 = new Vector<>(); in main() local 50 v1.add("entry1"); in main() 51 v1.add("entry2"); in main() 56 oos.writeObject(v1); in main() 66 if (false == v1.equals(deserializedObject)) { in main() 67 throw new RuntimeException(getFailureText(v1, deserializedObject)); in main()
|
D | SerializationDeadlock.java | 51 final Vector<Object> v1 = new Vector<>(); in main() local 56 v1.add(testStart); in main() 57 v1.add(v2); in main() 59 v2.add(v1); in main() 62 final TestThread t1 = new TestThread(v1, testEnd); in main()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 1352 static <K, V> Map<K, V> of(K k1, V v1) { in of() argument 1353 return new ImmutableCollections.Map1<>(k1, v1); in of() 1372 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2) { in of() argument 1373 return new ImmutableCollections.MapN<>(k1, v1, k2, v2); in of() 1394 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) { in of() argument 1395 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3); in of() 1418 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { in of() argument 1419 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4); in of() 1444 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) { in of() argument 1445 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); in of() [all …]
|
D | Random.java | 542 double v1, v2, s; in nextGaussian() local 544 v1 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian() 546 s = v1 * v1 + v2 * v2; in nextGaussian() 551 return v1 * multiplier; in nextGaussian()
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | Map.annotated.java | 84 public static <K, V> java.util.Map<K,V> of(K k1, V v1) { throw new RuntimeException("Stub!"); } in of() argument 86 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2) { throw new RuntimeException("St… in of() argument 88 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3) { throw new RuntimeE… in of() argument 90 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { throw … in of() argument 92 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument 94 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument 96 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument 98 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument 100 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument 102 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
|
/libcore/luni/src/test/java/libcore/xml/ |
D | KxmlPullParserDtdTest.java | 20 import org.xmlpull.v1.XmlPullParser; 21 import org.xmlpull.v1.XmlPullParserException;
|
D | XmlPullParserFactoryTest.java | 34 import org.xmlpull.v1.XmlPullParser; 35 import org.xmlpull.v1.XmlPullParserException; 36 import org.xmlpull.v1.XmlPullParserFactory; 37 import org.xmlpull.v1.XmlSerializer;
|
D | KxmlPullParserTest.java | 20 import org.xmlpull.v1.XmlPullParser;
|
D | XmlToSax2DriverTest.java | 34 import org.xmlpull.v1.XmlPullParser; 35 import org.xmlpull.v1.XmlPullParserException; 36 import org.xmlpull.v1.XmlPullParserFactory; 37 import org.xmlpull.v1.sax2.Driver;
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | RoundTests.java | 114 for (float v1 : new float[]{1 << 23, 1 << 24}) { in testUnityULPCases() 116 float value = (v1 + k) * sign; in testUnityULPCases() 124 for (double v1 : new double[]{1L << 52, 1L << 53}) { in testUnityULPCases() 126 double value = (v1 + k) * sign; in testUnityULPCases()
|
/libcore/luni/src/main/java/libcore/util/ |
D | XmlObjectFactory.java | 27 import org.xmlpull.v1.XmlPullParser; 28 import org.xmlpull.v1.XmlSerializer;
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ListDefaultMethodTester.java | 45 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
|
D | MapDefaultMethodTester.java | 407 assertEquals(10.0, m.merge(1, 10.0, (v1, v2) -> v2)); in test_merge() 412 assertEquals(25.0, m.merge(1, 15.0, (v1, v2) -> v1 + v2)); in test_merge() 428 assertEquals(15.0, m.merge(null, 15.0, (v1, v2) -> v2)); in test_merge() 432 m.merge(null, 15.0, (v1, v2) -> v2); in test_merge()
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FDBigInteger.java | 292 int v1 = (int) (value >>> 32); in valueOfMulPow52() local 301 carry = (v1 & LONG_MASK) * pow5 + carry; in valueOfMulPow52() 302 v1 = (int) carry; in valueOfMulPow52() 305 return new FDBigInteger(new int[]{v0, v1, v2}, wordcount); in valueOfMulPow52() 309 (v1 << bitcount) | (v0 >>> (32 - bitcount)), in valueOfMulPow52() 310 (v2 << bitcount) | (v1 >>> (32 - bitcount)), in valueOfMulPow52() 317 if (v1 == 0) { in valueOfMulPow52() 322 mult(pow5.data, pow5.nWords, v0, v1, r); in valueOfMulPow52() 328 return new FDBigInteger(new int[]{v0, v1}, wordcount); in valueOfMulPow52() 332 (v1 << bitcount) | (v0 >>> (32 - bitcount)), in valueOfMulPow52() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | XmlEntitiesBenchmark.java | 25 import org.xmlpull.v1.XmlPullParser; 26 import org.xmlpull.v1.XmlPullParserFactory;
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Map.annotated.java | 86 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1) { throw new Runtime… in of() argument 88 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 90 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 92 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 94 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 96 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 98 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 100 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 102 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument 104 …ore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNu… in of() argument
|
/libcore/ojluni/src/test/java/util/Map/ |
D | EntryComparators.java | 45 private <K, V> void assertPairComparison(K k1, V v1, K k2, V v2, in assertPairComparison() argument 48 final Map.Entry<K, V> p11 = new AbstractMap.SimpleImmutableEntry<>(k1, v1); in assertPairComparison() 50 final Map.Entry<K, V> p21 = new AbstractMap.SimpleImmutableEntry<>(k2, v1); in assertPairComparison()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 265 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { in cmp() argument 266 int result = FileTime.from(v1, u1).compareTo(FileTime.from(v2, u2)); in cmp() 277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in eq() argument 278 FileTime t1 = FileTime.from(v1, u1); in eq() 308 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in neq() argument 309 FileTime t1 = FileTime.from(v1, u1); in neq()
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserException.java | 4 package org.xmlpull.v1;
|
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/ |
D | Driver.java | 4 package org.xmlpull.v1.sax2; 33 import org.xmlpull.v1.XmlPullParser; 34 import org.xmlpull.v1.XmlPullParserException; 35 import org.xmlpull.v1.XmlPullParserFactory;
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 326 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort() 386 l.sort((v1, v2) -> v1.compareTo(v2)); in test_subList_sort()
|