Searched refs:time (Results 1 - 25 of 64) sorted by relevance

123

/libcore/benchmarks/src/benchmarks/regression/
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 DMessageDigestBenchmark.java40 public void time(int reps) throws Exception { method in class:MessageDigestBenchmark
H A DSSLLoopbackBenchmark.java26 public void time(int reps) throws Exception { method in class:SSLLoopbackBenchmark
H A DKeyPairGeneratorBenchmark.java57 public void time(int reps) throws Exception { method in class:KeyPairGeneratorBenchmark
H A DDigestBenchmark.java59 public void time(int reps) throws Exception { method in class:DigestBenchmark
H A DSSLSocketBenchmark.java81 public void time(int reps) throws Exception { method in class:SSLSocketBenchmark
/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/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 DStampedLock.java40 * of a read-lock, that can be broken by a writer at any time. The
339 * given time and the current thread has not been interrupted.
343 * @param time the maximum time to wait for the lock
344 * @param unit the time unit of the {@code time} argument
350 public long tryWriteLock(long time, TimeUnit unit) argument
352 long nanos = unit.toNanos(time);
420 * given time and the current thread has not been interrupted.
424 * @param time th
431 tryReadLock(long time, TimeUnit unit) argument
856 tryLock(long time, TimeUnit unit) argument
872 tryLock(long time, TimeUnit unit) argument
[all...]
/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/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/ojluni/src/main/java/java/util/
H A DSimpleTimeZone.java51 * that represents a time zone for use with a Gregorian calendar.
53 * and end rules for a daylight saving time schedule. Since it only holds
57 * saving time schedule starts in effect.
59 * To construct a <code>SimpleTimeZone</code> with a daylight saving time
61 * <em>start-rule</em> and <em>end-rule</em>. A day when daylight saving time
101 * The time of the day at which daylight saving time starts or ends is
103 * <em>mode</em>s to specify the time: {@link #WALL_TIME}, {@link
105 * saving time ends
106 * at 2:00 am in the wall clock time, i
672 getOffset(BaseCalendar cal, BaseCalendar.Date cdate, int year, long time) argument
[all...]
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...]
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DAbstractCalendar.java117 int ms = 0; // time of day
122 // adjust to local time if `date' has time zone.
130 // We need to calculate the given millis and time zone
164 // calculate time fields from the time of day
180 // adjust time zone and daylight saving
229 int time = fraction;
230 int hours = time / HOUR_IN_MILLIS;
231 time
[all...]
H A DJulianCalendar.java95 String time = super.toString();
96 time = time.substring(time.indexOf('T'));
108 sb.append(time);
H A DLocalGregorianCalendar.java102 String time = super.toString();
103 time = time.substring(time.indexOf('T'));
115 sb.append(time);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DControlTest.java466 long time = 0L;
477 time = System.currentTimeMillis();
481 PROPERTIES, URLLoader, bundle, time));
486 PROPERTIES, URLLoader, bundle, time));
489 PROPERTIES, URLLoader, bundle, time));
495 PROPERTIES, systemLoader, bundle, time));
501 PROPERTIES, URLLoader, otherBundle, time));
506 PROPERTIES, URLLoader, otherBundle, time));
507 // other time
518 time
[all...]
H A DTimerTaskTest.java107 "TimerTask.cancel() should return false if called a second time",
145 "TimerTask.cancel() should return false if called a second time",
183 long time = System.currentTimeMillis() + 100;
191 assertTrue(scheduledExecutionTime <= time);
194 // Ensure scheduledExecutionTime is the last scheduled time
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DURICertStore.java109 // time we last checked for an update
112 // time server returned as last modified time stamp
268 long time = System.currentTimeMillis();
269 if (time - lastChecked < CHECK_INTERVAL) {
275 lastChecked = time;
381 long time = System.currentTimeMillis();
382 if (time - lastChecked < CHECK_INTERVAL) {
388 lastChecked = time;
/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...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSimpleDateFormatTest.java528 Date time = cal.getTime();
529 assertParse("h", " 12", time, 1, 3);
530 assertParse("H", " 0", time, 1, 2);
531 assertParse("k", " 24", time, 1, 3);
532 assertParse("K", " 0", time, 1, 2);
535 time = cal.getTime();
536 assertParse("h", "1", time, 0, 1);
537 assertParse("H", "1 ", time, 0, 1);
538 assertParse("k", "1", time, 0, 1);
539 assertParse("K", "1", time,
[all...]

Completed in 593 milliseconds

123