1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1994, 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 java.io.*;
30 import java.nio.channels.spi.SelectorProvider;
31 import java.nio.channels.Channel;
32 import java.util.Properties;
33 import java.util.PropertyPermission;
34 import java.util.Map;
35
36 @SuppressWarnings({"unchecked", "deprecation", "all"})
37 public final class System {
38
System()39 System() { throw new RuntimeException("Stub!"); }
40
setIn(@ibcore.util.Nullable java.io.InputStream in)41 public static void setIn(@libcore.util.Nullable java.io.InputStream in) { throw new RuntimeException("Stub!"); }
42
setOut(@ibcore.util.Nullable java.io.PrintStream out)43 public static void setOut(@libcore.util.Nullable java.io.PrintStream out) { throw new RuntimeException("Stub!"); }
44
setErr(@ibcore.util.Nullable java.io.PrintStream err)45 public static void setErr(@libcore.util.Nullable java.io.PrintStream err) { throw new RuntimeException("Stub!"); }
46
console()47 @libcore.util.Nullable public static java.io.Console console() { throw new RuntimeException("Stub!"); }
48
inheritedChannel()49 @libcore.util.Nullable public static java.nio.channels.Channel inheritedChannel() throws java.io.IOException { throw new RuntimeException("Stub!"); }
50
setSecurityManager(@ibcore.util.Nullable java.lang.SecurityManager s)51 public static void setSecurityManager(@libcore.util.Nullable java.lang.SecurityManager s) { throw new RuntimeException("Stub!"); }
52
getSecurityManager()53 @libcore.util.Nullable public static java.lang.SecurityManager getSecurityManager() { throw new RuntimeException("Stub!"); }
54
currentTimeMillis()55 public static native long currentTimeMillis();
56
nanoTime()57 public static native long nanoTime();
58
arraycopy(@ibcore.util.NonNull java.lang.Object src, int srcPos, @libcore.util.NonNull java.lang.Object dest, int destPos, int length)59 public static native void arraycopy(@libcore.util.NonNull java.lang.Object src, int srcPos, @libcore.util.NonNull java.lang.Object dest, int destPos, int length);
60
identityHashCode(@ibcore.util.Nullable java.lang.Object x)61 public static int identityHashCode(@libcore.util.Nullable java.lang.Object x) { throw new RuntimeException("Stub!"); }
62
getProperties()63 @libcore.util.NonNull public static java.util.Properties getProperties() { throw new RuntimeException("Stub!"); }
64
lineSeparator()65 @libcore.util.NonNull public static java.lang.String lineSeparator() { throw new RuntimeException("Stub!"); }
66
setProperties(@ibcore.util.Nullable java.util.Properties props)67 public static void setProperties(@libcore.util.Nullable java.util.Properties props) { throw new RuntimeException("Stub!"); }
68
getProperty(@ibcore.util.NonNull java.lang.String key)69 @libcore.util.Nullable public static java.lang.String getProperty(@libcore.util.NonNull java.lang.String key) { throw new RuntimeException("Stub!"); }
70
getProperty(@ibcore.util.NonNull java.lang.String key, @libcore.util.Nullable java.lang.String def)71 @libcore.util.Nullable public static java.lang.String getProperty(@libcore.util.NonNull java.lang.String key, @libcore.util.Nullable java.lang.String def) { throw new RuntimeException("Stub!"); }
72
setProperty(@ibcore.util.NonNull java.lang.String key, @libcore.util.Nullable java.lang.String value)73 @libcore.util.Nullable public static java.lang.String setProperty(@libcore.util.NonNull java.lang.String key, @libcore.util.Nullable java.lang.String value) { throw new RuntimeException("Stub!"); }
74
clearProperty(@ibcore.util.NonNull java.lang.String key)75 @libcore.util.Nullable public static java.lang.String clearProperty(@libcore.util.NonNull java.lang.String key) { throw new RuntimeException("Stub!"); }
76
getenv(@ibcore.util.NonNull java.lang.String name)77 @libcore.util.Nullable public static java.lang.String getenv(@libcore.util.NonNull java.lang.String name) { throw new RuntimeException("Stub!"); }
78
getenv()79 @libcore.util.NonNull public static java.util.Map<java.lang.String,java.lang.String> getenv() { throw new RuntimeException("Stub!"); }
80
exit(int status)81 public static void exit(int status) { throw new RuntimeException("Stub!"); }
82
gc()83 public static void gc() { throw new RuntimeException("Stub!"); }
84
runFinalization()85 public static void runFinalization() { throw new RuntimeException("Stub!"); }
86
runFinalizersOnExit(boolean value)87 @Deprecated public static void runFinalizersOnExit(boolean value) { throw new RuntimeException("Stub!"); }
88
load(@ibcore.util.NonNull java.lang.String filename)89 public static void load(@libcore.util.NonNull java.lang.String filename) { throw new RuntimeException("Stub!"); }
90
loadLibrary(@ibcore.util.NonNull java.lang.String libname)91 public static void loadLibrary(@libcore.util.NonNull java.lang.String libname) { throw new RuntimeException("Stub!"); }
92
mapLibraryName(@ibcore.util.NonNull java.lang.String libname)93 @libcore.util.NonNull public static native java.lang.String mapLibraryName(@libcore.util.NonNull java.lang.String libname);
94
95 public static final java.io.PrintStream err;
96 static { err = null; }
97
98 public static final java.io.InputStream in;
99 static { in = null; }
100
101 public static final java.io.PrintStream out;
102 static { out = null; }
103 }
104