/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 1323 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2) { in of() argument 1324 return new ImmutableCollections.MapN<>(k1, v1, k2, v2); in of() 1345 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) { in of() argument 1346 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3); in of() 1369 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 1370 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4); in of() 1395 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 1396 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); in of() 1423 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 1425 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, in of() [all …]
|
D | Random.java | 589 double v1, v2, s; in nextGaussian() local 592 v2 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian() 593 s = v1 * v1 + v2 * v2; in nextGaussian() 596 nextNextGaussian = v2 * multiplier; in nextGaussian()
|
D | WeakHashMap.java | 742 Object v2 = e.getValue(); in equals() local 743 if (v1 == v2 || (v1 != null && v1.equals(v2))) in equals()
|
D | GregorianCalendar.java | 1590 int v2 = gc.getActualMaximum(field); in getMaximum() local 1591 return Math.max(MAX_VALUES[field], Math.max(v1, v2)); in getMaximum() 1662 int v2 = gc.getActualMaximum(field); in getLeastMaximum() local 1663 return Math.min(LEAST_MAX_VALUES[field], Math.min(v1, v2)); in getLeastMaximum()
|
D | Collections.java | 3767 return m.merge(key, value, (v1, v2) -> { 3768 V newValue = remappingFunction.apply(v1, v2);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | EntryTest.java | 29 static final String v2 = "b"; field in EntryTest 95 e = new AbstractMap.SimpleEntry(k1, v2); in testNotEquals() 97 e = new AbstractMap.SimpleEntry(k2, v2); in testNotEquals() 103 s = new AbstractMap.SimpleImmutableEntry(k1, v2); in testNotEquals() 105 s = new AbstractMap.SimpleImmutableEntry(k2, v2); in testNotEquals()
|
D | CompletableFutureTest.java | 1607 for (Integer v2 : new Integer[] { 2, null }) in testThenCombine_normalCompletion() 1616 final Integer w1 = fFirst ? v1 : v2; in testThenCombine_normalCompletion() 1617 final Integer w2 = !fFirst ? v1 : v2; in testThenCombine_normalCompletion() 1633 checkCompletedNormally(h0, subtract(v1, v2)); in testThenCombine_normalCompletion() 1634 checkCompletedNormally(h2, subtract(v1, v2)); in testThenCombine_normalCompletion() 1635 checkCompletedNormally(h4, subtract(v1, v2)); in testThenCombine_normalCompletion() 1636 rs[0].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1637 rs[2].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1638 rs[4].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1641 checkCompletedNormally(g, v2); in testThenCombine_normalCompletion() [all …]
|
D | ConcurrentHashMap8Test.java | 338 long v2 = adder.sum(); in testKeySetSpliterator() local 339 assertEquals(v + v2, 15); in testKeySetSpliterator()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | EntryTest.java | 52 static final String v2 = "b"; field in EntryTest 118 e = new AbstractMap.SimpleEntry(k1, v2); in testNotEquals() 120 e = new AbstractMap.SimpleEntry(k2, v2); in testNotEquals() 126 s = new AbstractMap.SimpleImmutableEntry(k1, v2); in testNotEquals() 128 s = new AbstractMap.SimpleImmutableEntry(k2, v2); in testNotEquals()
|
D | CompletableFutureTest.java | 1670 for (Integer v2 : new Integer[] { 2, null }) in testThenCombine_normalCompletion() 1679 final Integer w1 = fFirst ? v1 : v2; in testThenCombine_normalCompletion() 1680 final Integer w2 = !fFirst ? v1 : v2; in testThenCombine_normalCompletion() 1696 checkCompletedNormally(h0, subtract(v1, v2)); in testThenCombine_normalCompletion() 1697 checkCompletedNormally(h2, subtract(v1, v2)); in testThenCombine_normalCompletion() 1698 checkCompletedNormally(h4, subtract(v1, v2)); in testThenCombine_normalCompletion() 1699 rs[0].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1700 rs[2].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1701 rs[4].assertValue(subtract(v1, v2)); in testThenCombine_normalCompletion() 1704 checkCompletedNormally(g, v2); in testThenCombine_normalCompletion() [all …]
|
D | ConcurrentHashMap8Test.java | 363 long v2 = adder.sum(); in testKeySetSpliterator() local 364 assertEquals(v + v2, 15); in testKeySetSpliterator()
|
/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() 271 static void cmp(Instant ins, long v2, TimeUnit u2, int expected) { in cmp() argument 272 int result = FileTime.from(ins).compareTo(FileTime.from(v2, u2)); in cmp() 277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in eq() argument 279 FileTime t2 = FileTime.from(v2, u2); in eq() 286 static void eq(Instant ins, long v2, TimeUnit u2) { in eq() argument 288 FileTime t2 = FileTime.from(v2, u2); in eq() 308 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in neq() argument 310 FileTime t2 = FileTime.from(v2, u2); in neq() [all …]
|
/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()
|
D | CollectionsTest.java | 1047 assertThrowsCce(() -> { map.merge(new Object(), presentValue, (v1, v2) -> presentValue); }); in check_map_isChecked() 1048 assertThrowsCce(() -> { map.merge(presentKey, presentValue, (v1, v2) -> new Object()); }); in check_map_isChecked() 1051 map.merge(absentKey, absentValue, (v1, v2) -> new Object()); in check_map_isChecked() 1620 checkedMap2.merge(1, A_STRING, (v1, v2) -> NOT_A_STRING); in test_CheckedMap_merge() 1625 private static<K,V> Map<K, V> createMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { in createMap() argument 1628 result.put(k2, v2); in createMap()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Map.annotated.java | 88 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2) { throw new Runtime… in of() argument 90 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 92 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 94 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 96 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 98 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 100 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 102 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument 104 …ore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNull V v2, @libcore.util.NonNu… in of() argument
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 451 double v1, v2, s; in nextGaussian() local 454 v2 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian() 455 s = v1 * v1 + v2 * v2; in nextGaussian() 458 nextLocalGaussian.set(new Double(v2 * multiplier)); in nextGaussian()
|
/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()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 983 BigInteger v = ONE; BigInteger v2; 988 v2 = v.square().add(d.multiply(u.square())).mod(n); 989 if (v2.testBit(0)) 990 v2 = v2.subtract(n); 992 v2 = v2.shiftRight(1); 994 u = u2; v = v2; 1001 v2 = v.add(d.multiply(u)).mod(n); 1002 if (v2.testBit(0)) 1003 v2 = v2.subtract(n); 1004 v2 = v2.shiftRight(1); [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FDBigInteger.java | 303 int v2 = (int) (carry >>> 32); in valueOfMulPow52() local 305 return new FDBigInteger(new int[]{v0, v1, v2}, wordcount); in valueOfMulPow52() 310 (v2 << bitcount) | (v1 >>> (32 - bitcount)), in valueOfMulPow52() 311 v2 >>> (32 - bitcount) in valueOfMulPow52()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 90 jint v2 = get_unaligned<jint>(src++); in swapLongs() local 91 put_unaligned<jint>(dst++, bswap_32(v2)); in swapLongs()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 722 byte v2[] = ((UnixPath) other).path; in compareTo() 727 int c2 = v2[k] & 0xff; in compareTo()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 1036 char v2[] = sb.getValue(); in nonSyncContentEquals() local 1042 if (charAt(i) != v2[i]) { in nonSyncContentEquals()
|