Home
last modified time | relevance | path

Searched refs:sleep (Results 1 – 25 of 79) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java39 Thread.sleep(1); in testNanoTime1()
41 Thread.sleep(SHORT_DELAY_MS); in testNanoTime1()
43 Thread.sleep(1); in testNanoTime1()
59 Thread.sleep(1); in testNanoTime2()
61 Thread.sleep(SHORT_DELAY_MS); in testNanoTime2()
63 Thread.sleep(1); in testNanoTime2()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java119 Thread.sleep(100); in test_joinWithSpuriousInterruption()
161 Thread.sleep(5000); in launchFiveSecondFakeThread()
183 Thread.sleep(1000); in test_sleepJ()
197 sleep(1000); in test_sleepJ()
207 Thread.sleep(500); in test_sleepJ()
215 Thread.sleep(500); in test_sleepJ()
230 Thread.sleep(1000, 99999); in test_sleepJI()
244 sleep(1000, 9999); in test_sleepJI()
254 Thread.sleep(500, 9999); in test_sleepJI()
262 Thread.sleep(500); in test_sleepJI()
[all …]
DThreadTest.java84 Thread.sleep(millis); in testThreadSleep()
95 Thread.sleep(0); in testThreadInterrupted()
105 Thread.sleep(-1); in testThreadSleepIllegalArguments()
111 Thread.sleep(0, -1); in testThreadSleepIllegalArguments()
117 Thread.sleep(0, 1000000); in testThreadSleepIllegalArguments()
134 Thread.sleep(1000); in testThreadWakeup()
276 Thread.sleep(4000); in testGetStackTrace()
282 Thread.sleep(1000); in testGetStackTrace()
404 sleep(5000); in testParkUntilWithUnderflowValue()
499 Thread.sleep(60000); in run()
DOldThreadGroupTest.java42 Thread.sleep(50); in run()
132 Thread.sleep(500); // starting threads isn't instant! in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
146 Thread.sleep(500); // killing threads isn't instant in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
248 Thread.sleep(5000); in test_interrupt()
284 Thread.sleep(1000); in test_resume()
300 Thread.sleep(5000); in launchFiveSecondFakeThread()
DOldSystemTest.java163 Thread.sleep(150); in test_currentTimeMillis()
364 Thread.sleep(sleepTime); in test_nanoTime()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTaskTest.java49 Thread.sleep(200); in run()
99 Thread.sleep(150); in test_cancel()
128 Thread.sleep(100); in test_cancel()
157 Thread.sleep(50); in test_cancel()
231 Thread.sleep(200); in test_run()
243 Thread.sleep(400); in test_run()
DTimerTest.java75 Thread.sleep(200); in run()
104 Thread.sleep(150); in awaitRun()
264 Thread.sleep(200); in test_cancel()
404 Thread.sleep(400); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
492 Thread.sleep(400); in test_scheduleLjava_util_TimerTaskJ()
585 Thread.sleep(400); in test_scheduleLjava_util_TimerTaskJJ()
604 Thread.sleep(1200); // Allowed more room for error in test_scheduleLjava_util_TimerTaskJJ()
704 Thread.sleep(800); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
727 Thread.sleep(3000); in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
780 Thread.sleep(400); in test_scheduleAtFixedRateLjava_util_TimerTaskJJ()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedReaderTest.java48 Thread.sleep(10000); in run()
128 Thread.sleep(500); // Allow writer to start in test_close()
145 Thread.sleep(500); // Allow writer to start in test_connectLjava_io_PipedWriter()
166 Thread.sleep(500); // Allow writer to start in test_read()
182 Thread.sleep(500); // Allow writer to start in test_read$CII()
380 Thread.sleep(500); // Allow writer to start in test_ready()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DUnixSelectorTest.java48 Thread.sleep(1000); in accept()
75 Thread.sleep(1000); in testSelectorAcceptAndRead()
87 Thread.sleep(3000); in testSelectorAcceptAndRead()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java75 Thread.sleep(100); in run()
82 Thread.sleep(500); in run()
89 Thread.sleep(50); in run()
502 Thread.sleep(20000); in test_interrupt()
669 Thread.sleep(100); in test_joinJ()
722 Thread.sleep(100); in test_joinJI()
763 Thread.sleep(100); in test_run()
824 Thread.sleep(1000); in test_sleepJ()
845 Thread.sleep(1000, 999999); in test_sleepJI()
871 Thread.sleep(150); in test_start()
DProcessManagerTest.java80 sleep(10); in testSleep()
96 Thread.sleep(100); in testSleep()
103 Thread.sleep(100); in testSleep()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceQueueTest.java45 Thread.sleep(100); in run()
137 Thread.sleep(100); in test_remove()
143 Thread.sleep(100); in test_remove()
215 Thread.sleep(10); in test_removeJ()
DWeakReferenceTest.java65 Thread.sleep(1000); in test_ConstructorLjava_lang_Object()
/libcore/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java42 Thread.sleep(100); in enqueueReferences()
/libcore/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java64 Thread.sleep(100); in run()
144 Thread.sleep(100); in testDatagram()
DOldServerSocketTest.java108 Thread.sleep(1000); in run()
112 Thread.sleep(10000); in run()
320 Thread.sleep(1000); in startClient()
DOldSocketTest.java296 Thread.sleep(1000); in test_getOutputStream()
306 Thread.sleep(1000); in test_getOutputStream()
613 Thread.sleep(1000); in test_shutdownInput()
1031 Thread.sleep(1000); in test_connectLjava_net_SocketAddress()
1041 Thread.sleep(1000); in test_connectLjava_net_SocketAddress()
1244 Thread.sleep(1000); in test_connectLjava_net_SocketAddressI()
1305 Thread.sleep(10); in test_connectLjava_net_SocketAddressI_setSOTimeout()
1308 Thread.sleep(50); in test_connectLjava_net_SocketAddressI_setSOTimeout()
1648 Thread.sleep(1000); in test_sendUrgentDataI()
1678 Thread.sleep(1000); in test_sendUrgentDataI()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DProcess.java198 Thread.sleep( in waitFor()
DThread.java357 public static void sleep(long millis) throws InterruptedException { in sleep() method in Thread
358 sleep(millis, 0); in sleep()
362 private static native void sleep(Object lock, long millis, int nanos) in sleep() method in Thread
388 public static void sleep(long millis, int nanos) in sleep() method in Thread
453 sleep(lock, millis, nanos); in sleep()
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java60 public static void sleep(long millis) throws java.lang.InterruptedException { throw new RuntimeExce… in sleep() method in Thread
62 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { throw new … in sleep() method in Thread
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java95 public static void sleep(long millis) throws java.lang.InterruptedException { in sleep() method in Thread
99 private static native void sleep(java.lang.Object lock, long millis, int nanos) in sleep() method in Thread
102 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { in sleep() method in Thread
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLogRecordTest.java33 Thread.sleep(2); in testGetSetTimeCheck()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java74 Thread.sleep(1000); in run()
78 Thread.sleep(10000); in run()
218 Thread.sleep(500); in test_accept()
226 Thread.sleep(500); in test_accept()
898 Thread.sleep(1000); in startClient()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java256 Thread.currentThread().sleep(1000); in setUp()
265 Thread.currentThread().sleep(500); in setUp()
512 Thread.currentThread().sleep(500); in run()
582 Thread.currentThread().sleep(500); in run()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java60 public static void sleep(long millis) throws java.lang.InterruptedException { throw new RuntimeExce… in sleep() method in Thread
62 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { throw new … in sleep() method in Thread

1234