/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | DateTest.java | 47 Date d1 = new Date(70, 0, 1); // the epoch + local time 50 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000); 52 assertTrue("Created incorrect date", d1.equals(d2)); 66 Date d1 = new Date(70, 0, 1, 1, 1); 69 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 72 assertTrue("Created incorrect date", d1.equals(d2)); 82 Date d1 = new Date(70, 0, 1, 1, 1, 1); 85 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 88 assertTrue("Created incorrect date", d1.equals(d2)); 96 Date d1 [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 786 * <li>If {@code d1} represents {@code +0.0} while 986 * new Double(d1).compareTo(new Double(d2)) 989 * @param d1 the first {@code double} to compare 991 * @return the value {@code 0} if {@code d1} is 993 * {@code 0} if {@code d1} is numerically less than 995 * if {@code d1} i 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; 500 d1 = (int)(d0 % 146097); 501 n100 = d1 / 36524; 502 d2 = d1 % 36524; 510 d1 = (int)CalendarUtils.mod(d0, 146097L); 511 n100 = CalendarUtils.floorDivide(d1, 36524); 512 d2 = CalendarUtils.mod(d1, 36524);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | DoubleTest.java | 252 double d1 = values[i]; 253 assertTrue("compare() should be equal: " + d1, Double.compare(d1, d1) == 0); 254 Double D1 = new Double(d1); 255 assertTrue("compareTo() should be equal: " + d1, D1.compareTo(D1) == 0); 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, 261 d1) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest2Test.java | 85 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); 87 d1.update(b); 90 MessageDigest d2 = (MessageDigest) d1.clone(); 91 d1.update((byte) 1); 95 MessageDigest.isEqual(d1.digest(), d2.digest()));
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerValue.java | 806 private static boolean doEquals(DerValue d1, DerValue d2) { argument 807 synchronized (d1.data) { 809 d1.data.reset(); 811 return d1.buffer.equals(d2.buffer);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | JapaneseImperialCalendar.java | 1330 CalendarDate d1 = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); 1331 long fd1 = jcal.getFixedDate(d1); 1332 d1.addYear(1); 1333 d1.setMonth(BaseCalendar.JANUARY).setDayOfMonth(1); 1334 jcal.normalize(d1); 1335 long fd2 = jcal.getFixedDate(d1);
|
/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 527 LocalDate start = LocalDate.of(y1, m1, d1);
|
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 1867 LocalDate start = LocalDate.of(y1, m1, d1);
|