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 | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 28 | // Enables the filtering of tasks according to their grouping |
Winson Chung | 0553e12 | 2014-04-30 17:26:28 -0700 | [diff] [blame] | 29 | public static final boolean EnableTaskFiltering = false; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 30 | // Enables clipping of tasks against each other |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 31 | public static final boolean EnableTaskStackClipping = false; |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 32 | // Enables the use of theme colors as the task bar background |
Winson Chung | f5e22e7 | 2014-05-02 18:35:35 -0700 | [diff] [blame] | 33 | public static final boolean EnableTaskBarThemeColors = true; |
Winson Chung | 6cb485f | 2014-05-19 10:30:43 -0700 | [diff] [blame^] | 34 | // Enables the info pane on long-pressing the task |
Winson Chung | 54e297a | 2014-05-09 17:15:32 -0700 | [diff] [blame] | 35 | public static final boolean EnableInfoPane = false; |
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 |
| 41 | public static final boolean EnableShadows = false; |
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 |
| 49 | public static final int SystemServicesProxyMockTaskCount = 75; |
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"; |
| 57 | public static final boolean TimeRecentsStartup = false; |
| 58 | public static final boolean TimeRecentsLaunchTask = false; |
| 59 | |
Winson Chung | 7048fea | 2014-03-18 12:21:24 -0700 | [diff] [blame] | 60 | public static final boolean RecentsComponent = false; |
Winson Chung | 7124390 | 2014-03-14 17:52:47 -0700 | [diff] [blame] | 61 | public static final boolean TaskDataLoader = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 62 | public static final boolean SystemUIHandshake = false; |
| 63 | public static final boolean TimeSystemCalls = false; |
Winson Chung | 4d7b092 | 2014-03-13 17:14:17 -0700 | [diff] [blame] | 64 | public static final boolean Memory = false; |
Winson Chung | f7bca43 | 2014-04-30 17:11:13 -0700 | [diff] [blame] | 65 | public static final boolean Search = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | public static class UI { |
| 69 | public static final boolean Draw = false; |
| 70 | public static final boolean ClickEvents = false; |
| 71 | public static final boolean TouchEvents = false; |
| 72 | public static final boolean MeasureAndLayout = false; |
Winson Chung | 7124390 | 2014-03-14 17:52:47 -0700 | [diff] [blame] | 73 | public static final boolean HwLayers = false; |
Winson Chung | 1e8d71b | 2014-05-16 17:05:22 -0700 | [diff] [blame] | 74 | public static final boolean Focus = false; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | public static class TaskStack { |
| 78 | public static final boolean SynchronizeViewsWithModel = false; |
| 79 | } |
| 80 | |
| 81 | public static class ViewPool { |
| 82 | public static final boolean PoolCallbacks = false; |
| 83 | } |
| 84 | } |
| 85 | |
Winson Chung | 814086d | 2014-05-07 15:01:14 -0700 | [diff] [blame] | 86 | /** 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] | 87 | public static class Values { |
Winson Chung | f7bca43 | 2014-04-30 17:11:13 -0700 | [diff] [blame] | 88 | public static class App { |
| 89 | public static int AppWidgetHostId = 1024; |
| 90 | public static String Key_SearchAppWidgetId = "searchAppWidgetId"; |
| 91 | } |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 92 | public static class Window { |
Winson Chung | 4d7b092 | 2014-03-13 17:14:17 -0700 | [diff] [blame] | 93 | // The dark background dim is set behind the empty recents view |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 94 | public static final float DarkBackgroundDim = 0.5f; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | public static class RecentsTaskLoader { |
| 98 | // XXX: This should be calculated on the first load |
| 99 | public static final int PreloadFirstTasksCount = 5; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | public static class TaskStackView { |
Winson Chung | 47c4c69 | 2014-03-17 10:17:11 -0700 | [diff] [blame] | 103 | public static final int TaskStackOverscrollRange = 150; |
Winson Chung | 2f2ca08 | 2014-04-03 18:05:29 -0700 | [diff] [blame] | 104 | public static final int FilterStartDelay = 25; |
Winson Chung | 47c4c69 | 2014-03-17 10:17:11 -0700 | [diff] [blame] | 105 | |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 106 | // The padding will be applied to the smallest dimension, and then applied to all sides |
Winson Chung | 96e3bc1 | 2014-05-06 16:44:12 -0700 | [diff] [blame] | 107 | public static final float StackPaddingPct = 0.1f; |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 108 | // The overlap height relative to the task height |
| 109 | public static final float StackOverlapPct = 0.65f; |
| 110 | // The height of the peek space relative to the stack height |
| 111 | public static final float StackPeekHeightPct = 0.1f; |
| 112 | // The min scale of the last card in the peek area |
| 113 | public static final float StackPeekMinScale = 0.9f; |
| 114 | // The number of cards we see in the peek space |
| 115 | public static final int StackPeekNumCards = 3; |
| 116 | } |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 117 | } |
Winson Chung | 303e1ff | 2014-03-07 15:06:19 -0800 | [diff] [blame] | 118 | } |