/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ListDefaultMethodTester.java | 45 l.sort((v1, v2) -> v1.compareTo(v2));
|
H A D | MapDefaultMethodTester.java | 407 assertEquals(10.0, m.merge(1, 10.0, (v1, v2) -> v2)); 412 assertEquals(25.0, m.merge(1, 15.0, (v1, v2) -> v1 + v2)); 428 assertEquals(15.0, m.merge(null, 15.0, (v1, v2) -> v2)); 432 m.merge(null, 15.0, (v1, v2) -> v2);
|
H A D | CollectionsTest.java | 1072 assertThrowsCce(() -> { map.merge(new Object(), presentValue, (v1, v2) -> presentValue); }); 1073 assertThrowsCce(() -> { map.merge(presentKey, presentValue, (v1, v2) -> new Object()); }); 1076 map.merge(absentKey, absentValue, (v1, v2) -> new Object()); 1645 checkedMap2.merge(1, A_STRING, (v1, v2) -> NOT_A_STRING); 1650 private static<K,V> Map<K, V> createMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { argument 1653 result.put(k2, v2);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | EntryTest.java | 29 static final String v2 = "b"; field in class:EntryTest 95 e = new AbstractMap.SimpleEntry(k1, v2); 97 e = new AbstractMap.SimpleEntry(k2, v2); 103 s = new AbstractMap.SimpleImmutableEntry(k1, v2); 105 s = new AbstractMap.SimpleImmutableEntry(k2, v2);
|
H A D | CompletableFutureTest.java | 1607 for (Integer v2 : new Integer[] { 2, null }) 1616 final Integer w1 = fFirst ? v1 : v2; 1617 final Integer w2 = !fFirst ? v1 : v2; 1633 checkCompletedNormally(h0, subtract(v1, v2)); 1634 checkCompletedNormally(h2, subtract(v1, v2)); 1635 checkCompletedNormally(h4, subtract(v1, v2)); 1636 rs[0].assertValue(subtract(v1, v2)); 1637 rs[2].assertValue(subtract(v1, v2)); 1638 rs[4].assertValue(subtract(v1, v2)); 1641 checkCompletedNormally(g, v2); [all...] |
H A D | ConcurrentHashMap8Test.java | 338 long v2 = adder.sum(); 339 assertEquals(v + v2, 15);
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
H A D | FileTimeTest.java | 265 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { argument 266 int result = FileTime.from(v1, u1).compareTo(FileTime.from(v2, u2)); 271 static void cmp(Instant ins, long v2, TimeUnit u2, int expected) { argument 272 int result = FileTime.from(ins).compareTo(FileTime.from(v2, u2)); 277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { argument 279 FileTime t2 = FileTime.from(v2, u2); 286 static void eq(Instant ins, long v2, TimeUnit u2) { argument 288 FileTime t2 = FileTime.from(v2, u2); 308 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) { argument 310 FileTime t2 = FileTime.from(v2, u 315 neq(Instant ins, long v2, TimeUnit u2) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Random.java | 559 * double v1, v2, s; 562 * v2 = 2 * nextDouble() - 1; // between -1.0 and 1.0 563 * s = v1 * v1 + v2 * v2; 566 * nextNextGaussian = v2 * multiplier; 589 double v1, v2, s; 592 v2 = 2 * nextDouble() - 1; // between -1 and 1 593 s = v1 * v1 + v2 * v2; 596 nextNextGaussian = v2 * multiplie [all...] |
H A D | WeakHashMap.java | 742 Object v2 = e.getValue(); 743 if (v1 == v2 || (v1 != null && v1.equals(v2)))
|
H A D | GregorianCalendar.java | 1590 int v2 = gc.getActualMaximum(field); 1591 return Math.max(MAX_VALUES[field], Math.max(v1, v2)); 1662 int v2 = gc.getActualMaximum(field); 1663 return Math.min(LEAST_MAX_VALUES[field], Math.min(v1, v2));
|
H A D | Collections.java | 3759 return m.merge(key, value, (v1, v2) -> { 3760 V newValue = remappingFunction.apply(v1, v2);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | ThreadLocalRandom.java | 451 double v1, v2, s; 454 v2 = 2 * nextDouble() - 1; // between -1 and 1 455 s = v1 * v1 + v2 * v2; 458 nextLocalGaussian.set(new Double(v2 * multiplier));
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
H A D | CopyOnWriteArrayListTest.java | 317 l.sort((v1, v2) -> v1.compareTo(v2)); 377 l.sort((v1, v2) -> v1.compareTo(v2));
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FDBigInteger.java | 303 int v2 = (int) (carry >>> 32); 305 return new FDBigInteger(new int[]{v0, v1, v2}, wordcount); 310 (v2 << bitcount) | (v1 >>> (32 - bitcount)), 311 v2 >>> (32 - bitcount)
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Memory.cpp | 89 jint v2 = get_unaligned<jint>(src++); local 90 put_unaligned<jint>(dst++, bswap_32(v2));
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixPath.java | 722 byte v2[] = ((UnixPath) other).path; 727 int c2 = v2[k] & 0xff;
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | String.java | 1036 char v2[] = sb.getValue(); 1042 if (charAt(i) != v2[i]) { 1749 /* Found first character, now look at the rest of v2 */ 1801 /* Found first character, now look at the rest of v2 */
|