Searched refs:tg (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 72 ThreadGroup tg = new ThreadGroup("group count"); in test_activeGroupCount() local 74 0, tg.activeGroupCount()); in test_activeGroupCount() 75 Thread t1 = new Thread(tg, new Runnable() { in test_activeGroupCount() 81 0, tg.activeGroupCount()); in test_activeGroupCount() 84 0, tg.activeGroupCount()); in test_activeGroupCount() 85 new ThreadGroup(tg, "test group 1"); in test_activeGroupCount() 87 1, tg.activeGroupCount()); in test_activeGroupCount() 88 new ThreadGroup(tg, "test group 2"); in test_activeGroupCount() 90 2, tg.activeGroupCount()); in test_activeGroupCount() 95 ThreadGroup tg = new ThreadGroup("thread suspension"); in test_allowThreadSuspensionZ() local [all …]
|
D | OldThreadTest.java | 50 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() local 51 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 52 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 59 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 62 new Thread(tg, new SimpleThread(1), "SimpleThread3", in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 160 ThreadGroup tg = new ThreadGroup("Test Group1"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() local 161 st = new Thread(tg, new SimpleThread(1), "SimpleThread2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 162 assertTrue("Returned incorrect thread group", st.getThreadGroup() == tg); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 168 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() 178 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() local 179 st = new Thread(tg, new SimpleThread(1), "SimpleThread3"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 180 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 187 tg.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 241 ThreadGroup tg = new ThreadGroup("Test Group3"); in test_checkAccess() local 243 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/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 | 553 static final ThreadGroup tg = new ThreadGroup("ThreadExecutor"); 555 return Thread.currentThread().getThreadGroup() == tg; 560 new Thread(tg, r).start();
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinWorkerThread.java | 223 long tg = u.objectFieldOffset in createThreadGroup() local 228 u.getObject(Thread.currentThread(), tg); in createThreadGroup()
|