blob: 7a49a044bc71b2a0a13af5560dfea2ea80a37774 [file] [log] [blame]
Winson Chung303e1ff2014-03-07 15:06:19 -08001/*
2 * Copyright (C) 2014 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
17package com.android.systemui.recents;
18
19/**
20 * Constants
Winson Chung303e1ff2014-03-07 15:06:19 -080021 */
22public class Constants {
23 public static class DebugFlags {
24 // Enable this with any other debug flag to see more info
25 public static final boolean Verbose = false;
26
27 public static class App {
Winson Chungd42a6cf2014-06-03 16:24:04 -070028 // Enables the screenshot app->Recents transition
29 public static final boolean EnableScreenshotAppTransition = false;
Winson Chung814086d2014-05-07 15:01:14 -070030 // Enables the filtering of tasks according to their grouping
Winson Chunge0e45bc2014-06-17 17:56:17 -070031 public static final boolean EnableTaskFiltering = true;
Winson Chung814086d2014-05-07 15:01:14 -070032 // Enables clipping of tasks against each other
Winson Chung5a9b0b02014-05-20 17:32:03 -070033 public static final boolean EnableTaskStackClipping = true;
Winson Chung8e548f72014-06-24 14:40:53 -070034 // Enables tapping on the TaskBar to launch the task
35 public static final boolean EnableTaskBarTouchEvents = true;
Winson Chung6cb485f2014-05-19 10:30:43 -070036 // Enables app-info pane on long-pressing the icon
37 public static final boolean EnableDevAppInfoOnLongPress = true;
Winson Chung814086d2014-05-07 15:01:14 -070038 // Enables the search bar layout
39 public static final boolean EnableSearchLayout = true;
40 // Enables the dynamic shadows behind each task
Winson Chung602de032014-05-27 12:19:28 -070041 public static final boolean EnableShadows = true;
Winson Chung9f9679d2014-04-11 16:49:09 -070042 // This disables the bitmap and icon caches
Winson Chung04dfe0d2014-03-14 14:06:29 -070043 public static final boolean DisableBackgroundCache = false;
Winson Chunga10370f2014-04-02 12:25:04 -070044 // For debugging, this enables us to create mock recents tasks
45 public static final boolean EnableSystemServicesProxy = false;
46 // For debugging, this defines the number of mock recents packages to create
Winson Chung2f2ca082014-04-03 18:05:29 -070047 public static final int SystemServicesProxyMockPackageCount = 3;
Winson Chunga10370f2014-04-02 12:25:04 -070048 // For debugging, this defines the number of mock recents tasks to create
Winson Chungc9567c02014-06-16 20:25:51 -070049 public static final int SystemServicesProxyMockTaskCount = 100;
Winson Chung814086d2014-05-07 15:01:14 -070050 }
51 }
Winson Chung4d7b0922014-03-13 17:14:17 -070052
Winson Chung814086d2014-05-07 15:01:14 -070053 public static class Log {
54 public static class App {
Winson Chungbd912972014-03-18 14:36:35 -070055 public static final String TimeRecentsStartupKey = "startup";
56 public static final String TimeRecentsLaunchKey = "launchTask";
Winson Chungd42a6cf2014-06-03 16:24:04 -070057 public static final String TimeRecentsScreenshotTransitionKey = "screenshot";
Winson Chung7aceb9a2014-07-03 13:38:01 -070058 public static final boolean TimeRecentsStartup = false;
59 public static final boolean TimeRecentsLaunchTask = false;
60 public static final boolean TimeRecentsScreenshotTransition = false;
Winson Chungd42a6cf2014-06-03 16:24:04 -070061
Winson Chungbd912972014-03-18 14:36:35 -070062
Winson Chung7048fea2014-03-18 12:21:24 -070063 public static final boolean RecentsComponent = false;
Winson Chung71243902014-03-14 17:52:47 -070064 public static final boolean TaskDataLoader = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080065 public static final boolean SystemUIHandshake = false;
66 public static final boolean TimeSystemCalls = false;
Winson Chung4d7b0922014-03-13 17:14:17 -070067 public static final boolean Memory = false;
Winson Chungf7bca432014-04-30 17:11:13 -070068 public static final boolean Search = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080069 }
70
71 public static class UI {
72 public static final boolean Draw = false;
73 public static final boolean ClickEvents = false;
74 public static final boolean TouchEvents = false;
75 public static final boolean MeasureAndLayout = false;
Winson Chung71243902014-03-14 17:52:47 -070076 public static final boolean HwLayers = false;
Winson Chung1e8d71b2014-05-16 17:05:22 -070077 public static final boolean Focus = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080078 }
79
80 public static class TaskStack {
81 public static final boolean SynchronizeViewsWithModel = false;
82 }
83
84 public static class ViewPool {
85 public static final boolean PoolCallbacks = false;
86 }
87 }
88
Winson Chung814086d2014-05-07 15:01:14 -070089 /** XXX: We are going to move almost all of these into a resource once they are nailed down. */
Winson Chung303e1ff2014-03-07 15:06:19 -080090 public static class Values {
Winson Chungf7bca432014-04-30 17:11:13 -070091 public static class App {
92 public static int AppWidgetHostId = 1024;
93 public static String Key_SearchAppWidgetId = "searchAppWidgetId";
Winson Chung8eaeb7d2014-06-25 15:10:59 -070094 public static String Key_DebugModeEnabled = "debugModeEnabled";
95 public static String DebugModeVersion = "A";
Winson Chungf7bca432014-04-30 17:11:13 -070096 }
Winson Chung303e1ff2014-03-07 15:06:19 -080097
98 public static class RecentsTaskLoader {
99 // XXX: This should be calculated on the first load
100 public static final int PreloadFirstTasksCount = 5;
Winson Chung303e1ff2014-03-07 15:06:19 -0800101 }
102
103 public static class TaskStackView {
Winson Chung47c4c692014-03-17 10:17:11 -0700104 public static final int TaskStackOverscrollRange = 150;
Winson Chung2f2ca082014-04-03 18:05:29 -0700105 public static final int FilterStartDelay = 25;
Winson Chung303e1ff2014-03-07 15:06:19 -0800106 }
Winson Chung303e1ff2014-03-07 15:06:19 -0800107 }
Winson Chung069707e2014-05-29 23:07:42 +0000108}