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

12

/libcore/luni/src/main/java/java/util/
H A DTimerTask.java21 * The {@code TimerTask} class represents a task to run at a specified time. The task
42 * The time when task will be executed, or the time when task was launched
57 * Method called from the Timer object when scheduling an event @param time
59 void setScheduledTime(long time) { argument
61 scheduledTime = time;
100 * Returns the scheduled execution time. If the task execution is in
101 * progress it returns the execution time of the ongoing task. Tasks which
104 * @return the most recent execution time.
H A DSimpleTimeZone.java27 * that represents a time zone for use with a Gregorian calendar. This class
33 * (dayOfWeekInMonth = -1) Sunday in October, at 2 AM in standard time.
55 * The constant for representing a start or end time in GMT time mode.
60 * The constant for representing a start or end time in standard local time mode,
67 * The constant for representing a start or end time in local wall clock time
78 * Constructs a {@code SimpleTimeZone} with the given base time zone offset from GMT
79 * and time zon
342 getOffset(int era, int year, int month, int day, int dayOfWeek, int time) argument
472 getOffset(long time) argument
526 inDaylightTime(Date time) argument
555 checkRange(int month, int dayOfWeek, int time) argument
616 setEndRule(int month, int dayOfMonth, int time) argument
639 setEndRule(int month, int day, int dayOfWeek, int time) argument
663 setEndRule(int month, int day, int dayOfWeek, int time, boolean after) argument
725 setStartRule(int month, int dayOfMonth, int time) argument
748 setStartRule(int month, int day, int dayOfWeek, int time) argument
772 setStartRule(int month, int day, int dayOfWeek, int time, boolean after) argument
[all...]
H A DCalendar.java34 * specific instant in time with millisecond precision. See {@link Date} for
45 * returns a calendar whose locale is based on system settings and whose time fields
46 * have been initialized with the current date and time: <blockquote>
53 * A {@code Calendar} object can produce all the time field values needed
54 * to implement the date-time formatting for a particular language and calendar
95 * When computing a {@code Date} from time fields, two special
125 * For the time of day:
142 * three consecutive minutes in time.
150 * The date or time format strings are not part of the definition of a calendar,
205 * A smaller field represents a smaller unit of time
332 protected long time; field in class:Calendar
[all...]
H A DGrego.java23 * used by time zone and calendar code. Do not instantiate.
161 * Convert long time to date/time fields
170 public static int[] timeToFields(long time, int[] fields) { argument
175 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder);
H A DGregorianCalendar.java49 * current rules indefinitely far backward and forward in time. As a result,
117 * // create a Pacific Standard Time time zone
120 * // set up rules for daylight savings time
124 * // create a GregorianCalendar with the Pacific Daylight time zone
125 * // and the current date and time
228 * time with the default {@code Locale} and {@code TimeZone}.
252 * time in the default {@code TimeZone} and {@code Locale}.
272 * time in the default {@code TimeZone} and {@code Locale}.
300 * time and using the specified {@code Locale} and the default {@code TimeZone}.
311 * time an
[all...]
H A DTimeZone.java32 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or
36 * the time zone where the program is running.
47 * <li>Somewhere like California, where daylight time is used.
49 * must be used to determine whether or not daylight time applies to a given {@code Date}.
52 * actual offset from UTC <i>for a given point in time</i>; this is the raw offset plus (if the
53 * point in time is {@link #inDaylightTime in daylight time}) the applicable
55 * <li>Somewhere like Japan, where daylight time is not used.
95 * Returns a new time zone with the same ID, raw offset, and daylight
96 * savings time rule
279 getOffset(long time) argument
409 inDaylightTime(Date time) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DCondition.java42 * only notifying a single thread at a time when items or spaces become
242 * or the specified waiting time elapses.
255 * <li>The specified waiting time elapses; or
315 * of the specified waiting time. In either case the implementation
319 * @param nanosTimeout the maximum time to wait, in nanoseconds
321 * the time spent waiting upon return from this method.
324 * the desired time. A value less than or equal to zero
325 * indicates that no time remains.
333 * or the specified waiting time elapses. This method is behaviorally
335 * <pre> {@code awaitNanos(unit.toNanos(time)) >
344 await(long time, TimeUnit unit) argument
[all...]
H A DLock.java19 * shared resource: only one thread at a time can acquire the lock and
206 * Acquires the lock only if it is free at the time of invocation.
235 * Acquires the lock if it is free within the given waiting time and the
247 * <li>The specified waiting time elapses
261 * <p>If the specified waiting time elapses then the value {@code false}
263 * If the time is
283 * @param time the maximum time to wait for the lock
284 * @param unit the time unit of the {@code time} argumen
292 tryLock(long time, TimeUnit unit) argument
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DZipEntry.java49 int time = -1; field in class:ZipEntry
151 * Gets the last modification time of this {@code ZipEntry}.
153 * @return the last modification time as the number of milliseconds since
157 if (time != -1) {
161 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f,
162 (time & 0x1f) << 1);
267 * Sets the modification time of this {@code ZipEntry}.
270 * the modification time as the number of milliseconds since Jan.
279 time
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DJarFileBenchmark.java32 public void time(int reps) throws Exception { method in class:JarFileBenchmark
H A DMessageDigestBenchmark.java41 public void time(int reps) throws Exception { method in class:MessageDigestBenchmark
H A DDigestBenchmark.java58 public void time(int reps) throws Exception { method in class:DigestBenchmark
H A DKeyPairGeneratorBenchmark.java60 public void time(int reps) throws Exception { method in class:KeyPairGeneratorBenchmark
H A DSSLSocketBenchmark.java94 public void time(int reps) throws Exception { method in class:SSLSocketBenchmark
/libcore/libart/src/main/java/sun/misc/
H A DUnsafe.java295 * Parks the calling thread for the specified amount of time,
299 * and without the indicated amount of time elapsing).
304 * @param absolute whether the given time value is absolute
307 * @param time the (absolute millis or relative nanos) time value
309 public void park(boolean absolute, long time) { argument
311 Thread.currentThread().parkUntil(time);
313 Thread.currentThread().parkFor(time);
/libcore/libdvm/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/luni/src/main/java/java/sql/
H A DTime.java24 * format and parse the time's representation as a String in JDBC escape format.
57 * Constructs a {@code Time} object using a supplied time specified in
164 * Sets the time for this {@code Time} object to the supplied milliseconds
167 * @param time
168 * A time value expressed as milliseconds since the <i>Epoch</i>.
173 public void setTime(long time) { argument
174 super.setTime(time);
200 * Private method to format the time
211 * Creates a {@code Time} object from a string holding a time represented in
217 * A String representing the time valu
[all...]
/libcore/crypto/src/main/java/org/conscrypt/
H A DSSLSessionImpl.java78 long time = creationTime / 1000;
79 id[28] = (byte) ((time & 0xFF000000) >>> 24);
80 id[29] = (byte) ((time & 0x00FF0000) >>> 16);
81 id[30] = (byte) ((time & 0x0000FF00) >>> 8);
82 id[31] = (byte) ((time & 0x000000FF));
/libcore/luni/src/main/java/java/util/logging/
H A DXMLFormatter.java51 long time = r.getMillis();
53 String date = MessageFormat.format("{0, date} {0, time}", new Object[] { new Date(time) });
59 append(sb, 1, "millis", time);
/libcore/luni/src/main/native/
H A Djava_lang_System.cpp33 #include <sys/time.h>
34 #include <time.h>
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CertImpl.java140 private void checkValidity(long time) argument
142 if (time < getNotBeforeInternal()) {
143 throw new CertificateNotYetValidException("current time: " + new Date(time)
144 + ", validation time: " + new Date(getNotBeforeInternal()));
146 if (time > getNotAfterInternal()) {
147 throw new CertificateExpiredException("current time: " + new Date(time)
148 + ", expiration time: " + new Date(getNotAfterInternal()));
/libcore/luni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java27 * without any real-time guarantees about when, after they are
29 * execution time are enabled in first-in-first-out (FIFO) order of
146 * Returns current nanosecond time.
158 /** The time the task is enabled to execute in nanoTime units */
159 private long time; field in class:ScheduledThreadPoolExecutor.ScheduledFutureTask
178 * Creates a one-shot action with given nanoTime-based trigger time.
182 this.time = ns;
188 * Creates a periodic action with given nano time and period.
192 this.time = ns;
198 * Creates a one-shot action with given nanoTime-based trigger time
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DTimeZoneTest.java69 // Any time before we have transition data is considered non-daylight, even in summer.
76 // The "Asia/Saigon" time zone has just a few transitions, and hasn't changed in a
77 // long time, which is convenient for testing:
80 // 0 : time=-2005974400 Fri Jun 08 16:53:20 1906 GMT+00:00 = Fri Jun 08 23:59:40 1906 ICT isDst=0 offset= 380 gmtOffset=25580
81 // 1 : time=-1855983920 Fri Mar 10 16:54:40 1911 GMT+00:00 = Fri Mar 10 23:54:40 1911 ICT isDst=0 offset= 0 gmtOffset=25200
82 // 2 : time=-1819954800 Tue Apr 30 17:00:00 1912 GMT+00:00 = Wed May 01 01:00:00 1912 ICT isDst=0 offset= 3600 gmtOffset=28800
83 // 3 : time=-1220428800 Thu Apr 30 16:00:00 1931 GMT+00:00 = Thu Apr 30 23:00:00 1931 ICT isDst=0 offset= 0 gmtOffset=25200
107 // 0 : time=-1849388260 Fri May 26 01:02:20 1911 GMT+00:00 = Fri May 26 00:02:20 1911 GMT isDst=0 offset=-3600 gmtOffset=-3600
108 // 1 : time= 157770000 Wed Jan 01 01:00:00 1975 GMT+00:00 = Wed Jan 01 01:00:00 1975 GMT isDst=0 offset= 0 gmtOffset=0
139 long time
[all...]
/libcore/luni/src/test/java/tests/api/java/util/
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",
180 long time = System.currentTimeMillis() + 100;
188 assertTrue(scheduledExecutionTime <= time);
191 // Ensure scheduledExecutionTime is the last scheduled time
/libcore/luni/src/test/java/tests/support/
H A DDatabaseCreator.java74 + "fdate date," + " ftime time, PRIMARY KEY (finteger))";
351 long time) throws SQLException {
362 + new Date(time).toString() + "'," + " '"
363 + new Time(time).toString() + "')";
350 fillTestTable2(Connection conn, int startID, int endID, long time) argument

Completed in 988 milliseconds

12