Home
last modified time | relevance | path

Searched refs:value2 (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DX-VarHandleTestAccess.java.template311 vh.set(recv, $value2$);
315 vh.setVolatile(recv, $value2$);
319 vh.setRelease(recv, $value2$);
323 vh.setOpaque(recv, $value2$);
328 boolean r = vh.compareAndSet(recv, $value1$, $value2$);
332 $type$ r = ($type$) vh.compareAndExchange(recv, $value1$, $value2$);
336 $type$ r = ($type$) vh.compareAndExchangeAcquire(recv, $value1$, $value2$);
340 $type$ r = ($type$) vh.compareAndExchangeRelease(recv, $value1$, $value2$);
344 boolean r = vh.weakCompareAndSetPlain(recv, $value1$, $value2$);
348 boolean r = vh.weakCompareAndSet(recv, $value1$, $value2$);
[all …]
DX-VarHandleTestMethodHandleAccess.java.template135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, $value2$);
137 assertEquals(x, $value2$, "setVolatile $type$ value");
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, $value2$);
151 assertEquals(x, $value2$, "setOpaque $type$ value");
159 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, $value1$, $value2$);
162 assertEquals(x, $value2$, "success compareAndSet $type$ value");
169 assertEquals(x, $value2$, "failing compareAndSet $type$ value");
173 …pe$ r = ($type$) hs.get(TestAccessMode.COMPARE_AND_EXCHANGE).invokeExact(recv, $value2$, $value1$);
174 assertEquals(r, $value2$, "success compareAndExchange $type$");
180 …pe$ r = ($type$) hs.get(TestAccessMode.COMPARE_AND_EXCHANGE).invokeExact(recv, $value2$, $value3$);
[all …]
Dgenerate-vh-tests.sh38 value2=false
44 value2=(byte)0x23
49 value2=(short)0x4567
DX-VarHandleTestByteArrayView.java.template54 static final $type$ VALUE_2 = $value2$;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerHashCodeTest.java37 String value2 = "-5634562095872038262928728727834290276457386374882976782849"; in testSameObject() local
39 BigInteger aNumber2 = new BigInteger(value2); in testSameObject()
55 String value2 = "12378246728727834290276457386374882976782849"; in testEqualObjects() local
57 BigInteger aNumber2 = new BigInteger(value2); in testEqualObjects()
71 String value2 = "-5634562095872038262928728727834290276457386374882976782849"; in testUnequalObjectsUnequal() local
73 BigInteger aNumber2 = new BigInteger(value2); in testUnequalObjectsUnequal()
DBigDecimalTest.java33 BigInteger value2 = new BigInteger("12334560000"); field in BigDecimalTest
49 BigDecimal big = new BigDecimal(value2, 5); in test_ConstructorLjava_math_BigIntegerI()
51 .unscaledValue().equals(value2) in test_ConstructorLjava_math_BigIntegerI()
245 BigDecimal divd1 = new BigDecimal(value2, 4); in test_divideLjava_math_BigDecimalII()
400 BigDecimal long1 = new BigDecimal(value2.negate(), 0); in test_longValue()
418 BigDecimal max1 = new BigDecimal(value2, 1); in test_maxLjava_math_BigDecimal()
419 BigDecimal max2 = new BigDecimal(value2, 4); in test_maxLjava_math_BigDecimal()
439 min1 = new BigDecimal(value2, 5); in test_minLjava_math_BigDecimal()
440 min2 = new BigDecimal(value2, 0); in test_minLjava_math_BigDecimal()
453 movePtLeft = new BigDecimal(value2.negate(), 0); in test_movePointLeftI()
[all …]
/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java89 StructTimeval value2 = StructTimeval.fromMillis(millisValue); in testEqualsAndHashcode() local
92 assertEquals("value1.equals(value2)", value1, value2); in testEqualsAndHashcode()
93 assertEquals("value2.equals(value1)", value2, value1); in testEqualsAndHashcode()
96 value1.hashCode(), value2.hashCode()); in testEqualsAndHashcode()
DOsTest.java2162 String value2 = "value2";
2172 Os.setenv(variable2, value2, false);
2174 assertEquals(value2, Os.getenv(variable2));
2176 assertEquals(value2, System.getenv(variable2));
2181 Os.setenv(variable1, value2, false);
2184 assertEquals(value2, Os.getenv(variable2));
2186 assertEquals(value2, System.getenv(variable2));
2190 Os.setenv(variable1, value2, true);
2192 assertEquals(value2, Os.getenv(variable1));
2194 assertEquals(value2, System.getenv(variable1));
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java106 final TemporalField field2, final Number value2, in test_derive() argument
122 return value2.longValue(); in test_derive()
139 str += value2 + "-"; in test_derive()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java192 …oid test_resolveTwoNoChange(TemporalField field1, long value1, TemporalField field2, long value2) { in test_resolveTwoNoChange() argument
193 String str = value1 + " " + value2; in test_resolveTwoNoChange()
204 assertEquals(accessor.getLong(field2), value2); in test_resolveTwoNoChange() local
223 …eeNoChange(TemporalField field1, long value1, TemporalField field2, long value2, TemporalField fie… in test_resolveThreeNoChange() argument
224 String str = value1 + " " + value2 + " " + value3; in test_resolveThreeNoChange()
237 assertEquals(accessor.getLong(field2), value2); in test_resolveThreeNoChange() local
338 TemporalField field2, long value2, in test_resolveTwoToField() argument
341 String str = value1 + " " + value2; in test_resolveTwoToField()
387 TemporalField field2, long value2, in test_resolveTwoToDate() argument
389 String str = value1 + " " + value2; in test_resolveTwoToDate()
[all …]
DTCKDateTimeFormatters.java1496 Expected(TemporalField field1, long value1, TemporalField field2, long value2) { in Expected() argument
1498 fieldValues.put(field2, value2); in Expected()
/libcore/ojluni/src/main/java/java/text/
DAttributedString.java670 private static final boolean valuesMatch(Object value1, Object value2) { in valuesMatch() argument
672 return value2 == null; in valuesMatch()
674 return value1.equals(value2); in valuesMatch()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConstructorsTest.java725 BigInteger value2 = new BigInteger("12334560000"); in test_Constructor_java_math_BigInteger_int() local
726 BigDecimal big2 = new BigDecimal(value2, 5); in test_Constructor_java_math_BigInteger_int()
728 big2.unscaledValue().equals(value2) in test_Constructor_java_math_BigInteger_int()
/libcore/ojluni/src/test/java/util/Arrays/
DSorting.java364 int value2 = a[i++].getValue(); in checkStable() local
374 if (!(value1 < value2 && value2 < value3 && value3 < value4)) { in checkStable()
377 value2 + ", " + value3 + ", " + value4); in checkStable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java3440 Integer value1, value2; in test_DescendingSubMapEntrySet_comparator() local
3453 value2 = (Integer) entryArray[i].getValue(); in test_DescendingSubMapEntrySet_comparator()
3454 assertTrue(value1 > value2); in test_DescendingSubMapEntrySet_comparator()
3455 assertTrue(comparator.compare(value1, value2) < 0); in test_DescendingSubMapEntrySet_comparator()
3470 value2 = (Integer) entryArray[i].getValue(); in test_DescendingSubMapEntrySet_comparator()
3471 assertTrue(value1 > value2); in test_DescendingSubMapEntrySet_comparator()
3472 assertTrue(comparator.compare(value1, value2) < 0); in test_DescendingSubMapEntrySet_comparator()
3487 value2 = (Integer) entryArray[i].getValue(); in test_DescendingSubMapEntrySet_comparator()
3488 assertTrue(value1 > value2); in test_DescendingSubMapEntrySet_comparator()
3489 assertTrue(comparator.compare(value1, value2) < 0); in test_DescendingSubMapEntrySet_comparator()
[all …]
DArraysTest.java1992 private void orderFail(int index, String value1, String value2) { in orderFail() argument
1993 fail("Array is not sorted at " + index + "-th position: " + value1 + " and " + value2); in orderFail()
/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java592 float value2 = -12345678.12345689f; in testSetFloat() local
616 ps.setFloat(1, value2); in testSetFloat()
619 st.execute("select * from type where FloatVal=" + value2); in testSetFloat()