/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | DateTest.java | 47 Date d1 = new Date(70, 0, 1); // the epoch + local time in test_ConstructorIII() local 50 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000); in test_ConstructorIII() 52 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIII() 66 Date d1 = new Date(70, 0, 1, 1, 1); in test_ConstructorIIIII() local 69 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 in test_ConstructorIIIII() 72 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIIIII() 82 Date d1 = new Date(70, 0, 1, 1, 1, 1); in test_ConstructorIIIIII() local 85 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 in test_ConstructorIIIIII() 88 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIIIIII() 96 Date d1 = new Date("January 1, 1970, 00:00:00 GMT"); // the epoch in test_ConstructorLjava_lang_String() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | DoubleTest.java | 252 double d1 = values[i]; in test_compare() local 253 assertTrue("compare() should be equal: " + d1, Double.compare(d1, d1) == 0); in test_compare() 254 Double D1 = new Double(d1); in test_compare() 255 assertTrue("compareTo() should be equal: " + d1, D1.compareTo(D1) == 0); in test_compare() 258 assertTrue("compare() " + d1 + " should be less " + d2, in test_compare() 259 Double.compare(d1, d2) == -1); in test_compare() 260 assertTrue("compare() " + d2 + " should be greater " + d1, Double.compare(d2, in test_compare() 261 d1) == 1); in test_compare() 263 assertTrue("compareTo() " + d1 + " should be less " + d2, in test_compare() 265 assertTrue("compareTo() " + d2 + " should be greater " + d1, in test_compare() [all …]
|
/libcore/ojluni/src/main/native/ |
D | Math.c | 85 Math_atan2(jdouble d1, jdouble d2) { in Math_atan2() argument 86 return atan2(d1, d2); in Math_atan2() 90 Math_pow(jdouble d1, jdouble d2) { in Math_pow() argument 91 return pow(d1, d2); in Math_pow()
|
D | StrictMath.c | 102 StrictMath_atan2(JNIEnv *env, jclass unused, jdouble d1, jdouble d2) in StrictMath_atan2() argument 104 return (jdouble) ieee_atan2((double)d1, (double)d2); in StrictMath_atan2() 108 StrictMath_pow(JNIEnv *env, jclass unused, jdouble d1, jdouble d2) in StrictMath_pow() argument 110 return (jdouble) ieee_pow((double)d1, (double)d2); in StrictMath_pow()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Double.java | 999 public static int compare(double d1, double d2) { in compare() argument 1000 if (d1 < d2) in compare() 1002 if (d1 > d2) in compare() 1006 long thisBits = Double.doubleToLongBits(d1); in compare()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | BaseCalendar.java | 493 int d1, d2, d3, d4; in getGregorianYearFromFixedDate() local 500 d1 = (int)(d0 % 146097); in getGregorianYearFromFixedDate() 501 n100 = d1 / 36524; in getGregorianYearFromFixedDate() 502 d2 = d1 % 36524; in getGregorianYearFromFixedDate() 510 d1 = (int)CalendarUtils.mod(d0, 146097L); in getGregorianYearFromFixedDate() 511 n100 = CalendarUtils.floorDivide(d1, 36524); in getGregorianYearFromFixedDate() 512 d2 = CalendarUtils.mod(d1, 36524); in getGregorianYearFromFixedDate()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest2Test.java | 85 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_clone() local 87 d1.update(b); in test_clone() 90 MessageDigest d2 = (MessageDigest) d1.clone(); in test_clone() 91 d1.update((byte) 1); in test_clone() 95 MessageDigest.isEqual(d1.digest(), d2.digest())); in test_clone()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerValue.java | 806 private static boolean doEquals(DerValue d1, DerValue d2) { in doEquals() argument 807 synchronized (d1.data) { in doEquals() 809 d1.data.reset(); in doEquals() 811 return d1.buffer.equals(d2.buffer); in doEquals()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Double.java | 136 public static int compare(double d1, double d2) { in compare() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 85 public static int compare(double d1, double d2) { throw new RuntimeException("Stub!"); } in compare() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 1351 CalendarDate d1 = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); in getActualMaximum() 1352 long fd1 = jcal.getFixedDate(d1); in getActualMaximum() 1353 d1.addYear(1); in getActualMaximum() 1354 d1.setMonth(BaseCalendar.JANUARY).setDayOfMonth(1); in getActualMaximum() 1355 jcal.normalize(d1); in getActualMaximum() 1356 long fd2 = jcal.getFixedDate(d1); in getActualMaximum()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | DerValue.java | 227 private static boolean doEquals(sun.security.util.DerValue d1, sun.security.util.DerValue d2) { in doEquals() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 526 …public void factory_between_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int … in factory_between_LocalDate() argument 527 LocalDate start = LocalDate.of(y1, m1, d1); in factory_between_LocalDate()
|
D | TCKLocalDate.java | 1866 …public void test_periodUntil_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int… 1867 LocalDate start = LocalDate.of(y1, m1, d1);
|