• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2000, 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.util.logging;
28 
29 import dalvik.annotation.compat.UnsupportedAppUsage;
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public class LogManager {
33 
LogManager()34     protected LogManager() {
35         throw new RuntimeException("Stub!");
36     }
37 
LogManager(java.lang.Void checked)38     private LogManager(java.lang.Void checked) {
39         throw new RuntimeException("Stub!");
40     }
41 
checkSubclassPermissions()42     private static java.lang.Void checkSubclassPermissions() {
43         throw new RuntimeException("Stub!");
44     }
45 
ensureLogManagerInitialized()46     final void ensureLogManagerInitialized() {
47         throw new RuntimeException("Stub!");
48     }
49 
getLogManager()50     public static java.util.logging.LogManager getLogManager() {
51         throw new RuntimeException("Stub!");
52     }
53 
readPrimordialConfiguration()54     private void readPrimordialConfiguration() {
55         throw new RuntimeException("Stub!");
56     }
57 
58     @Deprecated
addPropertyChangeListener(java.beans.PropertyChangeListener l)59     public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
60             throws java.lang.SecurityException {
61         throw new RuntimeException("Stub!");
62     }
63 
64     @Deprecated
removePropertyChangeListener(java.beans.PropertyChangeListener l)65     public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
66             throws java.lang.SecurityException {
67         throw new RuntimeException("Stub!");
68     }
69 
getUserContext()70     private java.util.logging.LogManager.LoggerContext getUserContext() {
71         throw new RuntimeException("Stub!");
72     }
73 
getSystemContext()74     final java.util.logging.LogManager.LoggerContext getSystemContext() {
75         throw new RuntimeException("Stub!");
76     }
77 
contexts()78     private java.util.List<java.util.logging.LogManager.LoggerContext> contexts() {
79         throw new RuntimeException("Stub!");
80     }
81 
demandLogger( java.lang.String name, java.lang.String resourceBundleName, java.lang.Class<?> caller)82     java.util.logging.Logger demandLogger(
83             java.lang.String name, java.lang.String resourceBundleName, java.lang.Class<?> caller) {
84         throw new RuntimeException("Stub!");
85     }
86 
demandSystemLogger( java.lang.String name, java.lang.String resourceBundleName)87     java.util.logging.Logger demandSystemLogger(
88             java.lang.String name, java.lang.String resourceBundleName) {
89         throw new RuntimeException("Stub!");
90     }
91 
getClassInstance(java.lang.String cname)92     private static java.lang.Class getClassInstance(java.lang.String cname)
93             throws java.lang.ClassNotFoundException {
94         throw new RuntimeException("Stub!");
95     }
96 
loadLoggerHandlers( java.util.logging.Logger logger, java.lang.String name, java.lang.String handlersPropertyName)97     private void loadLoggerHandlers(
98             java.util.logging.Logger logger,
99             java.lang.String name,
100             java.lang.String handlersPropertyName) {
101         throw new RuntimeException("Stub!");
102     }
103 
drainLoggerRefQueueBounded()104     final void drainLoggerRefQueueBounded() {
105         throw new RuntimeException("Stub!");
106     }
107 
addLogger(java.util.logging.Logger logger)108     public boolean addLogger(java.util.logging.Logger logger) {
109         throw new RuntimeException("Stub!");
110     }
111 
doSetLevel(java.util.logging.Logger logger, java.util.logging.Level level)112     private static void doSetLevel(java.util.logging.Logger logger, java.util.logging.Level level) {
113         throw new RuntimeException("Stub!");
114     }
115 
doSetParent( java.util.logging.Logger logger, java.util.logging.Logger parent)116     private static void doSetParent(
117             java.util.logging.Logger logger, java.util.logging.Logger parent) {
118         throw new RuntimeException("Stub!");
119     }
120 
getLogger(java.lang.String name)121     public java.util.logging.Logger getLogger(java.lang.String name) {
122         throw new RuntimeException("Stub!");
123     }
124 
getLoggerNames()125     public java.util.Enumeration<java.lang.String> getLoggerNames() {
126         throw new RuntimeException("Stub!");
127     }
128 
readConfiguration()129     public void readConfiguration() throws java.io.IOException, java.lang.SecurityException {
130         throw new RuntimeException("Stub!");
131     }
132 
reset()133     public void reset() throws java.lang.SecurityException {
134         throw new RuntimeException("Stub!");
135     }
136 
resetLogger(java.util.logging.Logger logger)137     private void resetLogger(java.util.logging.Logger logger) {
138         throw new RuntimeException("Stub!");
139     }
140 
parseClassNames(java.lang.String propertyName)141     private java.lang.String[] parseClassNames(java.lang.String propertyName) {
142         throw new RuntimeException("Stub!");
143     }
144 
readConfiguration(java.io.InputStream ins)145     public void readConfiguration(java.io.InputStream ins)
146             throws java.io.IOException, java.lang.SecurityException {
147         throw new RuntimeException("Stub!");
148     }
149 
getProperty(java.lang.String name)150     public java.lang.String getProperty(java.lang.String name) {
151         throw new RuntimeException("Stub!");
152     }
153 
getStringProperty(java.lang.String name, java.lang.String defaultValue)154     java.lang.String getStringProperty(java.lang.String name, java.lang.String defaultValue) {
155         throw new RuntimeException("Stub!");
156     }
157 
getIntProperty(java.lang.String name, int defaultValue)158     int getIntProperty(java.lang.String name, int defaultValue) {
159         throw new RuntimeException("Stub!");
160     }
161 
getBooleanProperty(java.lang.String name, boolean defaultValue)162     boolean getBooleanProperty(java.lang.String name, boolean defaultValue) {
163         throw new RuntimeException("Stub!");
164     }
165 
getLevelProperty( java.lang.String name, java.util.logging.Level defaultValue)166     java.util.logging.Level getLevelProperty(
167             java.lang.String name, java.util.logging.Level defaultValue) {
168         throw new RuntimeException("Stub!");
169     }
170 
getFilterProperty( java.lang.String name, java.util.logging.Filter defaultValue)171     java.util.logging.Filter getFilterProperty(
172             java.lang.String name, java.util.logging.Filter defaultValue) {
173         throw new RuntimeException("Stub!");
174     }
175 
176     @UnsupportedAppUsage
getFormatterProperty( java.lang.String name, java.util.logging.Formatter defaultValue)177     java.util.logging.Formatter getFormatterProperty(
178             java.lang.String name, java.util.logging.Formatter defaultValue) {
179         throw new RuntimeException("Stub!");
180     }
181 
initializeGlobalHandlers()182     private synchronized void initializeGlobalHandlers() {
183         throw new RuntimeException("Stub!");
184     }
185 
checkPermission()186     void checkPermission() {
187         throw new RuntimeException("Stub!");
188     }
189 
checkAccess()190     public void checkAccess() throws java.lang.SecurityException {
191         throw new RuntimeException("Stub!");
192     }
193 
setLevelsOnExistingLoggers()194     private synchronized void setLevelsOnExistingLoggers() {
195         throw new RuntimeException("Stub!");
196     }
197 
getLoggingMXBean()198     public static synchronized java.util.logging.LoggingMXBean getLoggingMXBean() {
199         throw new RuntimeException("Stub!");
200     }
201 
202     public static final java.lang.String LOGGING_MXBEAN_NAME = "java.util.logging:type=Logging";
203 
204     private static final int MAX_ITERATIONS = 400; // 0x190
205 
206     private java.util.WeakHashMap<java.lang.Object, java.util.logging.LogManager.LoggerContext>
207             contextsMap;
208 
209     private final java.security.Permission controlPermission;
210 
211     {
212         controlPermission = null;
213     }
214 
215     private boolean deathImminent;
216 
217     private static final java.util.logging.Level defaultLevel;
218 
219     static {
220         defaultLevel = null;
221     }
222 
223     private volatile boolean initializationDone = false;
224 
225     private boolean initializedCalled = false;
226 
227     private boolean initializedGlobalHandlers = true;
228 
229     private final java.util.Map<java.lang.Object, java.lang.Integer> listenerMap;
230 
231     {
232         listenerMap = null;
233     }
234 
235     private final java.lang.ref.ReferenceQueue<java.util.logging.Logger> loggerRefQueue;
236 
237     {
238         loggerRefQueue = null;
239     }
240 
241     private static java.util.logging.LoggingMXBean loggingMXBean;
242 
243     private static final java.util.logging.LogManager manager;
244 
245     static {
246         manager = null;
247     }
248 
249     private volatile java.util.Properties props;
250 
251     private volatile boolean readPrimordialConfiguration;
252 
253     private volatile java.util.logging.Logger rootLogger;
254 
255     private final java.util.logging.LogManager.LoggerContext systemContext;
256 
257     {
258         systemContext = null;
259     }
260 
261     private final java.util.logging.LogManager.LoggerContext userContext;
262 
263     {
264         userContext = null;
265     }
266 
267     @SuppressWarnings({"unchecked", "deprecation", "all"})
268     private static class Beans {
269 
Beans()270         private Beans() {
271             throw new RuntimeException("Stub!");
272         }
273 
getClass(java.lang.String name)274         private static java.lang.Class<?> getClass(java.lang.String name) {
275             throw new RuntimeException("Stub!");
276         }
277 
getConstructor( java.lang.Class<?> c, java.lang.Class<?>... types)278         private static java.lang.reflect.Constructor<?> getConstructor(
279                 java.lang.Class<?> c, java.lang.Class<?>... types) {
280             throw new RuntimeException("Stub!");
281         }
282 
getMethod( java.lang.Class<?> c, java.lang.String name, java.lang.Class<?>... types)283         private static java.lang.reflect.Method getMethod(
284                 java.lang.Class<?> c, java.lang.String name, java.lang.Class<?>... types) {
285             throw new RuntimeException("Stub!");
286         }
287 
isBeansPresent()288         static boolean isBeansPresent() {
289             throw new RuntimeException("Stub!");
290         }
291 
newPropertyChangeEvent( java.lang.Object source, java.lang.String prop, java.lang.Object oldValue, java.lang.Object newValue)292         static java.lang.Object newPropertyChangeEvent(
293                 java.lang.Object source,
294                 java.lang.String prop,
295                 java.lang.Object oldValue,
296                 java.lang.Object newValue) {
297             throw new RuntimeException("Stub!");
298         }
299 
invokePropertyChange(java.lang.Object listener, java.lang.Object ev)300         static void invokePropertyChange(java.lang.Object listener, java.lang.Object ev) {
301             throw new RuntimeException("Stub!");
302         }
303 
304         private static final java.lang.Class<?> propertyChangeEventClass;
305 
306         static {
307             propertyChangeEventClass = null;
308         }
309 
310         private static final java.lang.Class<?> propertyChangeListenerClass;
311 
312         static {
313             propertyChangeListenerClass = null;
314         }
315 
316         private static final java.lang.reflect.Method propertyChangeMethod;
317 
318         static {
319             propertyChangeMethod = null;
320         }
321 
322         private static final java.lang.reflect.Constructor<?> propertyEventCtor;
323 
324         static {
325             propertyEventCtor = null;
326         }
327     }
328 
329     @SuppressWarnings({"unchecked", "deprecation", "all"})
330     private class Cleaner extends java.lang.Thread {
331 
Cleaner()332         private Cleaner() {
333             throw new RuntimeException("Stub!");
334         }
335 
run()336         public void run() {
337             throw new RuntimeException("Stub!");
338         }
339     }
340 
341     @SuppressWarnings({"unchecked", "deprecation", "all"})
342     private static class LogNode {
343 
LogNode( java.util.logging.LogManager.LogNode parent, java.util.logging.LogManager.LoggerContext context)344         LogNode(
345                 java.util.logging.LogManager.LogNode parent,
346                 java.util.logging.LogManager.LoggerContext context) {
347             throw new RuntimeException("Stub!");
348         }
349 
walkAndSetParent(java.util.logging.Logger parent)350         void walkAndSetParent(java.util.logging.Logger parent) {
351             throw new RuntimeException("Stub!");
352         }
353 
354         java.util.HashMap<java.lang.String, java.util.logging.LogManager.LogNode> children;
355 
356         final java.util.logging.LogManager.LoggerContext context;
357 
358         {
359             context = null;
360         }
361 
362         java.util.logging.LogManager.LoggerWeakRef loggerRef;
363 
364         java.util.logging.LogManager.LogNode parent;
365     }
366 
367     @SuppressWarnings({"unchecked", "deprecation", "all"})
368     class LoggerContext {
369 
LoggerContext()370         private LoggerContext() {
371             throw new RuntimeException("Stub!");
372         }
373 
requiresDefaultLoggers()374         final boolean requiresDefaultLoggers() {
375             throw new RuntimeException("Stub!");
376         }
377 
getOwner()378         final java.util.logging.LogManager getOwner() {
379             throw new RuntimeException("Stub!");
380         }
381 
getRootLogger()382         final java.util.logging.Logger getRootLogger() {
383             throw new RuntimeException("Stub!");
384         }
385 
getGlobalLogger()386         final java.util.logging.Logger getGlobalLogger() {
387             throw new RuntimeException("Stub!");
388         }
389 
demandLogger( java.lang.String name, java.lang.String resourceBundleName)390         java.util.logging.Logger demandLogger(
391                 java.lang.String name, java.lang.String resourceBundleName) {
392             throw new RuntimeException("Stub!");
393         }
394 
ensureInitialized()395         private void ensureInitialized() {
396             throw new RuntimeException("Stub!");
397         }
398 
findLogger(java.lang.String name)399         synchronized java.util.logging.Logger findLogger(java.lang.String name) {
400             throw new RuntimeException("Stub!");
401         }
402 
ensureAllDefaultLoggers(java.util.logging.Logger logger)403         private void ensureAllDefaultLoggers(java.util.logging.Logger logger) {
404             throw new RuntimeException("Stub!");
405         }
406 
ensureDefaultLogger(java.util.logging.Logger logger)407         private void ensureDefaultLogger(java.util.logging.Logger logger) {
408             throw new RuntimeException("Stub!");
409         }
410 
addLocalLogger(java.util.logging.Logger logger)411         boolean addLocalLogger(java.util.logging.Logger logger) {
412             throw new RuntimeException("Stub!");
413         }
414 
addLocalLogger( java.util.logging.Logger logger, boolean addDefaultLoggersIfNeeded)415         synchronized boolean addLocalLogger(
416                 java.util.logging.Logger logger, boolean addDefaultLoggersIfNeeded) {
417             throw new RuntimeException("Stub!");
418         }
419 
removeLoggerRef( java.lang.String name, java.util.logging.LogManager.LoggerWeakRef ref)420         synchronized void removeLoggerRef(
421                 java.lang.String name, java.util.logging.LogManager.LoggerWeakRef ref) {
422             throw new RuntimeException("Stub!");
423         }
424 
getLoggerNames()425         synchronized java.util.Enumeration<java.lang.String> getLoggerNames() {
426             throw new RuntimeException("Stub!");
427         }
428 
processParentHandlers(java.util.logging.Logger logger, java.lang.String name)429         private void processParentHandlers(java.util.logging.Logger logger, java.lang.String name) {
430             throw new RuntimeException("Stub!");
431         }
432 
getNode(java.lang.String name)433         java.util.logging.LogManager.LogNode getNode(java.lang.String name) {
434             throw new RuntimeException("Stub!");
435         }
436 
437         private final java.util.Hashtable<
438                         java.lang.String, java.util.logging.LogManager.LoggerWeakRef>
439                 namedLoggers;
440 
441         {
442             namedLoggers = null;
443         }
444 
445         private final java.util.logging.LogManager.LogNode root;
446 
447         {
448             root = null;
449         }
450     }
451 
452     @SuppressWarnings({"unchecked", "deprecation", "all"})
453     final class LoggerWeakRef extends java.lang.ref.WeakReference<java.util.logging.Logger> {
454 
LoggerWeakRef(java.util.logging.Logger logger)455         LoggerWeakRef(java.util.logging.Logger logger) {
456             super(null);
457             throw new RuntimeException("Stub!");
458         }
459 
dispose()460         void dispose() {
461             throw new RuntimeException("Stub!");
462         }
463 
setNode(java.util.logging.LogManager.LogNode node)464         void setNode(java.util.logging.LogManager.LogNode node) {
465             throw new RuntimeException("Stub!");
466         }
467 
setParentRef(java.lang.ref.WeakReference<java.util.logging.Logger> parentRef)468         void setParentRef(java.lang.ref.WeakReference<java.util.logging.Logger> parentRef) {
469             throw new RuntimeException("Stub!");
470         }
471 
472         private boolean disposed = false;
473 
474         private java.lang.String name;
475 
476         private java.util.logging.LogManager.LogNode node;
477 
478         private java.lang.ref.WeakReference<java.util.logging.Logger> parentRef;
479     }
480 
481     @SuppressWarnings({"unchecked", "deprecation", "all"})
482     private final class RootLogger extends java.util.logging.Logger {
483 
RootLogger()484         private RootLogger() {
485             super("", null, null, LogManager.this, true);
486             throw new RuntimeException("Stub!");
487         }
488 
log(java.util.logging.LogRecord record)489         public void log(java.util.logging.LogRecord record) {
490             throw new RuntimeException("Stub!");
491         }
492 
addHandler(java.util.logging.Handler h)493         public void addHandler(java.util.logging.Handler h) {
494             throw new RuntimeException("Stub!");
495         }
496 
removeHandler(java.util.logging.Handler h)497         public void removeHandler(java.util.logging.Handler h) {
498             throw new RuntimeException("Stub!");
499         }
500 
accessCheckedHandlers()501         java.util.logging.Handler[] accessCheckedHandlers() {
502             throw new RuntimeException("Stub!");
503         }
504     }
505 
506     @SuppressWarnings({"unchecked", "deprecation", "all"})
507     final class SystemLoggerContext extends java.util.logging.LogManager.LoggerContext {
508 
SystemLoggerContext()509         SystemLoggerContext() {
510             throw new RuntimeException("Stub!");
511         }
512 
demandLogger( java.lang.String name, java.lang.String resourceBundleName)513         java.util.logging.Logger demandLogger(
514                 java.lang.String name, java.lang.String resourceBundleName) {
515             throw new RuntimeException("Stub!");
516         }
517     }
518 }
519