/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | DateTest.java | 50 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000); 52 assertTrue("Created incorrect date", d1.equals(d2)); 69 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 72 assertTrue("Created incorrect date", d1.equals(d2)); 85 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 88 assertTrue("Created incorrect date", d1.equals(d2)); 97 Date d2 = new Date(0); // the epoch 98 assertTrue("Created incorrect date", d1.equals(d2)); 116 Date d2 = new Date(1900000); 117 assertTrue("Older was returned as newer", d2 [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Double.java | 770 * {@code Double}, {@code d1} and {@code d2}, the 771 * value of {@code d1.equals(d2)} is {@code true} if and 775 * {@code d1.doubleValue() == d2.doubleValue()} 781 * <li>If {@code d1} and {@code d2} both represent 787 * {@code d2} represents {@code -0.0}, or vice versa, 986 * new Double(d1).compareTo(new Double(d2)) 990 * @param d2 the second {@code double} to compare 992 * numerically equal to {@code d2}; a value less than 994 * {@code d2}; and a value greater than {@code 0} 996 * {@code d2} 999 compare(double d1, double d2) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | Math.c | 84 Math_atan2(jdouble d1, jdouble d2) { argument 85 return atan2(d1, d2); 89 Math_pow(jdouble d1, jdouble d2) { argument 90 return pow(d1, d2);
|
H A D | StrictMath.c | 102 StrictMath_atan2(JNIEnv *env, jclass unused, jdouble d1, jdouble d2) argument 104 return (jdouble) ieee_atan2((double)d1, (double)d2); 108 StrictMath_pow(JNIEnv *env, jclass unused, jdouble d1, jdouble d2) argument 110 return (jdouble) ieee_pow((double)d1, (double)d2);
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
H A D | BaseCalendar.java | 493 int d1, d2, d3, d4; 502 d2 = d1 % 36524; 503 n4 = d2 / 1461; 504 d3 = d2 % 1461; 512 d2 = CalendarUtils.mod(d1, 36524); 513 n4 = CalendarUtils.floorDivide(d2, 1461); 514 d3 = CalendarUtils.mod(d2, 1461);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | DoubleTest.java | 257 double d2 = values[j]; 258 assertTrue("compare() " + d1 + " should be less " + d2, 259 Double.compare(d1, d2) == -1); 260 assertTrue("compare() " + d2 + " should be greater " + d1, Double.compare(d2, 262 Double D2 = new Double(d2); 263 assertTrue("compareTo() " + d1 + " should be less " + d2, 265 assertTrue("compareTo() " + d2 + " should be greater " + d1, 1342 double d2 = values[j]; 1343 assertTrue("Assert 2: compare() " + d1 + " should be less " + d2, Doubl [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerValue.java | 806 private static boolean doEquals(DerValue d1, DerValue d2) { argument 808 synchronized (d2.data) { 810 d2.data.reset(); 811 return d1.buffer.equals(d2.buffer);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest2Test.java | 90 MessageDigest d2 = (MessageDigest) d1.clone(); 92 d2.update((byte) 1); 95 MessageDigest.isEqual(d1.digest(), d2.digest()));
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | SimpleDateFormatTest.java | 410 Date d2 = sdf.parse(formatted); 411 assertEquals(d, d2);
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FloatingDecimal.java | 812 * First, scale the mantissa bits such that 1 <= d2 < 2. 814 * log10(d2) ~=~ (d2-1.5)/1.5 + log(1.5) 816 * log10(d) ~=~ log10(d2) + binExp * log10(2) 820 double d2 = Double.longBitsToDouble( EXP_ONE | ( fractBits & DoubleConsts.SIGNIF_BIT_MASK ) ); 821 double d = (d2-1.5D)*0.289529654D + 0.176091259 + (double)binExp * 0.301029995663981;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKPeriod.java | 526 public void factory_between_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int me, int de) { argument 528 LocalDate end = LocalDate.of(y2, m2, d2);
|
H A D | TCKLocalDate.java | 1866 public void test_periodUntil_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int me, int de) { argument 1868 LocalDate end = LocalDate.of(y2, m2, d2);
|