Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 200) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java78 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 …]
DCompletableFuture.java475 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/benchmarks/src/benchmarks/regression/
DMathBenchmark.java24 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 …]
DStrictMathBenchmark.java24 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/
DMath.c30 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 …]
DStrictMath.c36 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/ojluni/src/main/java/sun/util/calendar/
DCalendarUtils.java70 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/
DDateTest.java203 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 …]
DTimerTest.java315 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/
DDoubleTest.java200 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()
231d = 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/
DFpUtils.java139 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/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java252 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 …]
DGregorianCalendar.java789 BaseCalendar.Date d = getGregorianCutoverDate(); in setGregorianChange() local
792 gregorianCutoverYear = d.getYear(); in setGregorianChange()
795 d = (BaseCalendar.Date) julianCal.newCalendarDate(TimeZone.NO_TIMEZONE); in setGregorianChange()
796 julianCal.getCalendarDateFromFixedDate(d, gregorianCutoverDate - 1); in setGregorianChange()
797 gregorianCutoverYearJulian = d.getNormalizedYear(); in setGregorianChange()
842 BaseCalendar.Date d = getCalendarDate(gregorianCutoverDate); // Gregorian in isLeapYear() local
843 gregorian = d.getMonth() < BaseCalendar.MARCH; in isLeapYear()
1213 CalendarDate d = calsys.getCalendarDate(time, getZone()); in roll() local
1214 if (internalGet(DAY_OF_MONTH) != d.getDayOfMonth()) { in roll()
1215 d.setDate(internalGet(YEAR), in roll()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java169 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/support/src/test/java/tests/resources/x509/
Dcreate.sh27 …" -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/src/main/java/java/lang/
DDouble.java203 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 …]
DMath.java1592 public static double ulp(double d) { in ulp() argument
1593 int exp = getExponent(d); in ulp()
1597 return Math.abs(d); in ulp()
1688 public static double signum(double d) { in signum() argument
1689 return (d == 0.0 || Double.isNaN(d))?d:copySign(1.0, d); in signum()
1992 public static int getExponent(double d) { in getExponent() argument
1998 return (int)(((Double.doubleToRawLongBits(d) & DoubleConsts.EXP_BIT_MASK) >> in getExponent()
2226 public static double nextUp(double d) { in nextUp() argument
2227 if( Double.isNaN(d) || d == Double.POSITIVE_INFINITY) in nextUp()
2228 return d; in nextUp()
[all …]
DStrictMath.java1249 public static double ulp(double d) { in ulp() argument
1250 return Math.ulp(d); in ulp()
1297 public static double signum(double d) { in signum() argument
1298 return Math.signum(d); in signum()
1547 public static int getExponent(double d) { in getExponent() argument
1548 return Math.getExponent(d); in getExponent()
1661 public static double nextUp(double d) { in nextUp() argument
1662 return Math.nextUp(d); in nextUp()
1719 public static double nextDown(double d) { in nextDown() argument
1720 return Math.nextDown(d); in nextDown()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFpUtils.java36 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/
DZipUtils.java71 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/luni/src/test/java/libcore/java/io/
DOldAndroidBufferedInputStreamTest.java60 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/
DTestChronologyPerf.java46 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/
DBufferedWriter.java194 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()
DStreamTokenizer.java642 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/
DOldDoubleTest.java24 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()

12345678