Home
last modified time | relevance | path

Searched refs:currentTimeMillis (Results 1 – 25 of 87) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java38 long m1 = System.currentTimeMillis(); in testNanoTime1()
44 long m2 = System.currentTimeMillis(); in testNanoTime1()
60 long m1 = System.currentTimeMillis(); in testNanoTime2()
62 long m2 = System.currentTimeMillis(); in testNanoTime2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java315 Date d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
327 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
350 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
381 d = new Date(System.currentTimeMillis() + 200); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
390 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
394 d = new Date(System.currentTimeMillis() + 150); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
398 d = new Date(System.currentTimeMillis() + 70); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
402 d = new Date(System.currentTimeMillis() + 10); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
624 Date d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
635 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
[all …]
DTimerTaskTest.java183 long time = System.currentTimeMillis() + 100; in test_scheduledExecutionTime()
201 long estNow = System.currentTimeMillis() + 200; in test_scheduledExecutionTime()
DWeakHashMapTest.java202 long startTime = System.currentTimeMillis(); in test_entrySet()
212 System.currentTimeMillis() - startTime < 5000); in test_entrySet()
310 long startTime = System.currentTimeMillis(); in test_keySet()
326 System.currentTimeMillis() - startTime < timeout); in test_keySet()
396 long startTime = System.currentTimeMillis(); in test_values()
406 System.currentTimeMillis() - startTime < 5000); in test_values()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipStressTest.java43 long t0 = System.currentTimeMillis(); in checkJarCertificates()
52 long t1 = System.currentTimeMillis(); in checkJarCertificates()
79 long time0 = System.currentTimeMillis(); in testZipStressManifest()
93 long time1 = System.currentTimeMillis(); in testZipStressManifest()
98 long time0 = System.currentTimeMillis(); in testZipStressAllFiles()
113 long time1 = System.currentTimeMillis(); in testZipStressAllFiles()
DZipOutputStreamTest.java111 long timeBeforeZip = System.currentTimeMillis() / 2000 * 2000; in testPutNextEntryUsingCurrentTime()
124 long timeAfterZip = System.currentTimeMillis(); in testPutNextEntryUsingCurrentTime()
/libcore/ojluni/src/main/java/java/io/
DExpiringCache.java96 entry.setTimestamp(System.currentTimeMillis()); in put()
99 map.put(key, new Entry(System.currentTimeMillis(), val)); in put()
110 long delta = System.currentTimeMillis() - entry.timestamp(); in entryFor()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java180 long stime = System.currentTimeMillis(); in test_sleepJ()
188 long ftime = System.currentTimeMillis(); in test_sleepJ()
227 long stime = System.currentTimeMillis(); in test_sleepJI()
235 long ftime = System.currentTimeMillis(); in test_sleepJI()
359 long start = System.currentTimeMillis(); in test_getState()
360 while(start + 1000 > System.currentTimeMillis()) {} in test_getState()
DOldDoubleTest.java72 long startTime = System.currentTimeMillis(); in test_parseDouble_LString_AndroidRegression()
75 (System.currentTimeMillis() - startTime) < 1000); in test_parseDouble_LString_AndroidRegression()
DOldSystemTest.java161 long firstRead = System.currentTimeMillis(); in test_currentTimeMillis()
166 long secondRead = System.currentTimeMillis(); in test_currentTimeMillis()
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java35 df.format(System.currentTimeMillis()); in timeNewDateFormatTimeInstance()
42 ((DateFormat) df.clone()).format(System.currentTimeMillis()); in timeClonedDateFormatTimeInstance()
50 df.format(System.currentTimeMillis()); in timeReusedDateFormatTimeInstance()
/libcore/ojluni/src/main/java/java/util/
DTimer.java200 sched(task, System.currentTimeMillis()+delay, 0); in schedule()
255 sched(task, System.currentTimeMillis()+delay, -period); in schedule()
335 sched(task, System.currentTimeMillis()+delay, period); in scheduleAtFixedRate()
545 currentTime = System.currentTimeMillis(); in mainLoop()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressThreadTest.java69 long startTime = System.currentTimeMillis(); in run()
78 && System.currentTimeMillis() - startTime > 240000) { in run()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketAdaptor.java117 long st = System.currentTimeMillis(); in connect()
122 to -= System.currentTimeMillis() - st; in connect()
220 long st = System.currentTimeMillis(); in read()
226 to -= System.currentTimeMillis() - st; in read()
DServerSocketAdaptor.java115 long st = System.currentTimeMillis(); in accept()
119 to -= System.currentTimeMillis() - st; in accept()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidFileTest.java28 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); in testFile()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTimeoutTest.java62 long startingTime = System.currentTimeMillis(); in checkOperationTimesOut()
67 long timeElapsed = System.currentTimeMillis() - startingTime; in checkOperationTimesOut()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java705 long firstRead = System.currentTimeMillis(); in test_joinJI()
707 long secondRead = System.currentTimeMillis(); in test_joinJI()
825 stime = System.currentTimeMillis(); in test_sleepJ()
827 ftime = System.currentTimeMillis(); in test_sleepJ()
843 stime = System.currentTimeMillis(); in test_sleepJI()
845 ftime = System.currentTimeMillis(); in test_sleepJI()
DObjectTest.java299 long before = System.currentTimeMillis(); in test_waitJ()
301 long after = System.currentTimeMillis(); in test_waitJ()
/libcore/ojluni/src/main/java/sun/util/calendar/
DGregorian.java65 return getCalendarDate(System.currentTimeMillis(), newCalendarDate()); in getCalendarDate()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_System.java88 long systemMillis = System.currentTimeMillis(); in test_instant()
102 long systemMillis = System.currentTimeMillis(); in test_millis()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java190 long start = System.currentTimeMillis(); in test28318596()
196 long end = System.currentTimeMillis(); in test28318596()
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java324 long time = System.currentTimeMillis(); in expungeExpiredEntries()
363 System.currentTimeMillis() + lifetime; in put()
391 long time = (lifetime == 0) ? 0 : System.currentTimeMillis(); in get()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldAndroidRegexTest.java259 long t0 = System.currentTimeMillis(); in testMonsterRegexPerformance()
262 long t1 = System.currentTimeMillis(); in testMonsterRegexPerformance()
/libcore/dalvik/src/main/java/dalvik/system/
DZygoteHooks.java129 Math.setRandomSeedInternal(System.currentTimeMillis()); in postForkChild()

1234