/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 82 public long toNanos(long d) { return d; } in toNanos() argument 83 public long toMicros(long d) { return d/(C1/C0); } in toMicros() argument 84 public long toMillis(long d) { return d/(C2/C0); } in toMillis() argument 85 public long toSeconds(long d) { return d/(C3/C0); } in toSeconds() argument 86 public long toMinutes(long d) { return d/(C4/C0); } in toMinutes() argument 87 public long toHours(long d) { return d/(C5/C0); } in toHours() argument 88 public long toDays(long d) { return d/(C6/C0); } in toDays() argument 89 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() argument 90 int excessNanos(long d, long m) { return (int)(d - (m*C2)); } in excessNanos() argument 97 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() argument [all …]
|
D | CompletableFuture.java | 473 CompletableFuture<?> d; Completion t; in postComplete() local 482 f = (d = h.tryFire(NESTED)) == null ? this : d; in postComplete() 583 CompletableFuture<V> d; CompletableFuture<T> a; in tryFire() local 584 if ((d = dep) == null || in tryFire() 585 !d.uniApply(a = src, fn, mode > 0 ? null : this)) in tryFire() 588 return d.postFire(a, mode); in tryFire() 621 CompletableFuture<V> d = newIncompleteFuture(); in uniApplyStage() local 622 if (e != null || !d.uniApply(this, f, null)) { in uniApplyStage() 623 UniApply<T,V> c = new UniApply<T,V>(e, d, this, f); in uniApplyStage() 627 return d; in uniApplyStage() [all …]
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarUtils.java | 70 public static final long floorDivide(long n, long d) { in floorDivide() argument 72 (n / d) : (((n + 1L) / d) - 1L)); in floorDivide() 84 public static final int floorDivide(int n, int d) { in floorDivide() argument 86 (n / d) : (((n + 1) / d) - 1)); in floorDivide() 102 public static final int floorDivide(int n, int d, int[] r) { in floorDivide() argument 104 r[0] = n % d; in floorDivide() 105 return n / d; in floorDivide() 107 int q = ((n + 1) / d) - 1; in floorDivide() 108 r[0] = n - (q * d); in floorDivide() 125 public static final int floorDivide(long n, int d, int[] r) { in floorDivide() argument [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | MathBenchmark.java | 24 private final double d = 1.2; field in MathBenchmark 35 double result = d; in timeAbsD() 37 result = Math.abs(d); in timeAbsD() 67 double result = d; in timeAcos() 69 result = Math.acos(d); in timeAcos() 75 double result = d; in timeAsin() 77 result = Math.asin(d); in timeAsin() 83 double result = d; in timeAtan() 85 result = Math.atan(d); in timeAtan() 91 double result = d; in timeAtan2() [all …]
|
D | StrictMathBenchmark.java | 24 private final double d = 1.2; field in StrictMathBenchmark 61 StrictMath.abs(d); in timeAbsD() 85 StrictMath.acos(d); in timeAcos() 91 StrictMath.asin(d); in timeAsin() 97 StrictMath.atan(d); in timeAtan() 109 StrictMath.cbrt(d); in timeCbrt() 123 StrictMath.copySign(d, d); in timeCopySignD() 135 StrictMath.cos(d); in timeCos() 141 StrictMath.cosh(d); in timeCosh() 147 StrictMath.exp(d); in timeExp() [all …]
|
/libcore/ojluni/src/main/native/ |
D | Math.c | 29 Math_cos(JNIEnv *env, jclass unused, jdouble d) { in Math_cos() argument 30 return cos(d); in Math_cos() 34 Math_sin(JNIEnv *env, jclass unused, jdouble d) { in Math_sin() argument 35 return sin(d); in Math_sin() 39 Math_tan(JNIEnv *env, jclass unused, jdouble d) { in Math_tan() argument 40 return tan(d); in Math_tan() 44 Math_asin(JNIEnv *env, jclass unused, jdouble d) { in Math_asin() argument 45 return asin(d); in Math_asin() 49 Math_acos(JNIEnv *env, jclass unused, jdouble d) { in Math_acos() argument 50 return acos(d); in Math_acos() [all …]
|
D | StrictMath.c | 36 StrictMath_cos(JNIEnv *env, jclass unused, jdouble d) in StrictMath_cos() argument 38 return (jdouble) ieee_cos((double)d); in StrictMath_cos() 42 StrictMath_sin(JNIEnv *env, jclass unused, jdouble d) in StrictMath_sin() argument 44 return (jdouble) ieee_sin((double)d); in StrictMath_sin() 48 StrictMath_tan(JNIEnv *env, jclass unused, jdouble d) in StrictMath_tan() argument 50 return (jdouble) ieee_tan((double)d); in StrictMath_tan() 54 StrictMath_asin(JNIEnv *env, jclass unused, jdouble d) in StrictMath_asin() argument 56 return (jdouble) ieee_asin((double)d); in StrictMath_asin() 60 StrictMath_acos(JNIEnv *env, jclass unused, jdouble d) in StrictMath_acos() argument 62 return (jdouble) ieee_acos((double)d); in StrictMath_acos() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | DateTest.java | 203 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDate() local 205 assertEquals("Returned incorrect date", 13, d.getDate()); in test_getDate() 213 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDay() local 215 assertEquals("Returned incorrect day", 2, d.getDay()); in test_getDay() 223 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getHours() local 225 assertEquals("Returned incorrect hours", 19, d.getHours()); in test_getHours() 233 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMinutes() local 235 assertEquals("Returned incorrect minutes", 9, d.getMinutes()); in test_getMinutes() 243 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMonth() local 245 assertEquals("Returned incorrect month", 9, d.getMonth()); in test_getMonth() [all …]
|
D | TimerTest.java | 315 Date d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date() local 318 t.schedule(testTask, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 327 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 330 t.schedule(testTask, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 340 d = new Date(-100); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 342 t.schedule(testTask, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 350 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 352 t.schedule(null, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 370 d = new Date(-100); in test_scheduleLjava_util_TimerTaskLjava_util_Date() 372 t.schedule(null, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | DoubleTest.java | 200 Double d = new Double(dd); in test_toString() local 201 assertEquals(answer, Double.toString(d.doubleValue())); in test_toString() 202 assertEquals(answer, d.toString()); in test_toString() 209 Double d = new Double(39089.88888888888888888888888888888888); in test_ConstructorD() local 210 assertEquals("Created incorrect double", 39089.88888888888888888888888888888888, d in test_ConstructorD() 218 Double d = new Double("39089.88888888888888888888888888888888"); in test_ConstructorLjava_lang_String() local 219 assertEquals("Created incorrect double", 39089.88888888888888888888888888888888, d in test_ConstructorLjava_lang_String() 224 d = new Double("1E+-20"); in test_ConstructorLjava_lang_String() 231 …d = Double.parseDouble("-1.23399999999999996511673809963093681727585202138420992908181304283780288… in test_ConstructorLjava_lang_String() 232 assertEquals("Failed to parse long string", -1.234E-112D, d.doubleValue(), 0D); in test_ConstructorLjava_lang_String() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FpUtils.java | 141 public static int getExponent(double d){ in getExponent() argument 147 return (int)(((Double.doubleToRawLongBits(d) & DoubleConsts.EXP_BIT_MASK) >> in getExponent() 241 public static boolean isFinite(double d) { in isFinite() argument 242 return Math.abs(d) <= DoubleConsts.MAX_VALUE; in isFinite() 270 public static boolean isInfinite(double d) { in isInfinite() argument 271 return Double.isInfinite(d); in isInfinite() 302 public static boolean isNaN(double d) { in isNaN() argument 303 return Double.isNaN(d); in isNaN() 372 public static int ilogb(double d) { in ilogb() argument 373 int exponent = getExponent(d); in ilogb() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | DocumentBuilderTest.java | 169 Document d; in testNewDocument() local 172 d = dbf.newDocumentBuilder().newDocument(); in testNewDocument() 177 assertNotNull(d); in testNewDocument() 178 assertNull(d.getDoctype()); in testNewDocument() 179 assertNull(d.getDocumentElement()); in testNewDocument() 180 assertNull(d.getNamespaceURI()); in testNewDocument() 184 DOMImplementation d; in testGetImplementation() local 187 d = dbf.newDocumentBuilder().getDOMImplementation(); in testGetImplementation() 192 assertNotNull(d); in testGetImplementation() 229 Document d = db.parse(f); in testGetBaseURI() local [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 233 CalendarDate d = e.getSinceDate(); 234 sinceFixedDates[index] = gcal.getFixedDate(d); 398 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() local 399 d.addYear(amount); in add() 400 pinDayOfMonth(d); in add() 401 set(ERA, getEraIndex(d)); in add() 402 set(YEAR, d.getYear()); in add() 403 set(MONTH, d.getMonth() - 1); in add() 404 set(DAY_OF_MONTH, d.getDayOfMonth()); in add() 406 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() local [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1Impl.java | 78 int d = arrW[HASH_OFFSET +3]; in computeHash() local 100 ( ( b & c) | ((~b) & d) ) + in computeHash() 102 e = d; in computeHash() 103 d = c; in computeHash() 110 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash() 111 e = d; in computeHash() 112 d = c; in computeHash() 119 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + in computeHash() 121 e = d; in computeHash() 122 d = c; in computeHash() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Double.java | 204 public static String toString(double d) { in toString() argument 205 return FloatingDecimal.toJavaFormatString(d); in toString() 282 public static String toHexString(double d) { in toHexString() argument 288 if (!isFinite(d) ) in toHexString() 290 return Double.toString(d); in toHexString() 295 if (Math.copySign(1.0, d) == -1.0) // value is negative, in toHexString() 300 d = Math.abs(d); in toHexString() 302 if(d == 0.0) { in toHexString() 305 boolean subnormal = (d < DoubleConsts.MIN_NORMAL); in toHexString() 310 long signifBits = (Double.doubleToLongBits(d) in toHexString() [all …]
|
D | Math.java | 1439 public static double ulp(double d) { in ulp() argument 1440 int exp = getExponent(d); in ulp() 1444 return Math.abs(d); in ulp() 1535 public static double signum(double d) { in signum() argument 1536 return (d == 0.0 || Double.isNaN(d))?d:copySign(1.0, d); in signum() 1839 public static int getExponent(double d) { in getExponent() argument 1845 return (int)(((Double.doubleToRawLongBits(d) & DoubleConsts.EXP_BIT_MASK) >> in getExponent() 2073 public static double nextUp(double d) { in nextUp() argument 2074 if( Double.isNaN(d) || d == Double.POSITIVE_INFINITY) in nextUp() 2075 return d; in nextUp() [all …]
|
D | StrictMath.java | 1140 public static double ulp(double d) { in ulp() argument 1141 return Math.ulp(d); in ulp() 1188 public static double signum(double d) { in signum() argument 1189 return Math.signum(d); in signum() 1438 public static int getExponent(double d) { in getExponent() argument 1439 return Math.getExponent(d); in getExponent() 1552 public static double nextUp(double d) { in nextUp() argument 1553 return Math.nextUp(d); in nextUp() 1610 public static double nextDown(double d) { in nextDown() argument 1611 return Math.nextDown(d); in nextDown() [all …]
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | create.sh | 27 …" -days 3650 -extensions usr_cert -req -signkey "$DIR/privkey.pem" -outform d -set_serial -9999999… 30 openssl asn1parse -in "$DIR/cert-rsa.der" -inform d -out "$DIR/cert-rsa-tbs.der" -noout -strparse 4 31 SIG_OFFSET=$(openssl asn1parse -in "$DIR/cert-rsa.der" -inform d | tail -1 | cut -f1 -d:) 32 openssl asn1parse -in "$DIR/cert-rsa.der" -inform d -strparse "$SIG_OFFSET" -noout -out "$DIR/cert-… 35 openssl x509 -in "$DIR/cert-rsa.der" -inform d -noout -startdate -enddate > "$DIR/cert-rsa-dates.tx… 38 openssl x509 -in "$DIR/cert-rsa.der" -inform d -noout -serial > "$DIR/cert-rsa-serial.txt" 40 …xtensions keyUsage_extraLong_cert -req -signkey "$DIR/privkey.pem" -outform d > "$DIR/cert-keyUsag… 42 …-extensions extendedKeyUsage_cert -req -signkey "$DIR/privkey.pem" -outform d > "$DIR/cert-extende… 44 …R/default.cnf" -extensions ca_cert -req -signkey "$DIR/privkey.pem" -outform d > "$DIR/cert-ca.der" 46 … -extensions userWithPathLen_cert -req -signkey "$DIR/privkey.pem" -outform d > "$DIR/cert-userWit… [all …]
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ |
D | NativeTestTarget.java | 51 public static native void emptyJniStaticMethod6(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6() argument 56 public static native void emptyJniStaticMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Fast() argument 61 …public static native void emptyJniStaticMethod6_Critical(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Critical() argument 67 public native void emptyJniMethod6(int a, int b, int c, int d, int e, int f); in emptyJniMethod6() argument 77 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniStaticMethod6L() argument 81 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniMethod6L() argument 86 public native void emptyJniMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniMethod6_Fast() argument 96 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniStaticMethod6L_Fast() argument 100 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniMethod6L_Fast() argument
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipUtils.java | 71 Date d = new Date((int)(((dtime >> 25) & 0x7f) + 80), in dosToJavaTime() local 77 return d.getTime(); in dosToJavaTime() 97 Date d = new Date(time); in javaToDosTime() local 98 int year = d.getYear() + 1900; in javaToDosTime() 103 return ((year - 1980) << 25 | (d.getMonth() + 1) << 21 | in javaToDosTime() 104 d.getDate() << 16 | d.getHours() << 11 | d.getMinutes() << 5 | in javaToDosTime() 105 d.getSeconds() >> 1) & 0xffffffffL; in javaToDosTime()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronologyPerf.java | 46 Duration d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf() local 47 System.out.printf(" Cold Duration of Chronology.getAvailableChronologies(): %s%n", d); in test_chronologyGetAvailablePerf() 52 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf() 53 System.out.printf(" Warm Duration of Chronology.getAvailableChronologies(): %s%n", d); in test_chronologyGetAvailablePerf() 58 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf() 59 System.out.printf(" Warm Duration of HijrahDate.date(1434, 1, 1): %s%n", d); in test_chronologyGetAvailablePerf()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidBufferedInputStreamTest.java | 60 BufferedInputStream d = new BufferedInputStream(da, 9); in testBufferedInputStream() local 62 assertEquals('A', d.read()); in testBufferedInputStream() 63 d.mark(15); in testBufferedInputStream() 64 assertEquals('b', d.read()); in testBufferedInputStream() 65 assertEquals('C', d.read()); in testBufferedInputStream() 66 d.reset(); in testBufferedInputStream() 67 assertEquals('b', d.read()); in testBufferedInputStream() 69 d.close(); in testBufferedInputStream()
|
/libcore/ojluni/src/main/java/java/io/ |
D | BufferedWriter.java | 194 int d = min(nChars - nextChar, t - b); in write() local 195 System.arraycopy(cbuf, b, cb, nextChar, d); in write() 196 b += d; in write() 197 nextChar += d; in write() 225 int d = min(nChars - nextChar, t - b); in write() local 226 s.getChars(b, b + d, cb, nextChar); in write() 227 b += d; in write() 228 nextChar += d; in write()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | SimpleDateFormatTest.java | 685 Date d = new Date(1015822800000L); in test_parse_dd_MMMM_yyyy_EEEE() local 688 assertFormat(d, pattern, dateString); in test_parse_dd_MMMM_yyyy_EEEE() 689 assertParse(dateString, pattern, d); in test_parse_dd_MMMM_yyyy_EEEE() 693 Date d = new Date(1015822800000L); in test_parse_dd_MMMM_yyyy_F() local 696 assertFormat(d, pattern, dateString); in test_parse_dd_MMMM_yyyy_F() 697 assertParse(dateString, pattern, d); in test_parse_dd_MMMM_yyyy_F() 701 Date d = new Date(1015822800000L); in test_parse_dd_MMMM_yyyy_w() local 704 assertFormat(d, pattern, dateString); in test_parse_dd_MMMM_yyyy_w() 705 assertParse(dateString, pattern, d); in test_parse_dd_MMMM_yyyy_w() 709 Date d = new Date(1015822800000L); in test_parse_dd_MMMM_yyyy_W() local [all …]
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | DoubleConsumerTest.java | 27 DoubleConsumer one = d -> sb.append("one:" + d + ","); in testAndThen() 28 DoubleConsumer two = d -> sb.append("two:" + d); in testAndThen()
|