/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 762 public abstract int compare(final Duration duration); in compare() argument 790 public boolean isLongerThan(final Duration duration) { in isLongerThan() argument 791 return compare(duration) == DatatypeConstants.GREATER; in isLongerThan() 812 public boolean isShorterThan(final Duration duration) { in isShorterThan() argument 813 return compare(duration) == DatatypeConstants.LESSER; in isShorterThan() 853 public boolean equals(final Object duration) { in equals() argument 854 if (duration == this) { in equals() 857 if (duration instanceof Duration) { in equals() 858 return compare((Duration) duration) == DatatypeConstants.EQUAL; in equals()
|
D | XMLGregorianCalendar.java | 866 public abstract void add(Duration duration); in add() argument
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | DurationTest.java | 89 Duration duration = (Duration) values[1]; in test_addTo_exceeds() local 92 duration.addTo(temporal); in test_addTo_exceeds() 93 fail(" Should have failed to add " + duration + " to " + temporal); in test_addTo_exceeds() 117 Duration duration = (Duration) values[1]; in test_subtractFrom_exceeds() local 120 duration.subtractFrom(temporal); in test_subtractFrom_exceeds() 121 fail("Should have failed to subtract " + duration + " from " + temporal); in test_subtractFrom_exceeds()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 193 private final Duration duration; field in ChronoUnit 197 this.duration = estimatedDuration; in ChronoUnit() 211 return duration; in getDuration()
|
D | IsoFields.java | 656 private final Duration duration; field in IsoFields.Unit 660 this.duration = estimatedDuration; in Unit() 665 return duration; in getDuration()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 328 Duration duration = ZERO; in from() local 330 duration = duration.plus(amount.get(unit), unit); in from() 332 return duration; in from() 669 public Duration plus(Duration duration) { in plus() argument 670 return plus(duration.getSeconds(), duration.getNano()); in plus() 709 Duration duration = unit.getDuration().multipliedBy(amountToAdd); in plus() local 710 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus() 826 public Duration minus(Duration duration) { in minus() argument 827 long secsToSubtract = duration.getSeconds(); in minus() 828 int nanosToSubtract = duration.getNano(); in minus()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 238 public long toNanos(long duration) { in toNanos() argument 250 public long toMicros(long duration) { in toMicros() argument 262 public long toMillis(long duration) { in toMillis() argument 274 public long toSeconds(long duration) { in toSeconds() argument 287 public long toMinutes(long duration) { in toMinutes() argument 300 public long toHours(long duration) { in toHours() argument 311 public long toDays(long duration) { in toDays() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
D | ThreadsTest.java | 262 long duration = getDurationMillis(waitMillis); in assertDurationIsInRange() local 264 if (duration < minimum) { in assertDurationIsInRange() 267 " actual duration too short: " + duration); in assertDurationIsInRange() 268 } else if (duration > maximum) { in assertDurationIsInRange() 271 " actual duration too long: " + duration); in assertDurationIsInRange()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 66 long duration = TimeUnit.NANOSECONDS.toMillis(end - start); in create() local 67 System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" + in create()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 181 public java.time.Duration plus(java.time.Duration duration) { in plus() argument 217 public java.time.Duration minus(java.time.Duration duration) { in minus() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 693 …c void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { Libcore.os.tcsendbreak… in tcsendbreak() argument
|
/libcore/luni/src/main/java/libcore/io/ |
D | ForwardingOs.java | 231 …ublic void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd,… in tcsendbreak() argument
|
D | Os.java | 197 public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException; in tcsendbreak() argument
|
D | Linux.java | 267 public native void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException; in tcsendbreak() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 1649 Duration duration = Duration.ofSeconds(4L * 60 * 60 + 5L * 60 + 6L); 1652 assertEquals(t.plus(duration), expected); 1854 Duration duration = Duration.ofSeconds(4L * 60 * 60 + 5L * 60 + 6L); 1857 assertEquals(t.minus(duration), expected);
|
D | TCKDuration.java | 2691 Duration duration = Duration.ofSeconds(5000, 1000); in test_duration_getUnits() local 2692 List<TemporalUnit> units = duration.getUnits(); in test_duration_getUnits()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1565 public static final int duration = 0; field in R
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 2522 static void Linux_tcsendbreak(JNIEnv* env, jobject, jobject javaFd, jint duration) { in Linux_tcsendbreak() argument 2524 throwIfMinusOne(env, "tcsendbreak", TEMP_FAILURE_RETRY(tcsendbreak(fd, duration))); in Linux_tcsendbreak()
|