Searched refs:tg (Results 1 – 9 of 9) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 161 ThreadGroup tg = new ThreadGroup("Test Group1"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() local 162 st = new Thread(tg, new SimpleThread(1), "SimpleThread2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 163 assertTrue("Returned incorrect thread group", st.getThreadGroup() == tg); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 169 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 180 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() local 181 st = new Thread(tg, new SimpleThread(1), "SimpleThread3"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 182 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 189 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 243 ThreadGroup tg = new ThreadGroup("Test Group3"); in test_checkAccess() local 245 st = new Thread(tg, new SimpleThread(1), "SimpleThread5"); in test_checkAccess() [all …]
|
D | ThreadGroupTest.java | 102 ThreadGroup tg = new ThreadGroup("activeCount"); in test_activeCount() local 103 Thread t1 = new Thread(tg, new Runnable() { in test_activeCount() 111 int count = tg.activeCount(); in test_activeCount() 114 count = tg.activeCount(); in test_activeCount() 122 tg.destroy(); in test_activeCount()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 75 ThreadGroup tg = new ThreadGroup("group count"); in test_activeGroupCount() local 77 0, tg.activeGroupCount()); in test_activeGroupCount() 78 Thread t1 = new Thread(tg, new Runnable() { in test_activeGroupCount() 84 0, tg.activeGroupCount()); in test_activeGroupCount() 87 0, tg.activeGroupCount()); in test_activeGroupCount() 88 new ThreadGroup(tg, "test group 1"); in test_activeGroupCount() 90 1, tg.activeGroupCount()); in test_activeGroupCount() 91 new ThreadGroup(tg, "test group 2"); in test_activeGroupCount() 93 2, tg.activeGroupCount()); in test_activeGroupCount() 98 ThreadGroup tg = new ThreadGroup("thread suspension"); in test_allowThreadSuspensionZ() local [all …]
|
D | OldThreadTest.java | 51 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() local 52 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 53 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 60 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 63 new Thread(tg, new SimpleThread(1), "SimpleThread3", in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadTest.java | 39 ThreadGroup tg = current.getThreadGroup(); in testGetAndSetUncaughtExceptionHandler() local 41 assertSame(tg, current.getUncaughtExceptionHandler()); in testGetAndSetUncaughtExceptionHandler() 48 assertSame(tg, current.getUncaughtExceptionHandler()); in testGetAndSetUncaughtExceptionHandler()
|
D | CompletableFutureTest.java | 561 static final ThreadGroup tg = new ThreadGroup("ThreadExecutor"); 563 return Thread.currentThread().getThreadGroup() == tg; 568 new Thread(tg, r).start();
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadTest.java | 63 ThreadGroup tg = current.getThreadGroup(); in testGetAndSetUncaughtExceptionHandler() local 65 assertSame(tg, current.getUncaughtExceptionHandler()); in testGetAndSetUncaughtExceptionHandler() 72 assertSame(tg, current.getUncaughtExceptionHandler()); in testGetAndSetUncaughtExceptionHandler()
|
D | CompletableFutureTest.java | 621 static final ThreadGroup tg = new ThreadGroup("ThreadExecutor"); 623 return Thread.currentThread().getThreadGroup() == tg; 628 new Thread(tg, r).start();
|
/libcore/ojluni/src/main/java/jdk/internal/misc/ |
D | InnocuousThread.java | 158 long tg = UNSAFE.objectFieldOffset(tk, "group"); 161 UNSAFE.getReference(Thread.currentThread(), tg);
|