Searched refs:duration (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java40 * A negative sign indicates a negative duration.</p>
43 * to use for the duration datatype of XML Schema 1.0 with
52 * <li>A==B (A and B are of the same duration)
57 * The {@link #compare(Duration duration)} method implements this
71 * <p>Also, division of a duration by a number is not provided because
209 * Returns the sign of this duration in -1,0, or 1.
212 * -1 if this duration is negative, 0 if the duration is zero,
213 * and 1 if the duration is positive.
303 * <p>Returns the length of the duration i
762 compare(final Duration duration) argument
790 isLongerThan(final Duration duration) argument
812 isShorterThan(final Duration duration) argument
853 equals(final Object duration) argument
[all...]
H A DXMLGregorianCalendar.java853 * <p>Add <code>duration</code> to this instance.</p>
862 * @param duration Duration to add to this <code>XMLGregorianCalendar</code>.
864 * @throws NullPointerException when <code>duration</code> parameter is <code>null</code>.
866 public abstract void add(Duration duration); argument
/libcore/luni/src/main/java/libcore/icu/
H A DRelativeDateTimeFormatter.java117 long duration = Math.abs(now - time);
142 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) {
143 count = (int)(duration / SECOND_IN_MILLIS);
145 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) {
146 count = (int)(duration / MINUTE_IN_MILLIS);
148 } else if (duration < DAY_IN_MILLIS && minResolution < DAY_IN_MILLIS) {
150 // "Yesterday" in this case. Unless the duration is longer than a day,
152 count = (int)(duration / HOUR_IN_MILLIS);
154 } else if (duration < WEEK_IN_MILLIS && minResolution < WEEK_IN_MILLIS) {
196 count = (int)(duration / WEEK_IN_MILLI
[all...]
H A DTimeZoneNames.java79 long duration = end - start;
80 System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
/libcore/luni/src/main/java/java/util/concurrent/
H A DTimeUnit.java178 * Converts the given time duration in the given unit to this unit.
189 * @param sourceDuration the time duration in the given {@code sourceUnit}
191 * @return the converted duration in this unit,
201 * {@link #convert(long, TimeUnit) NANOSECONDS.convert(duration, this)}.
202 * @param duration the duration
203 * @return the converted duration,
207 public long toNanos(long duration) { argument
213 * {@link #convert(long, TimeUnit) MICROSECONDS.convert(duration, this)}.
214 * @param duration th
219 toMicros(long duration) argument
231 toMillis(long duration) argument
243 toSeconds(long duration) argument
256 toMinutes(long duration) argument
269 toHours(long duration) argument
280 toDays(long duration) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
H A DThreadsTest.java138 * the indicated value, noting the duration of time actually parked.
165 * either case, this constructor takes a duration to park for
204 * Wait for the test to complete and return the duration.
208 * @return the duration in milliseconds
227 * Asserts that the actual duration is within 10% of the
230 * @param expectedMillis the expected duration, in milliseconds
241 long duration = getDurationMillis(waitMillis);
243 if (duration < minimum) {
244 Assert.fail("expected duration: " + expectedMillis +
245 " minimum duration
[all...]
/libcore/libart/src/main/java/java/lang/
H A DThread.java1024 long duration = (millis * NANOS_PER_MILLI) + nanos;
1028 // Wait may return early, so loop until sleep duration passes.
1036 if (elapsed >= duration) {
1040 duration -= elapsed;
1042 millis = duration / NANOS_PER_MILLI;
1043 nanos = (int) (duration % NANOS_PER_MILLI);
/libcore/luni/src/main/java/libcore/io/
H A DOs.java162 public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException; argument
H A DForwardingOs.java169 public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); } argument
H A DPosix.java246 public native void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException; argument
/libcore/luni/src/main/java/android/system/
H A DOs.java530 public static void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { Libcore.os.tcsendbreak(fd, duration); } argument
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1565 public static final int duration = 0; field in class:R
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1804 static void Posix_tcsendbreak(JNIEnv* env, jobject, jobject javaFd, jint duration) { argument
1806 throwIfMinusOne(env, "tcsendbreak", TEMP_FAILURE_RETRY(tcsendbreak(fd, duration)));
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 1840 milliseconds