Searched refs:time (Results 1 - 25 of 34) 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
556 checkRange(int month, int dayOfWeek, int time) argument
617 setEndRule(int month, int dayOfMonth, int time) argument
640 setEndRule(int month, int day, int dayOfWeek, int time) argument
664 setEndRule(int month, int day, int dayOfWeek, int time, boolean after) argument
726 setStartRule(int month, int dayOfMonth, int time) argument
749 setStartRule(int month, int day, int dayOfWeek, int time) argument
773 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 DTimeZone.java28 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or
32 * the time zone where the program is running.
43 * <li>Somewhere like California, where daylight time is used.
45 * must be used to determine whether or not daylight time applies to a given {@code Date}.
48 * actual offset from UTC <i>for a given point in time</i>; this is the raw offset plus (if the
49 * point in time is {@link #inDaylightTime in daylight time}) the applicable
51 * <li>Somewhere like Japan, where daylight time is not used.
94 * Returns a new time zone with the same ID, raw offset, and daylight
95 * savings time rule
256 getOffset(long time) argument
386 inDaylightTime(Date time) argument
[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...]
/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
205 * Acquires the lock only if it is free at the time of invocation.
234 * Acquires the lock if it is free within the given waiting time and the
246 * <li>The specified waiting time elapses
260 * <p>If the specified waiting time elapses then the value {@code false}
262 * If the time is
282 * @param time the maximum time to wait for the lock
283 * @param unit the time unit of the {@code time} argumen
291 tryLock(long time, TimeUnit unit) argument
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DZipEntry.java47 int compressionMethod = -1, time = -1, modDate = -1; field in class:ZipEntry
152 * Gets the last modification time of this {@code ZipEntry}.
154 * @return the last modification time as the number of milliseconds since
158 if (time != -1) {
162 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f,
163 (time & 0x1f) << 1);
268 * Sets the modification time of this {@code ZipEntry}.
271 * the modification time as the number of milliseconds since Jan.
280 time
[all...]
/libcore/luni/src/main/java/sun/misc/
H A DUnsafe.java305 * Parks the calling thread for the specified amount of time,
309 * and without the indicated amount of time elapsing).
314 * @param absolute whether the given time value is absolute
317 * @param time the (absolute millis or relative nanos) time value
319 public void park(boolean absolute, long time) { argument
321 Thread.currentThread().parkUntil(time);
323 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/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/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLSessionImpl.java69 long time = creationTime / 1000;
70 id[28] = (byte) ((time & 0xFF000000) >>> 24);
71 id[29] = (byte) ((time & 0x00FF0000) >>> 16);
72 id[30] = (byte) ((time & 0x0000FF00) >>> 8);
73 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/java/org/apache/harmony/security/provider/cert/
H A DX509CertImpl.java141 private void checkValidity(long time) argument
143 if (time < getNotBeforeInternal()) {
144 throw new CertificateNotYetValidException("current time: " + new Date(time)
145 + ", validation time: " + new Date(getNotBeforeInternal()));
147 if (time > getNotAfterInternal()) {
148 throw new CertificateExpiredException("current time: " + new Date(time)
149 + ", expiration time: " + new Date(getNotAfterInternal()));
/libcore/luni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java28 * without any real-time guarantees about when, after they are
30 * execution time are enabled in first-in-first-out (FIFO) order of
147 * Returns current nanosecond time.
159 /** The time the task is enabled to execute in nanoTime units */
160 private long time; field in class:ScheduledThreadPoolExecutor.ScheduledFutureTask
179 * Creates a one-shot action with given nanoTime-based trigger time.
183 this.time = ns;
189 * Creates a periodic action with given nano time and period.
193 this.time = ns;
203 this.time
[all...]
H A DThreadPoolExecutor.java98 * time-out policy to core threads as well, so long as the
157 * time for more threads than you otherwise allow. Use of small queues
320 * time, but need not hit each state. The transitions are:
486 * If true, core threads use keepAliveTime to time out waiting
493 * (and not allow to time out etc) unless allowCoreThreadTimeOut
983 boolean timedOut = false; // Did the last poll() time out?
1115 * the core, this is the maximum time that excess idle threads
1117 * @param unit the time unit for the {@code keepAliveTime} argument
1146 * the core, this is the maximum time that excess idle threads
1148 * @param unit the time uni
1628 setKeepAliveTime(long time, TimeUnit unit) argument
[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
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprofReader.java147 long time = in.readLong();
149 System.out.println("\ttime=" + Long.toHexString(time) + " " + new Date(time));
151 hprofData.setStartMillis(time);
411 // stack are taken around the same time. if we have a
/libcore/luni/src/main/java/java/io/
H A DFile.java45 * permissions, file type, and last modified time.
570 * Returns the time when this file was last modified, measured in
574 * @return the time when this file was last modified.
586 * Sets the time this file was last modified, measured in milliseconds since
592 * @param time
593 * the last modification time for this file.
597 * if {@code time < 0}.
599 public boolean setLastModified(long time) { argument
600 if (time < 0) {
601 throw new IllegalArgumentException("time <
606 setLastModifiedImpl(String path, long time) argument
[all...]
/libcore/luni/src/main/java/java/lang/
H A DThread.java62 * amount of CPU time the {@code Thread} gets. It can be set using the
89 * state at a time.
109 * The thread is waiting for a specified amount of time.
771 * @param millis The maximum time to wait (in milliseconds).
786 * @param millis The maximum time to wait (in milliseconds).
1002 * of time (given in milliseconds). The precision is not guaranteed - the
1005 * @param time
1006 * The time to sleep in milliseconds.
1012 public static void sleep(long time) throws InterruptedException { argument
1013 Thread.sleep(time,
1275 parkUntil(long time) argument
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java105 // Rather than keep offsets from UTC, we use offsets from local time, so the raw offset
181 @Override public boolean inDaylightTime(Date time) { argument
182 long when = time.getTime();
270 f.format("%4d : time=%11d %s = %s isDst=%d offset=%5d gmtOffset=%d\n",
/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/luni/src/main/native/
H A Djava_io_File.cpp39 #include <time.h>
78 // We want to preserve the access time.

Completed in 409 milliseconds

12