blob: f11281e7692fe5bc8f4e05f29e0ea31cdb9b9aed [file] [log] [blame]
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -08001/*
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;
Wale Ogunwalee4f131a2016-03-07 07:33:56 -080038 static final boolean DEBUG_ADD_REMOVE = false;
Robert Carr22705e82016-01-20 12:59:21 -080039 static final boolean DEBUG_FOCUS = false;
Chong Zhange05db742016-02-16 16:58:37 -080040 static final boolean DEBUG_FOCUS_LIGHT = DEBUG_FOCUS || false;
41 static final boolean DEBUG_ANIM = false;
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -080042 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;
Chong Zhange05db742016-02-16 16:58:37 -080053 static final boolean DEBUG_APP_TRANSITIONS = false;
Robert Carr22705e82016-01-20 12:59:21 -080054 static final boolean DEBUG_STARTING_WINDOW = false;
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -080055 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;
Robert Carr22705e82016-01-20 12:59:21 -080061 static final boolean DEBUG_LAYOUT_REPEATS = false;
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -080062 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;
Filip Gruszczynski198dcbf2016-01-18 10:02:00 -080074 static final boolean SHOW_STACK_CRAWLS = false;
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -080075 static final boolean DEBUG_WINDOW_CROP = false;
Chong Zhang4ffc3182016-05-04 15:06:02 -070076
77 static final String TAG_KEEP_SCREEN_ON = "DebugKeepScreenOn";
Chong Zhang44aabe42016-05-10 11:20:14 -070078 static final boolean DEBUG_KEEP_SCREEN_ON = false;
Filip Gruszczynski0bd180d2015-12-07 15:43:52 -080079}