Home
last modified time | relevance | path

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

/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.java87 StructTimeval value2 = StructTimeval.fromMillis(millisValue); in testEqualsAndHashcode() local
90 assertEquals("value1.equals(value2)", value1, value2); in testEqualsAndHashcode()
91 assertEquals("value2.equals(value1)", value2, value1); in testEqualsAndHashcode()
94 value1.hashCode(), value2.hashCode()); in testEqualsAndHashcode()
/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.java189 …oid test_resolveTwoNoChange(TemporalField field1, long value1, TemporalField field2, long value2) { in test_resolveTwoNoChange() argument
190 String str = value1 + " " + value2; in test_resolveTwoNoChange()
201 assertEquals(accessor.getLong(field2), value2); in test_resolveTwoNoChange() local
220 …eeNoChange(TemporalField field1, long value1, TemporalField field2, long value2, TemporalField fie… in test_resolveThreeNoChange() argument
221 String str = value1 + " " + value2 + " " + value3; in test_resolveThreeNoChange()
234 assertEquals(accessor.getLong(field2), value2); in test_resolveThreeNoChange() local
335 TemporalField field2, long value2, in test_resolveTwoToField() argument
338 String str = value1 + " " + value2; in test_resolveTwoToField()
384 TemporalField field2, long value2, in test_resolveTwoToDate() argument
386 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.java677 private final static boolean valuesMatch(Object value1, Object value2) { in valuesMatch() argument
679 return value2 == null; in valuesMatch()
681 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/luni/src/main/java/java/math/
DBigDecimal.java2717 private static int compareAbsoluteValues(long value1, long value2) { in compareAbsoluteValues() argument
2726 value2 = Math.abs(value2) - 1; in compareAbsoluteValues()
2728 return value1 > value2 ? 1 : (value1 < value2 ? -1 : 0); in compareAbsoluteValues()
/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()