WindowManagerDebugConfig.java revision 44aabe4b7240a9a03678b4a66bdd5f46a9dfb29a
1/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18package com.android.server.wm;
19
20/**
21 * Common class for the various debug {@link android.util.Log} output configuration in the window
22 * manager package.
23 */
24public class WindowManagerDebugConfig {
25    // All output logs in the window manager package use the {@link #TAG_WM} string for tagging
26    // their log output. This makes it easy to identify the origin of the log message when sifting
27    // through a large amount of log output from multiple sources. However, it also makes trying
28    // to figure-out the origin of a log message while debugging the window manager a little
29    // painful. By setting this constant to true, log messages from the window manager package
30    // will be tagged with their class names instead fot the generic tag.
31    static final boolean TAG_WITH_CLASS_NAME = false;
32
33    // Default log tag for the window manager package.
34    static final String TAG_WM = "WindowManager";
35
36    static final boolean DEBUG_RESIZE = false;
37    static final boolean DEBUG = false;
38    static final boolean DEBUG_ADD_REMOVE = false;
39    static final boolean DEBUG_FOCUS = false;
40    static final boolean DEBUG_FOCUS_LIGHT = DEBUG_FOCUS || false;
41    static final boolean DEBUG_ANIM = false;
42    static final boolean DEBUG_KEYGUARD = false;
43    static final boolean DEBUG_LAYOUT = false;
44    static final boolean DEBUG_LAYERS = false;
45    static final boolean DEBUG_INPUT = false;
46    static final boolean DEBUG_INPUT_METHOD = false;
47    static final boolean DEBUG_VISIBILITY = false;
48    static final boolean DEBUG_WINDOW_MOVEMENT = false;
49    static final boolean DEBUG_TOKEN_MOVEMENT = false;
50    static final boolean DEBUG_ORIENTATION = false;
51    static final boolean DEBUG_APP_ORIENTATION = false;
52    static final boolean DEBUG_CONFIGURATION = false;
53    static final boolean DEBUG_APP_TRANSITIONS = false;
54    static final boolean DEBUG_STARTING_WINDOW = false;
55    static final boolean DEBUG_WALLPAPER = false;
56    static final boolean DEBUG_WALLPAPER_LIGHT = false || DEBUG_WALLPAPER;
57    static final boolean DEBUG_DRAG = false;
58    static final boolean DEBUG_SCREEN_ON = false;
59    static final boolean DEBUG_SCREENSHOT = false;
60    static final boolean DEBUG_BOOT = false;
61    static final boolean DEBUG_LAYOUT_REPEATS = false;
62    static final boolean DEBUG_SURFACE_TRACE = false;
63    static final boolean DEBUG_WINDOW_TRACE = false;
64    static final boolean DEBUG_TASK_MOVEMENT = false;
65    static final boolean DEBUG_TASK_POSITIONING = false;
66    static final boolean DEBUG_STACK = false;
67    static final boolean DEBUG_DISPLAY = false;
68    static final boolean DEBUG_POWER = false;
69    static final boolean DEBUG_DIM_LAYER = false;
70    static final boolean SHOW_SURFACE_ALLOC = false;
71    static final boolean SHOW_TRANSACTIONS = false;
72    static final boolean SHOW_VERBOSE_TRANSACTIONS = false && SHOW_TRANSACTIONS;
73    static final boolean SHOW_LIGHT_TRANSACTIONS = false || SHOW_TRANSACTIONS;
74    static final boolean SHOW_STACK_CRAWLS = false;
75    static final boolean DEBUG_WINDOW_CROP = false;
76
77    static final String TAG_KEEP_SCREEN_ON = "DebugKeepScreenOn";
78    static final boolean DEBUG_KEEP_SCREEN_ON = false;
79}
80