• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1995, 2013, 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 Runtime {
33 
34     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
Runtime()35     private Runtime() {
36         throw new RuntimeException("Stub!");
37     }
38 
nativeExit(int code)39     private static native void nativeExit(int code);
40 
getRuntime()41     public static java.lang.Runtime getRuntime() {
42         throw new RuntimeException("Stub!");
43     }
44 
exit(int status)45     public void exit(int status) {
46         throw new RuntimeException("Stub!");
47     }
48 
addShutdownHook(java.lang.Thread hook)49     public void addShutdownHook(java.lang.Thread hook) {
50         throw new RuntimeException("Stub!");
51     }
52 
removeShutdownHook(java.lang.Thread hook)53     public boolean removeShutdownHook(java.lang.Thread hook) {
54         throw new RuntimeException("Stub!");
55     }
56 
halt(int status)57     public void halt(int status) {
58         throw new RuntimeException("Stub!");
59     }
60 
61     @Deprecated
runFinalizersOnExit(boolean value)62     public static void runFinalizersOnExit(boolean value) {
63         throw new RuntimeException("Stub!");
64     }
65 
exec(java.lang.String command)66     public java.lang.Process exec(java.lang.String command) throws java.io.IOException {
67         throw new RuntimeException("Stub!");
68     }
69 
exec(java.lang.String command, java.lang.String[] envp)70     public java.lang.Process exec(java.lang.String command, java.lang.String[] envp)
71             throws java.io.IOException {
72         throw new RuntimeException("Stub!");
73     }
74 
exec( java.lang.String command, java.lang.String[] envp, java.io.File dir)75     public java.lang.Process exec(
76             java.lang.String command, java.lang.String[] envp, java.io.File dir)
77             throws java.io.IOException {
78         throw new RuntimeException("Stub!");
79     }
80 
exec(java.lang.String[] cmdarray)81     public java.lang.Process exec(java.lang.String[] cmdarray) throws java.io.IOException {
82         throw new RuntimeException("Stub!");
83     }
84 
exec(java.lang.String[] cmdarray, java.lang.String[] envp)85     public java.lang.Process exec(java.lang.String[] cmdarray, java.lang.String[] envp)
86             throws java.io.IOException {
87         throw new RuntimeException("Stub!");
88     }
89 
exec( java.lang.String[] cmdarray, java.lang.String[] envp, java.io.File dir)90     public java.lang.Process exec(
91             java.lang.String[] cmdarray, java.lang.String[] envp, java.io.File dir)
92             throws java.io.IOException {
93         throw new RuntimeException("Stub!");
94     }
95 
availableProcessors()96     public int availableProcessors() {
97         throw new RuntimeException("Stub!");
98     }
99 
freeMemory()100     public native long freeMemory();
101 
totalMemory()102     public native long totalMemory();
103 
maxMemory()104     public native long maxMemory();
105 
gc()106     public void gc() {
107         throw new RuntimeException("Stub!");
108     }
109 
nativeGc()110     private native void nativeGc();
111 
runFinalization0()112     private static native void runFinalization0();
113 
runFinalization()114     public void runFinalization() {
115         throw new RuntimeException("Stub!");
116     }
117 
traceInstructions(boolean on)118     public void traceInstructions(boolean on) {
119         throw new RuntimeException("Stub!");
120     }
121 
traceMethodCalls(boolean on)122     public void traceMethodCalls(boolean on) {
123         throw new RuntimeException("Stub!");
124     }
125 
load(java.lang.String filename)126     public void load(java.lang.String filename) {
127         throw new RuntimeException("Stub!");
128     }
129 
checkTargetSdkVersionForLoad(java.lang.String methodName)130     private void checkTargetSdkVersionForLoad(java.lang.String methodName) {
131         throw new RuntimeException("Stub!");
132     }
133 
134     @UnsupportedAppUsage
load(java.lang.String absolutePath, java.lang.ClassLoader loader)135     void load(java.lang.String absolutePath, java.lang.ClassLoader loader) {
136         throw new RuntimeException("Stub!");
137     }
138 
load0(java.lang.Class<?> fromClass, java.lang.String filename)139     synchronized void load0(java.lang.Class<?> fromClass, java.lang.String filename) {
140         throw new RuntimeException("Stub!");
141     }
142 
loadLibrary(java.lang.String libname)143     public void loadLibrary(java.lang.String libname) {
144         throw new RuntimeException("Stub!");
145     }
146 
loadLibrary0(java.lang.Class<?> fromClass, java.lang.String libname)147     void loadLibrary0(java.lang.Class<?> fromClass, java.lang.String libname) {
148         throw new RuntimeException("Stub!");
149     }
150 
151     @UnsupportedAppUsage
loadLibrary(java.lang.String libname, java.lang.ClassLoader classLoader)152     public void loadLibrary(java.lang.String libname, java.lang.ClassLoader classLoader) {
153         throw new RuntimeException("Stub!");
154     }
155 
156     @UnsupportedAppUsage
loadLibrary0(java.lang.ClassLoader loader, java.lang.String libname)157     void loadLibrary0(java.lang.ClassLoader loader, java.lang.String libname) {
158         throw new RuntimeException("Stub!");
159     }
160 
getLibPaths()161     private java.lang.String[] getLibPaths() {
162         throw new RuntimeException("Stub!");
163     }
164 
initLibPaths()165     private static java.lang.String[] initLibPaths() {
166         throw new RuntimeException("Stub!");
167     }
168 
169     @UnsupportedAppUsage
nativeLoad( java.lang.String filename, java.lang.ClassLoader loader)170     private static java.lang.String nativeLoad(
171             java.lang.String filename, java.lang.ClassLoader loader) {
172         throw new RuntimeException("Stub!");
173     }
174 
175     @Deprecated
getLocalizedInputStream(java.io.InputStream in)176     public java.io.InputStream getLocalizedInputStream(java.io.InputStream in) {
177         throw new RuntimeException("Stub!");
178     }
179 
180     @Deprecated
getLocalizedOutputStream(java.io.OutputStream out)181     public java.io.OutputStream getLocalizedOutputStream(java.io.OutputStream out) {
182         throw new RuntimeException("Stub!");
183     }
184 
185     private static java.lang.Runtime currentRuntime;
186 
187     private static boolean finalizeOnExit;
188 
189     @UnsupportedAppUsage
190     private volatile java.lang.String[] mLibPaths;
191 
192     private java.util.List<java.lang.Thread> shutdownHooks;
193 
194     private boolean shuttingDown;
195 
196     private boolean tracingMethods;
197 }
198