Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/sun/util/calendar/
DGregorian.java68 public Date getCalendarDate(long millis) { in getCalendarDate() argument
69 return getCalendarDate(millis, newCalendarDate()); in getCalendarDate()
72 public Date getCalendarDate(long millis, CalendarDate date) { in getCalendarDate() argument
73 return (Date) super.getCalendarDate(millis, date); in getCalendarDate()
76 public Date getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument
77 return getCalendarDate(millis, newCalendarDate(zone)); in getCalendarDate()
DCalendarDate.java77 private int millis; // fractional part of the second field in CalendarDate
279 return millis; in getMillis()
282 public CalendarDate setMillis(int millis) { in setMillis() argument
283 if (this.millis != millis) { in setMillis()
284 this.millis = millis; in setMillis()
292 millis += n; in addMillis()
319 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument
323 setMillis(millis); in setTimeOfDay()
327 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument
331 addMillis(millis); in addTimeOfDay()
[all …]
DLocalGregorianCalendar.java202 public Date getCalendarDate(long millis) { in getCalendarDate() argument
203 return getCalendarDate(millis, newCalendarDate()); in getCalendarDate()
206 public Date getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument
207 return getCalendarDate(millis, newCalendarDate(zone)); in getCalendarDate()
210 public Date getCalendarDate(long millis, CalendarDate date) { in getCalendarDate() argument
211 Date ldate = (Date) super.getCalendarDate(millis, date); in getCalendarDate()
212 return adjustYear(ldate, millis, ldate.getZoneOffset()); in getCalendarDate()
215 private Date adjustYear(Date ldate, long millis, int zoneOffset) { in adjustYear() argument
223 if (millis >= since) { in adjustYear()
282 long millis = 0; in normalize() local
[all …]
DJulianCalendar.java125 public Date getCalendarDate(long millis) { in getCalendarDate() argument
126 return getCalendarDate(millis, newCalendarDate()); in getCalendarDate()
129 public Date getCalendarDate(long millis, CalendarDate date) { in getCalendarDate() argument
130 return (Date) super.getCalendarDate(millis, date); in getCalendarDate()
133 public Date getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument
134 return getCalendarDate(millis, newCalendarDate(zone)); in getCalendarDate()
DAbstractCalendar.java107 public CalendarDate getCalendarDate(long millis) { in getCalendarDate() argument
108 return getCalendarDate(millis, newCalendarDate()); in getCalendarDate()
111 public CalendarDate getCalendarDate(long millis, TimeZone zone) { in getCalendarDate() argument
113 return getCalendarDate(millis, date); in getCalendarDate()
116 public CalendarDate getCalendarDate(long millis, CalendarDate date) { in getCalendarDate() argument
126 zoneOffset = zi.getOffset(millis); in getCalendarDate()
143 days += millis / DAY_IN_MILLIS; in getCalendarDate()
144 ms += (int) (millis % DAY_IN_MILLIS); in getCalendarDate()
DCalendarSystem.java177 public abstract CalendarDate getCalendarDate(long millis); in getCalendarDate() argument
179 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); in getCalendarDate() argument
181 public abstract CalendarDate getCalendarDate(long millis, TimeZone zone); in getCalendarDate() argument
DImmutableGregorianDate.java137 public CalendarDate setMillis(int millis) { in setMillis() argument
157 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument
161 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DLockSupportTest.java51 void park(long millis) { in park() argument
56 void park(long millis) { in parkUntil() argument
57 LockSupport.parkUntil(deadline(millis)); in parkUntil()
61 void park(long millis) { in parkNanos() argument
62 LockSupport.parkNanos(MILLISECONDS.toNanos(millis)); in parkNanos()
69 void park(long millis) { in parkBlocker() argument
74 void park(long millis) { in parkUntilBlocker() argument
75 LockSupport.parkUntil(theBlocker(), deadline(millis)); in parkUntilBlocker()
79 void park(long millis) { in parkNanosBlocker() argument
81 MILLISECONDS.toNanos(millis)); in parkNanosBlocker()
[all …]
DSystemTest.java45 long millis = m2 - m1; in testNanoTime1() local
49 assertTrue(nanosAsMillis <= millis + MILLIS_ROUND); in testNanoTime1()
65 long millis = m2 - m1; in testNanoTime2() local
70 assertTrue(millis <= nanosAsMillis + MILLIS_ROUND); in testNanoTime2()
DJSR166TestCase.java838 static void delay(long millis) throws InterruptedException { in delay() argument
839 long nanos = millis * (1000 * 1000); in delay()
842 if (millis > 0L) in delay()
843 Thread.sleep(millis); in delay()
847 millis = nanos / (1000 * 1000); in delay()
990 void assertThreadStaysAlive(Thread thread, long millis) {
993 delay(millis);
1011 void assertThreadsStayAlive(long millis, Thread... threads) {
1014 delay(millis);
1197 void sleep(long millis) {
[all …]
/libcore/ojluni/src/main/java/java/lang/
DThread.java312 public static void sleep(long millis) throws InterruptedException { in sleep() argument
313 Thread.sleep(millis, 0); in sleep()
316 private static native void sleep(Object lock, long millis, int nanos) in sleep() argument
341 public static void sleep(long millis, int nanos) in sleep() argument
343 if (millis < 0) { in sleep()
344 throw new IllegalArgumentException("millis < 0: " + millis); in sleep()
355 if (millis == 0 && nanos == 0) { in sleep()
364 long duration = (millis * NANOS_PER_MILLI) + nanos; in sleep()
371 sleep(lock, millis, nanos); in sleep()
382 millis = duration / NANOS_PER_MILLI; in sleep()
[all …]
DObject.java406 public final void wait(long millis) throws InterruptedException { in wait() argument
407 wait(millis, 0); in wait()
472 public final native void wait(long millis, int nanos) throws InterruptedException; in wait() argument
/libcore/luni/src/main/java/android/system/
DStructTimeval.java39 public static StructTimeval fromMillis(long millis) { in fromMillis() argument
40 long tv_sec = millis / 1000; in fromMillis()
41 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis()
/libcore/ojluni/src/main/java/java/util/logging/
DLogRecord.java122 private long millis; field in LogRecord
184 millis = System.currentTimeMillis(); in LogRecord()
422 return millis; in getMillis()
430 public void setMillis(long millis) { in setMillis() argument
431 this.millis = millis; in setMillis()
DXMLFormatter.java58 private void appendISO8601(StringBuffer sb, long millis) { in appendISO8601() argument
59 Date date = new Date(millis); in appendISO8601()
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputBuffer.java306 int year, month, day, hour, minute, second, millis; in getTime() local
347 millis = 0; in getTime()
367 millis += 100 * Character.digit((char)buf[pos++], 10); in getTime()
368 millis += 10 * Character.digit((char)buf[pos++], 10); in getTime()
369 millis += Character.digit((char)buf[pos++], 10); in getTime()
372 millis += 100 * Character.digit((char)buf[pos++], 10); in getTime()
373 millis += 10 * Character.digit((char)buf[pos++], 10); in getTime()
376 millis += 100 * Character.digit((char)buf[pos++], 10); in getTime()
399 date.setTimeOfDay(hour, minute, second, millis); in getTime()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java115 public void createSlowFinalizer(final long millis, final CountDownLatch latch) { in createSlowFinalizer() argument
118 System.out.println("finalize sleeping " + millis + " ms"); in createSlowFinalizer()
119 Thread.sleep(millis); in createSlowFinalizer()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java357 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { in getOffset() argument
377 calc += millis; in getOffset()
427 int findOffsetIndexForTimeInMilliseconds(long millis) { in findOffsetIndexForTimeInMilliseconds() argument
440 return findOffsetIndexForTimeInSeconds(roundDownMillisToSeconds(millis)); in findOffsetIndexForTimeInMilliseconds()
457 static long roundDownMillisToSeconds(long millis) { in roundDownMillisToSeconds() argument
458 if (millis < 0) { in roundDownMillisToSeconds()
464 return (millis - 999) / 1000; in roundDownMillisToSeconds()
466 return millis / 1000; in roundDownMillisToSeconds()
484 static long roundUpMillisToSeconds(long millis) { in roundUpMillisToSeconds() argument
485 if (millis > 0) { in roundUpMillisToSeconds()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java933 long millis = cal.getTime().getTime(); in testGetTimeInt() local
934 Time t1 = new java.sql.Time(millis); in testGetTimeInt()
992 long millis = cal1.getTime().getTime(); in testGetTimeIntCalendar() local
993 Time t1 = new java.sql.Time(millis); in testGetTimeIntCalendar()
1057 long millis = cal.getTime().getTime(); in testGetTimeString() local
1058 Time t1 = new java.sql.Time(millis); in testGetTimeString()
1117 long millis = cal1.getTime().getTime(); in testGetTimeStringCalendar() local
1118 Time t1 = new java.sql.Time(millis); in testGetTimeStringCalendar()
1176 long millis = cal2.getTime().getTime(); in testGetTimestampInt() local
1177 Timestamp t2 = new Timestamp(millis); in testGetTimestampInt()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java65 int millis = 1000; in testThreadSleep() local
68 Thread.sleep(millis); in testThreadSleep()
71 long offBy = Math.abs(elapsed - millis); in testThreadSleep()
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java605 int millis) in getOffset() argument
639 time += millis - rawOffset; // UTC time in getOffset()
651 time = cal.getTime(cdate) + millis - rawOffset; in getOffset()
661 || (millis < 0 || millis >= (24*60*60*1000))) { in getOffset()
DGregorianCalendar.java693 int hourOfDay, int minute, int second, int millis) { in GregorianCalendar() argument
721 this.internalSet(MILLISECOND, millis); in GregorianCalendar()
1058 long millis = adjustForZoneAndDaylightSavingsTime(tzMask, utcTime, getZone()); local
1061 setTimeInMillis(millis);
2716 long millis = (fixedDate - EPOCH_OFFSET) * ONE_DAY + timeOfDay; in computeTime() local
2735 millis = adjustForZoneAndDaylightSavingsTime(tzMask, millis, zone); in computeTime()
2738 time = millis; in computeTime()
DCalendar.java1113 public void setTimeInMillis(long millis) { in setTimeInMillis() argument
1116 if (time == millis && isTimeSet && areFieldsSet && areAllFieldsSet) { in setTimeInMillis()
1119 time = millis; in setTimeInMillis()
/libcore/luni/src/test/java/libcore/java/util/
DSimpleTimeZoneTest.java252 private static String formatTime(TimeZone timeZone, long millis) { in formatTime() argument
254 cal.setTimeInMillis(millis); in formatTime()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java708 private static void delay(int millis) { in delay() argument
712 Thread.sleep(millis); in delay()

12