Home
last modified time | relevance | path

Searched refs:d2 (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DDateTest.java50 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000); in test_ConstructorIII() local
52 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIII()
69 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 in test_ConstructorIIIII() local
72 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIIIII()
85 Date d2 = new Date(0 + d1.getTimezoneOffset() * 60 * 1000 + 60 * 60 in test_ConstructorIIIIII() local
88 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorIIIIII()
97 Date d2 = new Date(0); // the epoch in test_ConstructorLjava_lang_String() local
98 assertTrue("Created incorrect date", d1.equals(d2)); in test_ConstructorLjava_lang_String()
116 Date d2 = new Date(1900000); in test_afterLjava_util_Date() local
117 assertTrue("Older was returned as newer", d2.after(d1)); in test_afterLjava_util_Date()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DDoubleTest.java257 double d2 = values[j]; in test_compare() local
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()
262 Double D2 = new Double(d2); 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()
1342 double d2 = values[j]; in test_compareToLjava_lang_Double() local
1343 assertTrue("Assert 2: compare() " + d1 + " should be less " + d2, Double in test_compareToLjava_lang_Double()
1344 .compare(d1, d2) == -1); in test_compareToLjava_lang_Double()
[all …]
/libcore/ojluni/src/main/native/
DMath.c85 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()
DStrictMath.c102 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/
DDouble.java999 public static int compare(double d1, double d2) { in compare() argument
1000 if (d1 < d2) in compare()
1002 if (d1 > d2) in compare()
1007 long anotherBits = Double.doubleToLongBits(d2); in compare()
/libcore/ojluni/src/main/java/sun/util/calendar/
DBaseCalendar.java493 int d1, d2, d3, d4; in getGregorianYearFromFixedDate() local
502 d2 = d1 % 36524; in getGregorianYearFromFixedDate()
503 n4 = d2 / 1461; in getGregorianYearFromFixedDate()
504 d3 = d2 % 1461; in getGregorianYearFromFixedDate()
512 d2 = CalendarUtils.mod(d1, 36524); in getGregorianYearFromFixedDate()
513 n4 = CalendarUtils.floorDivide(d2, 1461); in getGregorianYearFromFixedDate()
514 d3 = CalendarUtils.mod(d2, 1461); in getGregorianYearFromFixedDate()
/libcore/ojluni/src/main/java/sun/security/util/
DDerValue.java806 private static boolean doEquals(DerValue d1, DerValue d2) { in doEquals() argument
808 synchronized (d2.data) { in doEquals()
810 d2.data.reset(); in doEquals()
811 return d1.buffer.equals(d2.buffer); in doEquals()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java90 MessageDigest d2 = (MessageDigest) d1.clone(); in test_clone() local
92 d2.update((byte) 1); in test_clone()
95 MessageDigest.isEqual(d1.digest(), d2.digest())); in test_clone()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java136 public static int compare(double d1, double d2) { in compare() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java85 public static int compare(double d1, double d2) { throw new RuntimeException("Stub!"); } in compare() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DDerValue.java227 private static boolean doEquals(sun.security.util.DerValue d1, sun.security.util.DerValue d2) { in doEquals() argument
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java415 Date d2 = sdf.parse(formatted); in testParseArabic() local
416 assertEquals(d, d2); in testParseArabic()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java526 …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
528 LocalDate end = LocalDate.of(y2, m2, d2); in factory_between_LocalDate()
DTCKLocalDate.java1866 …public void test_periodUntil_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int…
1868 LocalDate end = LocalDate.of(y2, m2, d2);
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java820 … 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;