Home
last modified time | relevance | path

Searched refs:ThreadGroup (Results 1 – 25 of 33) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadGroupTest.java25 private ThreadGroup rootThreadGroup;
26 private ThreadGroup initialThreadGroup;
56 ThreadGroup initial = initialThreadGroup; in test_ConstructorLjava_lang_String()
58 ThreadGroup newGroup = new ThreadGroup(name); in test_ConstructorLjava_lang_String()
71 ThreadGroup newGroup = null; in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
73 newGroup = new ThreadGroup(null, null); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
78 newGroup = new ThreadGroup(initialThreadGroup, null); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
85 newGroup = new ThreadGroup(rootThreadGroup, "a name here"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
93 newGroup = new ThreadGroup(newGroup, "a name here"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
102 ThreadGroup tg = new ThreadGroup("activeCount"); in test_activeCount()
[all …]
DThreadTest.java161 ThreadGroup tg = new ThreadGroup("Test Group1"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable()
180 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
196 ThreadGroup foo = null; in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
198 new Thread(foo = new ThreadGroup("foo"), r, null); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
243 ThreadGroup tg = new ThreadGroup("Test Group3"); in test_checkAccess()
294 MyThread(ThreadGroup tg, String name) { in test_enumerate$Ljava_lang_Thread()
304 ThreadGroup mytg = null; in test_enumerate$Ljava_lang_Thread()
312 mytg = new ThreadGroup("jp"); in test_enumerate$Ljava_lang_Thread()
359 ThreadGroup tg = new ThreadGroup("tg"); in test_enumerate$Ljava_lang_Thread()
415 ThreadGroup tg = new ThreadGroup("Test Group4"); in test_getThreadGroup()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java32 public MyThread(ThreadGroup group, String name) in MyThread()
69 private ThreadGroup initialThreadGroup = null;
75 ThreadGroup tg = new ThreadGroup("group count"); in test_activeGroupCount()
88 new ThreadGroup(tg, "test group 1"); in test_activeGroupCount()
91 new ThreadGroup(tg, "test group 2"); in test_activeGroupCount()
98 ThreadGroup tg = new ThreadGroup("thread suspension"); in test_allowThreadSuspensionZ()
124 ThreadGroup group = new ThreadGroup(initialThreadGroup, "enumerateThreadArray"); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
156 ThreadGroup childGroup = new ThreadGroup(initialThreadGroup, "child group"); in test_enumerateLThreadGroupArray()
160 ThreadGroup[] listOfGroups = new ThreadGroup[numChildGroupsAfter]; in test_enumerateLThreadGroupArray()
166 ThreadGroup[] listOfGroups1 = new ThreadGroup[numChildGroupsAfter + 1]; in test_enumerateLThreadGroupArray()
[all …]
DThreadGroupTest.java44 ThreadGroup group = new ThreadGroup("group under test"); in interrupt_shouldInterruptAllThreadsInAGroup()
59 ThreadGroup parentGroup = new ThreadGroup("parent thread group"); in interrupt_shouldInterruptThreadsInSubgroups()
60 ThreadGroup childGroup = new ThreadGroup(parentGroup, "child thread group"); in interrupt_shouldInterruptThreadsInSubgroups()
75 ThreadGroup parentGroup = new ThreadGroup("parent thread group"); in interrupt_shouldNotInterruptThreadsInParentGroup()
76 ThreadGroup childGroup = new ThreadGroup(parentGroup, "child thread group"); in interrupt_shouldNotInterruptThreadsInParentGroup()
93 ThreadGroup threadGroup = new ThreadGroup("test group"); in suspend_shouldThrowUnsupportedOperationException()
110 ThreadGroup threadGroup = new ThreadGroup("test group"); in stop_shouldThrowUnsupportedOperationException()
125 private Thread createHangThread(ThreadGroup threadGroup) { in createHangThread()
DOldThreadTest.java51 ThreadGroup tg = new ThreadGroup("Test Group2"); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L()
DThreadTest.java402 ThreadGroup group = new ThreadGroup("1"); in getAllStackTracesIncludesAllGroups()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadGroup.java32 public class ThreadGroup implements java.lang.Thread.UncaughtExceptionHandler { class
34 private ThreadGroup() { in ThreadGroup() method in ThreadGroup
38 public ThreadGroup(java.lang.String name) { in ThreadGroup() method in ThreadGroup
42 public ThreadGroup(java.lang.ThreadGroup parent, java.lang.String name) { in ThreadGroup() method in ThreadGroup
46 private ThreadGroup( in ThreadGroup() method in ThreadGroup
47 java.lang.Void unused, java.lang.ThreadGroup parent, java.lang.String name) { in ThreadGroup()
51 private static java.lang.Void checkParentAccess(java.lang.ThreadGroup parent) { in checkParentAccess()
59 public final java.lang.ThreadGroup getParent() { in getParent()
83 public final boolean parentOf(java.lang.ThreadGroup g) { in parentOf()
111 public int enumerate(java.lang.ThreadGroup[] list) { in enumerate()
[all …]
DThread.java46 public Thread(java.lang.ThreadGroup group, java.lang.Runnable target) { in Thread()
54 public Thread(java.lang.ThreadGroup group, java.lang.String name) { in Thread()
59 Thread(java.lang.ThreadGroup group, java.lang.String name, int priority, boolean daemon) { in Thread()
67 public Thread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name) { in Thread()
72 java.lang.ThreadGroup group, in Thread()
107 java.lang.ThreadGroup g, in init()
115 java.lang.ThreadGroup g, in init()
198 public final java.lang.ThreadGroup getThreadGroup() { in getThreadGroup()
382 private java.lang.ThreadGroup group;
DUNIXProcess.java162 private static java.lang.ThreadGroup getRootThreadGroup() { in getRootThreadGroup()
170 private static final java.lang.ThreadGroup group;
/libcore/ojluni/src/main/java/java/lang/
DThreadGroup.java58 class ThreadGroup implements Thread.UncaughtExceptionHandler { class
60 static final ThreadGroup systemThreadGroup = new ThreadGroup();
62 static final ThreadGroup mainThreadGroup = new ThreadGroup(systemThreadGroup, "main");
64 private final ThreadGroup parent;
75 ThreadGroup groups[];
81 private ThreadGroup() { // called from C code in ThreadGroup() method in ThreadGroup
100 public ThreadGroup(String name) { in ThreadGroup() method in ThreadGroup
121 public ThreadGroup(ThreadGroup parent, String name) { in ThreadGroup() method in ThreadGroup
125 private ThreadGroup(Void unused, ThreadGroup parent, String name) { in ThreadGroup() method in ThreadGroup
138 private static Void checkParentAccess(ThreadGroup parent) { in checkParentAccess()
[all …]
DThread.java185 private ThreadGroup group;
508 private Thread(ThreadGroup g, Runnable target, String name, in Thread()
658 public Thread(ThreadGroup group, Runnable target) { in Thread()
694 public Thread(ThreadGroup group, String name) { in Thread()
700 Thread(ThreadGroup group, String name, int priority, boolean daemon) { in Thread()
792 public Thread(ThreadGroup group, Runnable target, String name) { in Thread()
870 public Thread(ThreadGroup group, Runnable target, String name, in Thread()
926 public Thread(ThreadGroup group, Runnable target, String name, in Thread()
1328 ThreadGroup g; in setPriority()
1404 public final ThreadGroup getThreadGroup() { in getThreadGroup()
[all …]
DUNIXProcess.java93 private final static ThreadGroup group = getRootThreadGroup();
95 private static ThreadGroup getRootThreadGroup() { in getRootThreadGroup()
96 return doPrivileged(new PrivilegedAction<ThreadGroup> () { in getRootThreadGroup()
97 public ThreadGroup run() { in getRootThreadGroup()
98 ThreadGroup root = Thread.currentThread().getThreadGroup(); in getRootThreadGroup()
DSecurityManager.java139 public void checkAccess(ThreadGroup g) { } in checkAccess()
210 public ThreadGroup getThreadGroup() { in getThreadGroup()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DInnocuousThread.java42 private static final ThreadGroup INNOCUOUSTHREADGROUP;
99 private InnocuousThread(ThreadGroup group, Runnable target, String name, ClassLoader tccl) {
148 Class<?> gk = ThreadGroup.class;
160 ThreadGroup group = (ThreadGroup)
164 ThreadGroup parent = (ThreadGroup)UNSAFE.getReference(group, gp);
169 final ThreadGroup root = group;
171 new PrivilegedAction<ThreadGroup>() {
173 public ThreadGroup run() {
174 return new ThreadGroup(root, "InnocuousThreadGroup");
DVM.java54 public static boolean allowThreadSuspension(ThreadGroup g, boolean b) { in allowThreadSuspension()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java72 ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool, in ForkJoinWorkerThread()
92 /* TODO: protected */ ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool) { in ForkJoinWorkerThread()
190 private static final ThreadGroup innocuousThreadGroup =
192 public ThreadGroup run() {
193 ThreadGroup group = Thread.currentThread().getThreadGroup();
194 for (ThreadGroup p; (p = group.getParent()) != null; )
196 return new ThreadGroup(
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java44 public Thread(java.lang.ThreadGroup group, java.lang.Runnable target) { throw new RuntimeException(… in Thread()
48 public Thread(java.lang.ThreadGroup group, java.lang.String name) { throw new RuntimeException("Stu… in Thread()
52 public Thread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name) { thro… in Thread()
54 public Thread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name, long s… in Thread()
101 public final java.lang.ThreadGroup getThreadGroup() { throw new RuntimeException("Stub!"); } in getThreadGroup()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java44 public Thread(@libcore.util.Nullable java.lang.ThreadGroup group, @libcore.util.Nullable java.lang.… in Thread()
48 public Thread(@libcore.util.Nullable java.lang.ThreadGroup group, @libcore.util.NonNull java.lang.S… in Thread()
52 public Thread(@libcore.util.Nullable java.lang.ThreadGroup group, @libcore.util.Nullable java.lang.… in Thread()
54 public Thread(@libcore.util.Nullable java.lang.ThreadGroup group, @libcore.util.Nullable java.lang.… in Thread()
56 public Thread(@libcore.util.Nullable java.lang.ThreadGroup group, @libcore.util.Nullable java.lang.… in Thread()
98 @libcore.util.Nullable public final java.lang.ThreadGroup getThreadGroup() { throw new RuntimeExcep… in getThreadGroup()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadTest.java39 ThreadGroup tg = current.getThreadGroup(); in testGetAndSetUncaughtExceptionHandler()
DExecutorsTest.java308 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory()
316 ThreadGroup g = current.getThreadGroup(); in testDefaultThreadFactory()
345 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory()
354 ThreadGroup g = current.getThreadGroup(); in testPrivilegedThreadFactory()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadTest.java63 ThreadGroup tg = current.getThreadGroup(); in testGetAndSetUncaughtExceptionHandler()
DExecutorsTest.java331 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory()
339 ThreadGroup g = current.getThreadGroup(); in testDefaultThreadFactory()
368 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory()
376 ThreadGroup g = current.getThreadGroup(); in testPrivilegedThreadFactory()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java22 public class ThreadPool extends ThreadGroup {
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DVM.java40 public static boolean allowThreadSuspension(java.lang.ThreadGroup g, boolean b) { in allowThreadSuspension()
/libcore/ojluni/src/main/java/sun/misc/
DVM.java52 public static boolean allowThreadSuspension(ThreadGroup g, boolean b) { in allowThreadSuspension()

12