Home
last modified time | relevance | path

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

123

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java28 long m1 = System.currentTimeMillis(); in testNanoTime1()
34 long m2 = System.currentTimeMillis(); in testNanoTime1()
50 long m1 = System.currentTimeMillis(); in testNanoTime2()
52 long m2 = System.currentTimeMillis(); in testNanoTime2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java311 Date d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
323 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
346 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
377 d = new Date(System.currentTimeMillis() + 200); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
386 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
390 d = new Date(System.currentTimeMillis() + 150); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
394 d = new Date(System.currentTimeMillis() + 70); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
398 d = new Date(System.currentTimeMillis() + 10); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
620 Date d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
631 d = new Date(System.currentTimeMillis() + 100); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
[all …]
DTimerTaskTest.java180 long time = System.currentTimeMillis() + 100; in test_scheduledExecutionTime()
195 long estNow = System.currentTimeMillis() + 100; in test_scheduledExecutionTime()
DWeakHashMapTest.java203 long startTime = System.currentTimeMillis(); in test_entrySet()
213 System.currentTimeMillis() - startTime < 5000); in test_entrySet()
/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()
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java61 long t0 = System.currentTimeMillis(); in doTestMessageDigest()
66 long t1 = System.currentTimeMillis(); in doTestMessageDigest()
70 long t2 = System.currentTimeMillis(); in doTestMessageDigest()
75 long t3 = System.currentTimeMillis(); in doTestMessageDigest()
/libcore/luni/src/main/java/java/util/
DTimer.java220 long currentTime = System.currentTimeMillis(); in run()
270 task.when = System.currentTimeMillis() in run()
435 long delay = when.getTime() - System.currentTimeMillis(); in schedule()
501 long delay = when.getTime() - System.currentTimeMillis(); in schedule()
548 long delay = when.getTime() - System.currentTimeMillis(); in scheduleAtFixedRate()
561 long when = delay + System.currentTimeMillis(); in scheduleImpl()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java61 long start = System.currentTimeMillis(); in create()
69 long nativeStart = System.currentTimeMillis(); in create()
71 long nativeEnd = System.currentTimeMillis(); in create()
77 long end = System.currentTimeMillis(); in create()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java179 long stime = System.currentTimeMillis(); in test_sleepJ()
187 long ftime = System.currentTimeMillis(); in test_sleepJ()
226 long stime = System.currentTimeMillis(); in test_sleepJI()
234 long ftime = System.currentTimeMillis(); in test_sleepJI()
358 long start = System.currentTimeMillis(); in test_getState()
359 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()
DThreadTest.java63 long start = System.currentTimeMillis(); in testThreadSleep()
67 long elapsed = System.currentTimeMillis() - start; in testThreadSleep()
DOldSystemTest.java159 long firstRead = System.currentTimeMillis(); in test_currentTimeMillis()
164 long secondRead = System.currentTimeMillis(); in test_currentTimeMillis()
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java33 df.format(System.currentTimeMillis()); in timeNewDateFormatTimeInstance()
40 ((DateFormat) df.clone()).format(System.currentTimeMillis()); in timeClonedDateFormatTimeInstance()
48 df.format(System.currentTimeMillis()); in timeReusedDateFormatTimeInstance()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidFileTest.java28 File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null); in testFile()
/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/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java171 long start = System.currentTimeMillis(); in testDatagramSocketSetSOTimeout()
179 long delay = System.currentTimeMillis() - start; in testDatagramSocketSetSOTimeout()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java699 long firstRead = System.currentTimeMillis(); in test_joinJI()
701 long secondRead = System.currentTimeMillis(); in test_joinJI()
819 stime = System.currentTimeMillis(); in test_sleepJ()
821 ftime = System.currentTimeMillis(); in test_sleepJ()
837 stime = System.currentTimeMillis(); in test_sleepJI()
839 ftime = System.currentTimeMillis(); in test_sleepJI()
DObjectTest.java299 long before = System.currentTimeMillis(); in test_waitJ()
301 long after = System.currentTimeMillis(); in test_waitJ()
DSystemTest.java104 long firstRead = System.currentTimeMillis(); in test_currentTimeMillis()
109 long secondRead = System.currentTimeMillis(); in test_currentTimeMillis()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java67 random.setSeed(System.currentTimeMillis()+counter); in getRandomBytes()
/libcore/dalvik/src/test/java/dalvik/system/profiler/
DSamplingProfilerTest.java73 long start = System.currentTimeMillis(); in toBeMeasured()
80 long end = System.currentTimeMillis(); in toBeMeasured()
100 long now = System.currentTimeMillis(); in test_HprofData_timeMillis()
/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/luni/src/test/java/tests/java/sql/
DStressTest.java330 ps.setDate(10, new java.sql.Date(System.currentTimeMillis()));
331 ps.setTime(11, new java.sql.Time(System.currentTimeMillis()));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java61 ze.setTime(System.currentTimeMillis()); in test_closeEntry()
97 ze.setTime(System.currentTimeMillis()); in test_putNextEntryLjava_util_zip_ZipEntry()
/libcore/luni/src/main/native/
Djava_lang_System.cpp136 NATIVE_METHOD(System, currentTimeMillis, "!()J"),

123