Searched refs:millis (Results 1 - 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/calendar/
H A DGregorian.java68 public Date getCalendarDate(long millis) { argument
69 return getCalendarDate(millis, newCalendarDate());
72 public Date getCalendarDate(long millis, CalendarDate date) { argument
73 return (Date) super.getCalendarDate(millis, date);
76 public Date getCalendarDate(long millis, TimeZone zone) { argument
77 return getCalendarDate(millis, newCalendarDate(zone));
H A DCalendarDate.java77 private int millis; // fractional part of the second field in class:CalendarDate
279 return millis;
282 public CalendarDate setMillis(int millis) { argument
283 if (this.millis != millis) {
284 this.millis = millis;
292 millis += n;
319 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { argument
323 setMillis(millis);
327 addTimeOfDay(int hours, int minutes, int seconds, int millis) argument
[all...]
H A DJulianCalendar.java125 public Date getCalendarDate(long millis) { argument
126 return getCalendarDate(millis, newCalendarDate());
129 public Date getCalendarDate(long millis, CalendarDate date) { argument
130 return (Date) super.getCalendarDate(millis, date);
133 public Date getCalendarDate(long millis, TimeZone zone) { argument
134 return getCalendarDate(millis, newCalendarDate(zone));
H A DLocalGregorianCalendar.java202 public Date getCalendarDate(long millis) { argument
203 return getCalendarDate(millis, newCalendarDate());
206 public Date getCalendarDate(long millis, TimeZone zone) { argument
207 return getCalendarDate(millis, newCalendarDate(zone));
210 public Date getCalendarDate(long millis, CalendarDate date) { argument
211 Date ldate = (Date) super.getCalendarDate(millis, date);
212 return adjustYear(ldate, millis, ldate.getZoneOffset());
215 private Date adjustYear(Date ldate, long millis, int zoneOffset) { argument
223 if (millis >= since) {
282 long millis
[all...]
H A DAbstractCalendar.java107 public CalendarDate getCalendarDate(long millis) { argument
108 return getCalendarDate(millis, newCalendarDate());
111 public CalendarDate getCalendarDate(long millis, TimeZone zone) { argument
113 return getCalendarDate(millis, date);
116 public CalendarDate getCalendarDate(long millis, CalendarDate date) { argument
126 zoneOffset = zi.getOffset(millis);
130 // We need to calculate the given millis and time zone
132 // compatibility. (i.e., millis + zoneOffset could cause
143 days += millis / DAY_IN_MILLIS;
144 ms += (int) (millis
[all...]
H A DCalendarSystem.java172 * @param millis the offset value in milliseconds from January 1,
177 public abstract CalendarDate getCalendarDate(long millis); argument
179 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); argument
181 public abstract CalendarDate getCalendarDate(long millis, TimeZone zone); argument
H A DImmutableGregorianDate.java137 public CalendarDate setMillis(int millis) { argument
157 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { argument
161 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { argument
/libcore/luni/src/main/java/android/system/
H A DStructTimeval.java39 public static StructTimeval fromMillis(long millis) { argument
40 long tv_sec = millis / 1000;
41 long tv_usec = (millis - (tv_sec * 1000)) * 1000;
/libcore/jsr166-tests/src/test/java/jsr166/
H A DSystemTest.java26 * Worst case rounding for millisecs; set for 60 cycle millis clock.
33 * Nanos between readings of millis is no longer than millis (plus
45 long millis = m2 - m1;
49 assertTrue(nanosAsMillis <= millis + MILLIS_ROUND);
65 long millis = m2 - m1;
70 assertTrue(millis <= nanosAsMillis + MILLIS_ROUND);
H A DLockSupportTest.java51 void park(long millis) {
56 void park(long millis) {
57 LockSupport.parkUntil(deadline(millis));
61 void park(long millis) {
62 LockSupport.parkNanos(MILLISECONDS.toNanos(millis));
69 void park(long millis) {
74 void park(long millis) {
75 LockSupport.parkUntil(theBlocker(), deadline(millis));
79 void park(long millis) {
81 MILLISECONDS.toNanos(millis));
86 park(long millis) argument
89 deadline(long millis) argument
[all...]
H A DJSR166TestCase.java838 static void delay(long millis) throws InterruptedException { argument
839 long nanos = millis * (1000 * 1000);
842 if (millis > 0L)
843 Thread.sleep(millis);
847 millis = nanos / (1000 * 1000);
990 void assertThreadStaysAlive(Thread thread, long millis) { argument
993 delay(millis);
1011 void assertThreadsStayAlive(long millis, Thread... threads) { argument
1014 delay(millis);
1197 void sleep(long millis) { argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DObject.java393 * @param millis the maximum time to wait in milliseconds.
406 public final void wait(long millis) throws InterruptedException { argument
407 wait(millis, 0);
458 * @param millis the maximum time to wait in milliseconds.
472 public final native void wait(long millis, int nanos) throws InterruptedException; argument
H A DThread.java301 * @param millis
305 * if the value of {@code millis} is negative
312 public static void sleep(long millis) throws InterruptedException { argument
313 Thread.sleep(millis, 0);
316 private static native void sleep(Object lock, long millis, int nanos) argument
326 * @param millis
333 * if the value of {@code millis} is negative, or the value of
341 public static void sleep(long millis, int nanos) argument
343 if (millis < 0) {
344 throw new IllegalArgumentException("millis <
1279 join(long millis) argument
1330 join(long millis, int nanos) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerInputBuffer.java306 int year, month, day, hour, minute, second, millis;
347 millis = 0;
367 millis += 100 * Character.digit((char)buf[pos++], 10);
368 millis += 10 * Character.digit((char)buf[pos++], 10);
369 millis += Character.digit((char)buf[pos++], 10);
372 millis += 100 * Character.digit((char)buf[pos++], 10);
373 millis += 10 * Character.digit((char)buf[pos++], 10);
376 millis += 100 * Character.digit((char)buf[pos++], 10);
399 date.setTimeOfDay(hour, minute, second, millis);
/libcore/luni/src/test/java/libcore/java/lang/ref/
H A DFinalizeTest.java115 public void createSlowFinalizer(final long millis, final CountDownLatch latch) { argument
118 System.out.println("finalize sleeping " + millis + " ms");
119 Thread.sleep(millis);
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogRecord.java122 private long millis; field in class:LogRecord
166 * The millis property will be initialized to the current time.
184 millis = System.currentTimeMillis();
419 * @return event time in millis since 1970
422 return millis;
428 * @param millis event time in millis since 1970
430 public void setMillis(long millis) { argument
431 this.millis = millis;
[all...]
H A DXMLFormatter.java58 private void appendISO8601(StringBuffer sb, long millis) { argument
59 Date date = new Date(millis);
112 sb.append(" <millis>");
114 sb.append("</millis>\n");
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java290 // Convert the current time in millis into seconds. Unlike other places that convert
357 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { argument
377 calc += millis;
423 * @param millis the time in milliseconds.
427 int findOffsetIndexForTimeInMilliseconds(long millis) { argument
430 // It can't just divide a timestamp in millis by 1000 to obtain a transition time in
440 return findOffsetIndexForTimeInSeconds(roundDownMillisToSeconds(millis));
451 * <p>This basically does the same as {@code (long) Math.floor(millis / 1000.0)} but should be
454 * @param millis the time in milliseconds, may be negative.
457 static long roundDownMillisToSeconds(long millis) { argument
484 roundUpMillisToSeconds(long millis) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DThreadTest.java65 int millis = 1000;
68 Thread.sleep(millis);
71 long offBy = Math.abs(elapsed - millis);
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetGetterTests.java933 long millis = cal.getTime().getTime();
934 Time t1 = new java.sql.Time(millis);
992 long millis = cal1.getTime().getTime();
993 Time t1 = new java.sql.Time(millis);
1057 long millis = cal.getTime().getTime();
1058 Time t1 = new java.sql.Time(millis);
1117 long millis = cal1.getTime().getTime();
1118 Time t1 = new java.sql.Time(millis);
1176 long millis = cal2.getTime().getTime();
1177 Timestamp t2 = new Timestamp(millis);
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DSimpleTimeZoneTest.java200 * @return an array of the entry and exit time in millis.
252 private static String formatTime(TimeZone timeZone, long millis) { argument
254 cal.setTimeInMillis(millis);
/libcore/ojluni/src/main/java/java/util/
H A DSimpleTimeZone.java598 * @param millis The milliseconds in day in <em>standard</em> local time.
602 * or <code>millis</code> parameters are out of range
605 int millis)
639 time += millis - rawOffset; // UTC time
651 time = cal.getTime(cdate) + millis - rawOffset;
661 || (millis < 0 || millis >= (24*60*60*1000))) {
604 getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) argument
H A DGregorianCalendar.java690 * @param millis the value used to set the <code>MILLISECOND</code> calendar field
693 int hourOfDay, int minute, int second, int millis) {
721 this.internalSet(MILLISECOND, millis);
1058 long millis = adjustForZoneAndDaylightSavingsTime(tzMask, utcTime, getZone());
1061 setTimeInMillis(millis);
2715 // millis represents local wall-clock time in milliseconds.
2716 long millis = (fixedDate - EPOCH_OFFSET) * ONE_DAY + timeOfDay;
2735 millis = adjustForZoneAndDaylightSavingsTime(tzMask, millis, zone);
2738 time = millis;
692 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, int millis) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java381 int millis = (Integer) value;
382 StructTimeval tv = StructTimeval.fromMillis(millis);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java708 private static void delay(int millis) { argument
712 Thread.sleep(millis);

Completed in 1998 milliseconds

12