/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 78 public long toNanos(long d) { return d; } in toNanos() argument 79 public long toMicros(long d) { return d/(C1/C0); } in toMicros() argument 80 public long toMillis(long d) { return d/(C2/C0); } in toMillis() argument 81 public long toSeconds(long d) { return d/(C3/C0); } in toSeconds() argument 82 public long toMinutes(long d) { return d/(C4/C0); } in toMinutes() argument 83 public long toHours(long d) { return d/(C5/C0); } in toHours() argument 84 public long toDays(long d) { return d/(C6/C0); } in toDays() argument 85 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() argument 86 int excessNanos(long d, long m) { return (int)(d - (m*C2)); } in excessNanos() argument 93 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() argument [all …]
|
D | CompletableFuture.java | 475 CompletableFuture<?> d; Completion t; in postComplete() local 484 f = (d = h.tryFire(NESTED)) == null ? this : d; in postComplete() 585 CompletableFuture<V> d; CompletableFuture<T> a; in tryFire() local 586 if ((d = dep) == null || in tryFire() 587 !d.uniApply(a = src, fn, mode > 0 ? null : this)) in tryFire() 590 return d.postFire(a, mode); in tryFire() 623 CompletableFuture<V> d = newIncompleteFuture(); in uniApplyStage() local 624 if (e != null || !d.uniApply(this, f, null)) { in uniApplyStage() 625 UniApply<T,V> c = new UniApply<T,V>(e, d, this, f); in uniApplyStage() 629 return d; in uniApplyStage() [all …]
|
/libcore/ojluni/src/main/native/ |
D | Math.c | 30 Math_cos(jdouble d) { in Math_cos() argument 31 return cos(d); in Math_cos() 35 Math_sin(jdouble d) { in Math_sin() argument 36 return sin(d); in Math_sin() 40 Math_tan(jdouble d) { in Math_tan() argument 41 return tan(d); in Math_tan() 45 Math_asin(jdouble d) { in Math_asin() argument 46 return asin(d); in Math_asin() 50 Math_acos(jdouble d) { in Math_acos() argument 51 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/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/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/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 | 139 public static int getExponent(double d){ in getExponent() argument 140 return Math.getExponent(d); in getExponent() 208 public static boolean isFinite(double d) { in isFinite() argument 209 return Double.isFinite(d); in isFinite() 239 public static boolean isInfinite(double d) { in isInfinite() argument 240 return Double.isInfinite(d); in isInfinite() 271 public static boolean isNaN(double d) { in isNaN() argument 272 return Double.isNaN(d); in isNaN() 341 public static int ilogb(double d) { in ilogb() argument 342 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 | 252 CalendarDate d = e.getSinceDate(); 253 sinceFixedDates[index] = gcal.getFixedDate(d); 420 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() local 421 d.addYear(amount); in add() 422 pinDayOfMonth(d); in add() 423 set(ERA, getEraIndex(d)); in add() 424 set(YEAR, d.getYear()); in add() 425 set(MONTH, d.getMonth() - 1); in add() 426 set(DAY_OF_MONTH, d.getDayOfMonth()); in add() 428 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() local [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Double.java | 203 public static String toString(double d) { in toString() argument 204 return FloatingDecimal.toJavaFormatString(d); in toString() 281 public static String toHexString(double d) { in toHexString() argument 287 if (!isFinite(d) ) in toHexString() 289 return Double.toString(d); in toHexString() 294 if (Math.copySign(1.0, d) == -1.0) // value is negative, in toHexString() 299 d = Math.abs(d); in toHexString() 301 if(d == 0.0) { in toHexString() 304 boolean subnormal = (d < DoubleConsts.MIN_NORMAL); in toHexString() 309 long signifBits = (Double.doubleToLongBits(d) in toHexString() [all …]
|
D | Math.java | 1461 public static double ulp(double d) { in ulp() argument 1462 int exp = getExponent(d); in ulp() 1466 return Math.abs(d); in ulp() 1557 public static double signum(double d) { in signum() argument 1558 return (d == 0.0 || Double.isNaN(d))?d:copySign(1.0, d); in signum() 1861 public static int getExponent(double d) { in getExponent() argument 1867 return (int)(((Double.doubleToRawLongBits(d) & DoubleConsts.EXP_BIT_MASK) >> in getExponent() 2095 public static double nextUp(double d) { in nextUp() argument 2096 if( Double.isNaN(d) || d == Double.POSITIVE_INFINITY) in nextUp() 2097 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/ojluni/annotations/hiddenapi/sun/misc/ |
D | FpUtils.java | 36 public static int getExponent(double d) { in getExponent() argument 57 public static boolean isFinite(double d) { in isFinite() argument 66 public static boolean isInfinite(double d) { in isInfinite() argument 74 public static boolean isNaN(double d) { in isNaN() argument 90 public static int ilogb(double d) { in ilogb() argument 99 public static double scalb(double d, int scale_factor) { in scalb() argument 119 public static double nextUp(double d) { in nextUp() argument 129 public static double nextDown(double d) { in nextDown() argument 149 public static double ulp(double d) { in ulp() argument 159 public static double signum(double d) { in signum() 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/dalvik/src/main/java/org/apache/harmony/dalvik/ |
D | NativeTestTarget.java | 60 public static native void emptyJniStaticMethod6(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6() argument 67 public static native void emptyJniStaticMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Fast() argument 74 …public static native void emptyJniStaticMethod6_Critical(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Critical() argument 82 public native void emptyJniMethod6(int a, int b, int c, int d, int e, int f); in emptyJniMethod6() argument 93 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniStaticMethod6L() argument 98 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniMethod6L() argument 105 public native void emptyJniMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniMethod6_Fast() argument 116 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniStaticMethod6L_Fast() argument 121 int[][] c, Object d, Object[] e, Object[][][][] f); in emptyJniMethod6L_Fast() argument
|
/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/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/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()
|
D | StreamTokenizer.java | 642 int d = read(); in nextToken() 643 while (d >= 0 && d != ttype && d != '\n' && d != '\r') { in nextToken() 644 if (d == '\\') { in nextToken() 655 d = read(); in nextToken() 657 d = c2; in nextToken() 659 d = c2; in nextToken() 684 d = read(); in nextToken() 687 c = d; in nextToken() 688 d = read(); in nextToken() 700 peekc = (d == ttype) ? NEED_CHAR : d; in nextToken()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldDoubleTest.java | 24 Double d = new Double(Byte.MAX_VALUE); in test_byteValue() local 25 assertEquals("Returned incorrect byte value", Byte.MAX_VALUE, d.byteValue()); in test_byteValue() 26 d= new Double(Byte.MIN_VALUE); in test_byteValue() 27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue()); in test_byteValue() 28 d= new Double(Double.MAX_VALUE); in test_byteValue() 29 assertEquals("Returned incorrect byte value", -1, d.byteValue()); in test_byteValue()
|