Home
last modified time | relevance | path

Searched refs:v2 (Results 1 – 18 of 18) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java29 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()
DCompletableFutureTest.java1607 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 …]
DConcurrentHashMap8Test.java338 long v2 = adder.sum(); in testKeySetSpliterator() local
339 assertEquals(v + v2, 15); in testKeySetSpliterator()
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java265 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/
DListDefaultMethodTester.java45 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
DMapDefaultMethodTester.java407 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()
DCollectionsTest.java1073 assertThrowsCce(() -> { map.merge(new Object(), presentValue, (v1, v2) -> presentValue); }); in check_map_isChecked()
1074 assertThrowsCce(() -> { map.merge(presentKey, presentValue, (v1, v2) -> new Object()); }); in check_map_isChecked()
1077 map.merge(absentKey, absentValue, (v1, v2) -> new Object()); in check_map_isChecked()
1646 checkedMap2.merge(1, A_STRING, (v1, v2) -> NOT_A_STRING); in test_CheckedMap_merge()
1651 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
1654 result.put(k2, v2); in createMap()
/libcore/ojluni/src/main/java/java/util/
DRandom.java589 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()
DWeakHashMap.java742 Object v2 = e.getValue(); in equals() local
743 if (v1 == v2 || (v1 != null && v1.equals(v2))) in equals()
DGregorianCalendar.java1590 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()
DCollections.java3759 return m.merge(key, value, (v1, v2) -> {
3760 V newValue = remappingFunction.apply(v1, v2);
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DParameterMetadataTestClasses$TestEnum.smali58 const/4 v2, 0x0
65 …invoke-direct {v0, v1, v2}, Llibcore/java/lang/reflect/parameter/ParameterMetadataTestClasses$Test…
83 aput-object v1, v0, v2
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java451 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/
DCopyOnWriteArrayListTest.java317 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
377 l.sort((v1, v2) -> v1.compareTo(v2)); in test_subList_sort()
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java303 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/
Dlibcore_io_Memory.cpp89 jint v2 = get_unaligned<jint>(src++); in swapLongs() local
90 put_unaligned<jint>(dst++, bswap_32(v2)); in swapLongs()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java722 byte v2[] = ((UnixPath) other).path; in compareTo()
727 int c2 = v2[k] & 0xff; in compareTo()
/libcore/ojluni/src/main/java/java/lang/
DString.java983 char v2[] = sb.getValue(); in nonSyncContentEquals() local
989 if (charAt(i) != v2[i]) { in nonSyncContentEquals()