Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package com.android.systemui.recents; |
| 18 | |
| 19 | /** |
| 20 | * Constants |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 21 | */ |
| 22 | public 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 Chung | d42a6cf | 2014-06-03 16:24:04 -0700 | [diff] [blame] | 28 | // Enables the screenshot app->Recents transition |
| 29 | public static final boolean EnableScreenshotAppTransition = false; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 30 | // Enables the filtering of tasks according to their grouping |
Winson Chung | e0e45bc | 2014-06-17 17:56:17 -0700 | [diff] [blame] | 31 | public static final boolean EnableTaskFiltering = true; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 32 | // Enables clipping of tasks against each other |
Winson Chung | 5a9b0b0 | 2014-05-20 17:32:03 -0700 | [diff] [blame] | 33 | public static final boolean EnableTaskStackClipping = true; |
Winson Chung | 8e548f7 | 2014-06-24 14:40:53 -0700 | [diff] [blame] | 34 | // Enables tapping on the TaskBar to launch the task |
| 35 | public static final boolean EnableTaskBarTouchEvents = true; |
Winson Chung | 6cb485f | 2014-05-19 10:30:43 -0700 | [diff] [blame] | 36 | // Enables app-info pane on long-pressing the icon |
| 37 | public static final boolean EnableDevAppInfoOnLongPress = true; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 38 | // Enables the search bar layout |
| 39 | public static final boolean EnableSearchLayout = true; |
| 40 | // Enables the dynamic shadows behind each task |
Winson Chung | 602de03 | 2014-05-27 12:19:28 -0700 | [diff] [blame] | 41 | public static final boolean EnableShadows = true; |
Winson Chung | 9f9679d | 2014-04-11 16:49:09 -0700 | [diff] [blame] | 42 | // This disables the bitmap and icon caches |
Winson Chung | 04dfe0d | 2014-03-14 14:06:29 -0700 | [diff] [blame] | 43 | public static final boolean DisableBackgroundCache = false; |
Winson Chung | a10370f | 2014-04-02 12:25:04 -0700 | [diff] [blame] | 44 | // 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 Chung | 2f2ca08 | 2014-04-03 18:05:29 -0700 | [diff] [blame] | 47 | public static final int SystemServicesProxyMockPackageCount = 3; |
Winson Chung | a10370f | 2014-04-02 12:25:04 -0700 | [diff] [blame] | 48 | // For debugging, this defines the number of mock recents tasks to create |
Winson Chung | c9567c0 | 2014-06-16 20:25:51 -0700 | [diff] [blame] | 49 | public static final int SystemServicesProxyMockTaskCount = 100; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 50 | } |
| 51 | } |
Winson Chung | 4d7b092 | 2014-03-13 17:14:17 -0700 | [diff] [blame] | 52 | |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 53 | public static class Log { |
| 54 | public static class App { |
Winson Chung | bd91297 | 2014-03-18 14:36:35 -0700 | [diff] [blame] | 55 | public static final String TimeRecentsStartupKey = "startup"; |
| 56 | public static final String TimeRecentsLaunchKey = "launchTask"; |
Winson Chung | d42a6cf | 2014-06-03 16:24:04 -0700 | [diff] [blame] | 57 | public static final String TimeRecentsScreenshotTransitionKey = "screenshot"; |
Winson Chung | 7aceb9a | 2014-07-03 13:38:01 -0700 | [diff] [blame^] | 58 | public static final boolean TimeRecentsStartup = false; |
| 59 | public static final boolean TimeRecentsLaunchTask = false; |
| 60 | public static final boolean TimeRecentsScreenshotTransition = false; |
Winson Chung | d42a6cf | 2014-06-03 16:24:04 -0700 | [diff] [blame] | 61 | |
Winson Chung | bd91297 | 2014-03-18 14:36:35 -0700 | [diff] [blame] | 62 | |
Winson Chung | 7048fea | 2014-03-18 12:21:24 -0700 | [diff] [blame] | 63 | public static final boolean RecentsComponent = false; |
Winson Chung | 7124390 | 2014-03-14 17:52:47 -0700 | [diff] [blame] | 64 | public static final boolean TaskDataLoader = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 65 | public static final boolean SystemUIHandshake = false; |
| 66 | public static final boolean TimeSystemCalls = false; |
Winson Chung | 4d7b092 | 2014-03-13 17:14:17 -0700 | [diff] [blame] | 67 | public static final boolean Memory = false; |
Winson Chung | f7bca43 | 2014-04-30 17:11:13 -0700 | [diff] [blame] | 68 | public static final boolean Search = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 69 | } |
| 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 Chung | 7124390 | 2014-03-14 17:52:47 -0700 | [diff] [blame] | 76 | public static final boolean HwLayers = false; |
Winson Chung | 1e8d71b | 2014-05-16 17:05:22 -0700 | [diff] [blame] | 77 | public static final boolean Focus = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 78 | } |
| 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 Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 89 | /** XXX: We are going to move almost all of these into a resource once they are nailed down. */ |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 90 | public static class Values { |
Winson Chung | f7bca43 | 2014-04-30 17:11:13 -0700 | [diff] [blame] | 91 | public static class App { |
| 92 | public static int AppWidgetHostId = 1024; |
| 93 | public static String Key_SearchAppWidgetId = "searchAppWidgetId"; |
Winson Chung | 8eaeb7d | 2014-06-25 15:10:59 -0700 | [diff] [blame] | 94 | public static String Key_DebugModeEnabled = "debugModeEnabled"; |
| 95 | public static String DebugModeVersion = "A"; |
Winson Chung | f7bca43 | 2014-04-30 17:11:13 -0700 | [diff] [blame] | 96 | } |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 97 | |
| 98 | public static class RecentsTaskLoader { |
| 99 | // XXX: This should be calculated on the first load |
| 100 | public static final int PreloadFirstTasksCount = 5; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | public static class TaskStackView { |
Winson Chung | 47c4c69 | 2014-03-17 10:17:11 -0700 | [diff] [blame] | 104 | public static final int TaskStackOverscrollRange = 150; |
Winson Chung | 2f2ca08 | 2014-04-03 18:05:29 -0700 | [diff] [blame] | 105 | public static final int FilterStartDelay = 25; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 106 | } |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 107 | } |
Winson Chung | 069707e | 2014-05-29 23:07:42 +0000 | [diff] [blame] | 108 | } |