1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 package java.lang;
28 
29 import android.compat.annotation.UnsupportedAppUsage;
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public class ThreadGroup implements java.lang.Thread.UncaughtExceptionHandler {
33 
ThreadGroup()34     private ThreadGroup() {
35         throw new RuntimeException("Stub!");
36     }
37 
ThreadGroup(java.lang.String name)38     public ThreadGroup(java.lang.String name) {
39         throw new RuntimeException("Stub!");
40     }
41 
ThreadGroup(java.lang.ThreadGroup parent, java.lang.String name)42     public ThreadGroup(java.lang.ThreadGroup parent, java.lang.String name) {
43         throw new RuntimeException("Stub!");
44     }
45 
ThreadGroup( java.lang.Void unused, java.lang.ThreadGroup parent, java.lang.String name)46     private ThreadGroup(
47             java.lang.Void unused, java.lang.ThreadGroup parent, java.lang.String name) {
48         throw new RuntimeException("Stub!");
49     }
50 
checkParentAccess(java.lang.ThreadGroup parent)51     private static java.lang.Void checkParentAccess(java.lang.ThreadGroup parent) {
52         throw new RuntimeException("Stub!");
53     }
54 
getName()55     public final java.lang.String getName() {
56         throw new RuntimeException("Stub!");
57     }
58 
getParent()59     public final java.lang.ThreadGroup getParent() {
60         throw new RuntimeException("Stub!");
61     }
62 
getMaxPriority()63     public final int getMaxPriority() {
64         throw new RuntimeException("Stub!");
65     }
66 
isDaemon()67     public final boolean isDaemon() {
68         throw new RuntimeException("Stub!");
69     }
70 
isDestroyed()71     public synchronized boolean isDestroyed() {
72         throw new RuntimeException("Stub!");
73     }
74 
setDaemon(boolean daemon)75     public final void setDaemon(boolean daemon) {
76         throw new RuntimeException("Stub!");
77     }
78 
setMaxPriority(int pri)79     public final void setMaxPriority(int pri) {
80         throw new RuntimeException("Stub!");
81     }
82 
parentOf(java.lang.ThreadGroup g)83     public final boolean parentOf(java.lang.ThreadGroup g) {
84         throw new RuntimeException("Stub!");
85     }
86 
checkAccess()87     public final void checkAccess() {
88         throw new RuntimeException("Stub!");
89     }
90 
activeCount()91     public int activeCount() {
92         throw new RuntimeException("Stub!");
93     }
94 
enumerate(java.lang.Thread[] list)95     public int enumerate(java.lang.Thread[] list) {
96         throw new RuntimeException("Stub!");
97     }
98 
enumerate(java.lang.Thread[] list, boolean recurse)99     public int enumerate(java.lang.Thread[] list, boolean recurse) {
100         throw new RuntimeException("Stub!");
101     }
102 
enumerate(java.lang.Thread[] list, int n, boolean recurse)103     private int enumerate(java.lang.Thread[] list, int n, boolean recurse) {
104         throw new RuntimeException("Stub!");
105     }
106 
activeGroupCount()107     public int activeGroupCount() {
108         throw new RuntimeException("Stub!");
109     }
110 
enumerate(java.lang.ThreadGroup[] list)111     public int enumerate(java.lang.ThreadGroup[] list) {
112         throw new RuntimeException("Stub!");
113     }
114 
enumerate(java.lang.ThreadGroup[] list, boolean recurse)115     public int enumerate(java.lang.ThreadGroup[] list, boolean recurse) {
116         throw new RuntimeException("Stub!");
117     }
118 
enumerate(java.lang.ThreadGroup[] list, int n, boolean recurse)119     private int enumerate(java.lang.ThreadGroup[] list, int n, boolean recurse) {
120         throw new RuntimeException("Stub!");
121     }
122 
123     @Deprecated
stop()124     public final void stop() {
125         throw new RuntimeException("Stub!");
126     }
127 
interrupt()128     public final void interrupt() {
129         throw new RuntimeException("Stub!");
130     }
131 
132     @Deprecated
suspend()133     public final void suspend() {
134         throw new RuntimeException("Stub!");
135     }
136 
stopOrSuspend(boolean suspend)137     private boolean stopOrSuspend(boolean suspend) {
138         throw new RuntimeException("Stub!");
139     }
140 
141     @Deprecated
resume()142     public final void resume() {
143         throw new RuntimeException("Stub!");
144     }
145 
destroy()146     public final void destroy() {
147         throw new RuntimeException("Stub!");
148     }
149 
add(java.lang.ThreadGroup g)150     private final void add(java.lang.ThreadGroup g) {
151         throw new RuntimeException("Stub!");
152     }
153 
remove(java.lang.ThreadGroup g)154     private void remove(java.lang.ThreadGroup g) {
155         throw new RuntimeException("Stub!");
156     }
157 
addUnstarted()158     void addUnstarted() {
159         throw new RuntimeException("Stub!");
160     }
161 
162     @UnsupportedAppUsage
add(java.lang.Thread t)163     void add(java.lang.Thread t) {
164         throw new RuntimeException("Stub!");
165     }
166 
threadStartFailed(java.lang.Thread t)167     void threadStartFailed(java.lang.Thread t) {
168         throw new RuntimeException("Stub!");
169     }
170 
171     @UnsupportedAppUsage
threadTerminated(java.lang.Thread t)172     void threadTerminated(java.lang.Thread t) {
173         throw new RuntimeException("Stub!");
174     }
175 
remove(java.lang.Thread t)176     private void remove(java.lang.Thread t) {
177         throw new RuntimeException("Stub!");
178     }
179 
list()180     public void list() {
181         throw new RuntimeException("Stub!");
182     }
183 
list(java.io.PrintStream out, int indent)184     void list(java.io.PrintStream out, int indent) {
185         throw new RuntimeException("Stub!");
186     }
187 
uncaughtException(java.lang.Thread t, java.lang.Throwable e)188     public void uncaughtException(java.lang.Thread t, java.lang.Throwable e) {
189         throw new RuntimeException("Stub!");
190     }
191 
192     @Deprecated
allowThreadSuspension(boolean b)193     public boolean allowThreadSuspension(boolean b) {
194         throw new RuntimeException("Stub!");
195     }
196 
toString()197     public java.lang.String toString() {
198         throw new RuntimeException("Stub!");
199     }
200 
201     boolean daemon;
202 
203     boolean destroyed;
204 
205     @UnsupportedAppUsage
206     java.lang.ThreadGroup[] groups;
207 
208     @UnsupportedAppUsage
209     static final java.lang.ThreadGroup mainThreadGroup;
210 
211     static {
212         mainThreadGroup = null;
213     }
214 
215     int maxPriority;
216 
217     int nUnstartedThreads = 0; // 0x0
218 
219     @UnsupportedAppUsage
220     java.lang.String name;
221 
222     @UnsupportedAppUsage
223     int ngroups;
224 
225     int nthreads;
226 
227     @UnsupportedAppUsage
228     private final java.lang.ThreadGroup parent;
229 
230     {
231         parent = null;
232     }
233 
234     @UnsupportedAppUsage
235     static final java.lang.ThreadGroup systemThreadGroup;
236 
237     static {
238         systemThreadGroup = null;
239     }
240 
241     java.lang.Thread[] threads;
242 
243     boolean vmAllowSuspension;
244 }
245