/libcore/luni/src/main/java/java/util/ |
H A D | TimerTask.java | 21 * 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 D | SimpleTimeZone.java | 27 * 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 D | Calendar.java | 34 * 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 D | GregorianCalendar.java | 49 * 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 D | Grego.java | 23 * 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 D | TimeZone.java | 32 * {@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 300 getOffset(long time) argument 429 inDaylightTime(Date time) argument [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
H A D | ZipEntry.java | 50 int time = -1; field in class:ZipEntry 71 long size, int compressionMethod, int time, int modDate, byte[] extra, 79 this.time = time; 169 * Gets the last modification time of this {@code ZipEntry}. 171 * @return the last modification time as the number of milliseconds since 175 if (time != -1) { 179 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f, 180 (time 70 ZipEntry(String name, String comment, long crc, long compressedSize, long size, int compressionMethod, int time, int modDate, byte[] extra, int nameLength, long localHeaderRelOffset, long dataOffset) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SSLSocketFactoryBenchmark.java | 24 public void time(int reps) throws Exception { method in class:SSLSocketFactoryBenchmark
|
H A D | JarFileBenchmark.java | 32 public void time(int reps) throws Exception { method in class:JarFileBenchmark
|
H A D | MessageDigestBenchmark.java | 41 public void time(int reps) throws Exception { method in class:MessageDigestBenchmark
|
H A D | DigestBenchmark.java | 58 public void time(int reps) throws Exception { method in class:DigestBenchmark
|
H A D | KeyPairGeneratorBenchmark.java | 60 public void time(int reps) throws Exception { method in class:KeyPairGeneratorBenchmark
|
H A D | SSLLoopbackBenchmark.java | 37 public void time(int reps) throws Exception { method in class:SSLLoopbackBenchmark
|
H A D | SSLSocketBenchmark.java | 80 public void time(int reps) throws Exception { method in class:SSLSocketBenchmark
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | Condition.java | 42 * 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 D | Lock.java | 19 * 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/libart/src/main/java/sun/misc/ |
H A D | Unsafe.java | 281 * Parks the calling thread for the specified amount of time, 285 * and without the indicated amount of time elapsing). 290 * @param absolute whether the given time value is absolute 293 * @param time the (absolute millis or relative nanos) time value 295 public void park(boolean absolute, long time) { argument 297 Thread.currentThread().parkUntil(time); 299 Thread.currentThread().parkFor(time);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ControlTest.java | 466 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 D | TimerTaskTest.java | 107 "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/main/java/java/sql/ |
H A D | Time.java | 24 * 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/main/java/java/util/logging/ |
H A D | XMLFormatter.java | 51 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | SimpleDateFormatTest.java | 530 Date time = cal.getTime(); 531 assertParse("h", " 12", time, 1, 3); 532 assertParse("H", " 0", time, 1, 2); 533 assertParse("k", " 24", time, 1, 3); 534 assertParse("K", " 0", time, 1, 2); 537 time = cal.getTime(); 538 assertParse("h", "1", time, 0, 1); 539 assertParse("H", "1 ", time, 0, 1); 540 assertParse("k", "1", time, 0, 1); 541 assertParse("K", "1", time, [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ScheduledThreadPoolExecutor.java | 27 * 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 D | TimeZoneTest.java | 70 // Any time before we have transition data is considered non-daylight, even in summer. 77 // The "Asia/Saigon" time zone has just a few transitions, and hasn't changed in a 78 // long time, which is convenient for testing: 81 // 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 82 // 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 83 // 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 84 // 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 108 // 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 109 // 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 140 long time [all...] |
/libcore/luni/src/main/native/ |
H A D | java_lang_System.cpp | 33 #include <sys/time.h> 34 #include <time.h>
|