Lines Matching refs:Thread
58 private static class TestCapacityThread extends Thread {
72 Thread t = new Thread(null, new TestDaemonThread(), "TestDaemonThread", 7168); in testThreadDaemons()
93 Thread.currentThread().setDaemon(true); in run()
100 Thread.sleep(2000); in run()
112 Thread.currentThread().interrupt(); in testSleepZero()
114 Thread.sleep(0); in testSleepZero()
117 if (Thread.currentThread().isInterrupted()) { in testSleepZero()
126 Thread thread = new Thread() { in testSetName()
148 t1.setPriority(Thread.MAX_PRIORITY); in testThreadPriorities()
151 if (supportsThreadPriorities() && (t1.getNativePriority() != Thread.MAX_PRIORITY)) { in testThreadPriorities()
159 if (supportsThreadPriorities() && (t2.getNativePriority() != Thread.MAX_PRIORITY)) { in testThreadPriorities()
168 Thread threads[] = new Thread[10]; in testMainThreadGroup()
169 Thread current = Thread.currentThread(); in testMainThreadGroup()
172 for (Thread t : threads) { in testMainThreadGroup()
182 StackTraceElement[] trace = Thread.getAllStackTraces().get(Thread.currentThread()); in testMainThreadAllStackTraces()
184 throw new RuntimeException("Did not find main thread: " + Thread.getAllStackTraces()); in testMainThreadAllStackTraces()
213 static class PriorityStoringThread extends Thread {
225 setPriority(Thread.MAX_PRIORITY); in run()