2 * Copyright (C) 2007 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 package com.android.server.wm;
21 * Common class for the various debug {@link android.util.Log} output configuration in the window
24 public 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;
33 // Default log tag for the window manager package.
34 static final String TAG_WM = "WindowManager";
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_VERBOSE = false;
55 static final boolean DEBUG_STARTING_WINDOW = DEBUG_STARTING_WINDOW_VERBOSE || true;
56 static final boolean DEBUG_WALLPAPER = false;
57 static final boolean DEBUG_WALLPAPER_LIGHT = false || DEBUG_WALLPAPER;
58 static final boolean DEBUG_DRAG = false;
59 static final boolean DEBUG_SCREEN_ON = false;
60 static final boolean DEBUG_SCREENSHOT = false;
61 static final boolean DEBUG_BOOT = false;
62 static final boolean DEBUG_LAYOUT_REPEATS = false;
63 static final boolean DEBUG_SURFACE_TRACE = false;
64 static final boolean DEBUG_WINDOW_TRACE = false;
65 static final boolean DEBUG_TASK_MOVEMENT = false;
66 static final boolean DEBUG_TASK_POSITIONING = false;
67 static final boolean DEBUG_STACK = false;
68 static final boolean DEBUG_DISPLAY = false;
69 static final boolean DEBUG_POWER = false;
70 static final boolean DEBUG_DIM_LAYER = false;
71 static final boolean SHOW_SURFACE_ALLOC = false;
72 static final boolean SHOW_TRANSACTIONS = false;
73 static final boolean SHOW_VERBOSE_TRANSACTIONS = false && SHOW_TRANSACTIONS;
74 static final boolean SHOW_LIGHT_TRANSACTIONS = false || SHOW_TRANSACTIONS;
75 static final boolean SHOW_STACK_CRAWLS = false;
76 static final boolean DEBUG_WINDOW_CROP = false;
77 static final boolean DEBUG_UNKNOWN_APP_VISIBILITY = false;
79 static final String TAG_KEEP_SCREEN_ON = "DebugKeepScreenOn";
80 static final boolean DEBUG_KEEP_SCREEN_ON = false;