blob: aeae4ab892797821531b8c536ab1cf733a032f98 [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;
31 public static final boolean EnableBackgroundTaskLoading = true;
32 public static final boolean ForceDisableBackgroundCache = false;
33 public static final boolean TaskDataLoader = false;
34 public static final boolean SystemUIHandshake = false;
35 public static final boolean TimeSystemCalls = false;
36 }
37
38 public static class UI {
39 public static final boolean Draw = false;
40 public static final boolean ClickEvents = false;
41 public static final boolean TouchEvents = false;
42 public static final boolean MeasureAndLayout = false;
43 public static final boolean Clipping = false;
44 public static final boolean HwLayers = true;
45 }
46
47 public static class TaskStack {
48 public static final boolean SynchronizeViewsWithModel = false;
49 }
50
51 public static class ViewPool {
52 public static final boolean PoolCallbacks = false;
53 }
54 }
55
56 public static class Values {
57 public static class Window {
58 public static final float DarkBackgroundDim = 0.5f;
59 public static final float BackgroundDim = 0.35f;
60 }
61
62 public static class RecentsTaskLoader {
63 // XXX: This should be calculated on the first load
64 public static final int PreloadFirstTasksCount = 5;
65 public static final int TaskEntryMultiplier = 1;
66 }
67
68 public static class TaskStackView {
69 public static class Animation {
70 public static final int TaskRemovedReshuffleDuration = 200;
71 public static final int SnapScrollBackDuration = 650;
72 public static final int SwipeDismissDuration = 350;
73 public static final int SwipeSnapBackDuration = 350;
74 }
75
76 // The padding will be applied to the smallest dimension, and then applied to all sides
77 public static final float StackPaddingPct = 0.15f;
78 // The overlap height relative to the task height
79 public static final float StackOverlapPct = 0.65f;
80 // The height of the peek space relative to the stack height
81 public static final float StackPeekHeightPct = 0.1f;
82 // The min scale of the last card in the peek area
83 public static final float StackPeekMinScale = 0.9f;
84 // The number of cards we see in the peek space
85 public static final int StackPeekNumCards = 3;
86 }
87
88 public static class TaskView {
89 public static class Animation {
90 public static final int TaskDataUpdatedFadeDuration = 250;
91 public static final int TaskIconCircularClipInDuration = 225;
92 public static final int TaskIconCircularClipOutDuration = 85;
93 }
94
95 public static final boolean AnimateFrontTaskIconOnEnterRecents = true;
96 public static final boolean AnimateFrontTaskIconOnLeavingRecents = true;
97 public static final boolean AnimateFrontTaskIconOnLeavingUseClip = false;
98 public static final boolean DrawColoredTaskBars = false;
99 public static final boolean UseRoundedCorners = true;
100 public static final float RoundedCornerRadiusDps = 3;
101
102 public static final float TaskBarHeightDps = 54;
103 public static final float TaskIconSizeDps = 60;
104 }
105 }
106
107 // UNMIGRATED CONSTANTS:
108
109 /** Determines whether to layout the stack vertically in landscape mode */
110 public static final boolean LANDSCAPE_LAYOUT_VERTICAL_STACK = true;
111}