Searched defs:time (Results 1 - 25 of 35) sorted by relevance

12

/libcore/benchmarks/src/benchmarks/regression/
H A DSSLLoopbackBenchmark.java26 public void time(int reps) throws Exception { method in class:SSLLoopbackBenchmark
H A DSSLSocketFactoryBenchmark.java22 public void time(int reps) throws Exception { method in class:SSLSocketFactoryBenchmark
H A DJarFileBenchmark.java31 public void time(int reps) throws Exception { method in class:JarFileBenchmark
H A DDigestBenchmark.java59 public void time(int reps) throws Exception { method in class:DigestBenchmark
H A DKeyPairGeneratorBenchmark.java57 public void time(int reps) throws Exception { method in class:KeyPairGeneratorBenchmark
H A DMessageDigestBenchmark.java40 public void time(int reps) throws Exception { method in class:MessageDigestBenchmark
H A DSSLSocketBenchmark.java81 public void time(int reps) throws Exception { method in class:SSLSocketBenchmark
/libcore/luni/src/main/java/libcore/icu/
H A DDateTimeFormat.java29 * A formatter that outputs a single date/time.
43 public static String format(ULocale icuLocale, Calendar time, int flags, argument
45 String skeleton = DateUtilsBridge.toSkeleton(time, flags);
46 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone();
55 return formatter.format(time);
H A DRelativeDateTimeFormatter.java67 * return a string describing 'time' as a time relative to 'now' such as
71 * In the implementation below, it selects the appropriate time unit based on
72 * the elapsed time between time' and 'now', e.g. minutes, days and etc.
81 * return 'Yesterday' even if 'time' was less than 24 hours ago but falling
87 * the abbreviated forms when available. When 'time' equals to 'now', it
91 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, argument
96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext);
99 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, argument
113 getRelativeTimeSpanString(ULocale icuLocale, android.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, DisplayContext displayContext) argument
260 getRelativeDateTimeString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, long transitionResolution, int flags) argument
356 julianDay(android.icu.util.TimeZone icuTimeZone, long time) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DCondition.java43 * only notifying a single thread at a time when items or spaces become
243 * or the specified waiting time elapses.
256 * <li>The specified waiting time elapses; or
316 * of the specified waiting time. In either case the implementation
320 * @param nanosTimeout the maximum time to wait, in nanoseconds
322 * the time spent waiting upon return from this method.
325 * the desired time. A value less than or equal to zero
326 * indicates that no time remains.
334 * or the specified waiting time elapses. This method is behaviorally
336 * <pre> {@code awaitNanos(unit.toNanos(time)) >
345 await(long time, TimeUnit unit) argument
[all...]
H A DLock.java20 * shared resource: only one thread at a time can acquire the lock and
208 * Acquires the lock only if it is free at the time of invocation.
237 * Acquires the lock if it is free within the given waiting time and the
249 * <li>The specified waiting time elapses
263 * <p>If the specified waiting time elapses then the value {@code false}
265 * If the time is
285 * @param time the maximum time to wait for the lock
286 * @param unit the time unit of the {@code time} argumen
294 tryLock(long time, TimeUnit unit) argument
[all...]
H A DAbstractQueuedLongSynchronizer.java443 * @param nanosTimeout max wait time
539 * @param nanosTimeout max wait time
882 * at any time, a {@code true} return does not guarantee that any
886 * constant time.
899 * constant time.
912 * constant time, but may iterate upon contention if other threads are
1007 * timeouts may occur at any time, a {@code true} return does not
1275 * and interrupts may occur at any time, a {@code true} return
1297 * because timeouts and interrupts may occur at any time, the
1678 public final boolean await(long time, TimeUni argument
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DTime.java33 * parsing operations to support the JDBC escape syntax for time
63 * Constructs a <code>Time</code> object using a milliseconds time value.
65 * @param time milliseconds since January 1, 1970, 00:00:00 GMT;
69 public Time(long time) { argument
70 super(time);
74 * Sets a <code>Time</code> object using a milliseconds time value.
76 * @param time milliseconds since January 1, 1970, 00:00:00 GMT;
80 public void setTime(long time) { argument
81 super.setTime(time);
85 * Converts a string in JDBC time escap
[all...]
H A DTimestamp.java98 * using a milliseconds time value. The
103 * @param time milliseconds since January 1, 1970, 00:00:00 GMT.
108 public Timestamp(long time) { argument
109 super((time/1000)*1000);
110 nanos = (int)((time%1000) * 1000000);
113 super.setTime(((time/1000)-1)*1000);
118 * Sets this <code>Timestamp</code> object to represent a point in time that is
119 * <tt>time</tt> milliseconds after January 1, 1970 00:00:00 GMT.
121 * @param time the number of milliseconds.
123 * @see #Timestamp(long time)
126 setTime(long time) argument
[all...]
/libcore/luni/src/test/java/tests/java/sql/
H A DSelectFunctionalityTest.java50 private static Time time; field in class:SelectFunctionalityTest
103 time = new Time(currentTime);
161 time.toString(), result.getTime("ftime").toString());
194 prepStatement.setTime(10, time);
222 time.toString(), result.getTime("ftime").toString());
/libcore/ojluni/src/main/java/java/util/
H A DTimer.java32 * background thread. Tasks may be scheduled for one-time execution, or for
37 * Timer tasks should complete quickly. If a timer task takes excessive time
61 * <p>This class does <i>not</i> offer real-time guarantees: it schedules
71 * time units, and doesn't require subclassing {@code TimerTask} (just
197 * Schedules the specified task for execution at the specified time. If
198 * the time is in the past, the task is scheduled for immediate execution.
201 * @param time time at which task is to be executed.
202 * @throws IllegalArgumentException if <tt>time.getTime()</tt> is negative.
205 * @throws NullPointerException if {@code task} or {@code time} i
207 schedule(TimerTask task, Date time) argument
386 sched(TimerTask task, long time, long period) argument
[all...]
H A DDate.java43 * in time, with millisecond precision.
50 * <code>Calendar</code> class should be used to convert between dates and time
56 * coordinated universal time (UTC), it may not do so exactly,
69 * time (GMT), which is equivalent to universal time (UT). GMT is
79 * corrections applied. There are other time and date systems as
80 * well; for example, the time scale used by the satellite-based
113 * minute, but this specification follows the date and time conventions
139 * If cdate is null, then fastTime indicates the time in millis.
142 * time
917 setTime(long time) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileSystem.java141 * Return the time at which the file or directory denoted by the given
193 * Set the last-modified time of the file or directory denoted by the
197 public abstract boolean setLastModifiedTime(File f, long time); argument
H A DUnixFileSystem.java327 public boolean setLastModifiedTime(File f, long time) { argument
329 return setLastModifiedTime0(f, time);
332 private native boolean setLastModifiedTime0(File f, long time); argument
H A DFile.java864 * Returns the time that the file denoted by this abstract pathname was
867 * @return A <code>long</code> value representing the time the file was
1330 * Sets the last-modified time of the file or directory named by this
1338 * truncated) <code>time</code> argument that was passed to this method.
1340 * @param time The new last-modified time, measured in milliseconds since
1355 public boolean setLastModified(long time) { argument
1356 if (time < 0) throw new IllegalArgumentException("Negative time");
1364 return fs.setLastModifiedTime(this, time);
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipEntry.java40 long time = -1; // modification time (in DOS time) field in class:ZipEntry
64 long size, int compressionMethod, int time, byte[] extra,
72 this.time = time;
105 time = e.time;
135 * Sets the modification time of the entry.
136 * @param time th
63 ZipEntry(String name, String comment, long crc, long compressedSize, long size, int compressionMethod, int time, byte[] extra, long dataOffset) argument
140 setTime(long time) argument
337 javaToDosTime(long time) argument
[all...]
/libcore/ojluni/src/main/native/
H A DUnixFileSystem_md.c28 #include <sys/time.h>
393 jobject file, jlong time)
403 /* Preserve access time */
407 /* Change last-modified time */
408 tv[1].tv_sec = time / 1000;
409 tv[1].tv_usec = (time % 1000) * 1000;
392 Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this, jobject file, jlong time) argument
/libcore/ojluni/src/main/java/sun/misc/
H A DUnsafe.java307 * Parks the calling thread for the specified amount of time,
311 * and without the indicated amount of time elapsing).
316 * @param absolute whether the given time value is absolute
319 * @param time the (absolute millis or relative nanos) time value
321 public void park(boolean absolute, long time) { argument
323 Thread.currentThread().parkUntil$(time);
325 Thread.currentThread().parkFor$(time);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DScheduledExecutorSubclassTest.java75 public V get(long time, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { argument
76 V v = task.get(time, unit);
/libcore/luni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java35 * without any real-time guarantees about when, after they are
37 * execution time are enabled in first-in-first-out (FIFO) order of
158 /** The nanoTime-based time when the task is enabled to execute. */
159 private volatile long time; field in class:ScheduledThreadPoolExecutor.ScheduledFutureTask
178 * Creates a one-shot action with given nanoTime-based trigger time.
183 this.time = triggerTime;
190 * trigger time and period.
195 this.time = triggerTime;
201 * Creates a one-shot action with given nanoTime-based trigger time.
206 this.time
[all...]

Completed in 1178 milliseconds

12