blob: 2dc4b88bbc038679589bb33d2a0382cf1166998b [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
21 * XXX: We are going to move almost all of these into a resource.
22 */
23public class Constants {
24 public static class DebugFlags {
25 // Enable this with any other debug flag to see more info
26 public static final boolean Verbose = false;
27
28 public static class App {
29 public static final boolean EnableTaskFiltering = false;
30 public static final boolean EnableTaskStackClipping = false;
Winson Chung47c4c692014-03-17 10:17:11 -070031 public static final boolean EnableToggleNewRecentsActivity = false;
Winson Chung04dfe0d2014-03-14 14:06:29 -070032 // This disables the bitmap and icon caches to
33 public static final boolean DisableBackgroundCache = false;
Winson Chung4d7b0922014-03-13 17:14:17 -070034
Winson Chungbd912972014-03-18 14:36:35 -070035 // Timing certain paths
36 public static final String TimeRecentsStartupKey = "startup";
37 public static final String TimeRecentsLaunchKey = "launchTask";
38 public static final boolean TimeRecentsStartup = false;
39 public static final boolean TimeRecentsLaunchTask = false;
40
Winson Chung7048fea2014-03-18 12:21:24 -070041 public static final boolean RecentsComponent = false;
Winson Chung71243902014-03-14 17:52:47 -070042 public static final boolean TaskDataLoader = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080043 public static final boolean SystemUIHandshake = false;
44 public static final boolean TimeSystemCalls = false;
Winson Chung4d7b0922014-03-13 17:14:17 -070045 public static final boolean Memory = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080046 }
47
48 public static class UI {
49 public static final boolean Draw = false;
50 public static final boolean ClickEvents = false;
51 public static final boolean TouchEvents = false;
52 public static final boolean MeasureAndLayout = false;
53 public static final boolean Clipping = false;
Winson Chung71243902014-03-14 17:52:47 -070054 public static final boolean HwLayers = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080055 }
56
57 public static class TaskStack {
58 public static final boolean SynchronizeViewsWithModel = false;
59 }
60
61 public static class ViewPool {
62 public static final boolean PoolCallbacks = false;
63 }
64 }
65
66 public static class Values {
67 public static class Window {
Winson Chung4d7b0922014-03-13 17:14:17 -070068 // The dark background dim is set behind the empty recents view
Winson Chung303e1ff2014-03-07 15:06:19 -080069 public static final float DarkBackgroundDim = 0.5f;
Winson Chung4d7b0922014-03-13 17:14:17 -070070 // The background dim is set behind the card stack
Winson Chung303e1ff2014-03-07 15:06:19 -080071 public static final float BackgroundDim = 0.35f;
72 }
73
74 public static class RecentsTaskLoader {
75 // XXX: This should be calculated on the first load
76 public static final int PreloadFirstTasksCount = 5;
Winson Chung4d7b0922014-03-13 17:14:17 -070077 // For debugging, this allows us to multiply the number of cards for each task
Winson Chung303e1ff2014-03-07 15:06:19 -080078 public static final int TaskEntryMultiplier = 1;
79 }
80
81 public static class TaskStackView {
82 public static class Animation {
83 public static final int TaskRemovedReshuffleDuration = 200;
84 public static final int SnapScrollBackDuration = 650;
Winson Chung303e1ff2014-03-07 15:06:19 -080085 }
86
Winson Chung47c4c692014-03-17 10:17:11 -070087 public static final int TaskStackOverscrollRange = 150;
88
Winson Chung303e1ff2014-03-07 15:06:19 -080089 // The padding will be applied to the smallest dimension, and then applied to all sides
90 public static final float StackPaddingPct = 0.15f;
91 // The overlap height relative to the task height
92 public static final float StackOverlapPct = 0.65f;
93 // The height of the peek space relative to the stack height
94 public static final float StackPeekHeightPct = 0.1f;
95 // The min scale of the last card in the peek area
96 public static final float StackPeekMinScale = 0.9f;
97 // The number of cards we see in the peek space
98 public static final int StackPeekNumCards = 3;
99 }
100
101 public static class TaskView {
102 public static class Animation {
103 public static final int TaskDataUpdatedFadeDuration = 250;
Winson Chung47c4c692014-03-17 10:17:11 -0700104 public static final int TaskIconOnEnterDuration = 175;
105 public static final int TaskIconOnLeavingDuration = 75;
Winson Chung303e1ff2014-03-07 15:06:19 -0800106 }
107
108 public static final boolean AnimateFrontTaskIconOnEnterRecents = true;
109 public static final boolean AnimateFrontTaskIconOnLeavingRecents = true;
Winson Chung47c4c692014-03-17 10:17:11 -0700110 public static final boolean AnimateFrontTaskIconOnEnterUseClip = false;
Winson Chung303e1ff2014-03-07 15:06:19 -0800111 public static final boolean AnimateFrontTaskIconOnLeavingUseClip = false;
112 public static final boolean DrawColoredTaskBars = false;
113 public static final boolean UseRoundedCorners = true;
114 public static final float RoundedCornerRadiusDps = 3;
115
116 public static final float TaskBarHeightDps = 54;
117 public static final float TaskIconSizeDps = 60;
118 }
119 }
Winson Chung303e1ff2014-03-07 15:06:19 -0800120}