blob: 9b0150e9676a80af172848443b8a1bd879cd2cb5 [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 {
Winson Chung0553e122014-04-30 17:26:28 -070029 public static final boolean EnableTaskFiltering = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080030 public static final boolean EnableTaskStackClipping = false;
Winson Chungf5e22e72014-05-02 18:35:35 -070031 public static final boolean EnableTaskBarThemeColors = true;
Winson Chung9f9679d2014-04-11 16:49:09 -070032 public static final boolean EnableInfoPane = true;
Winson Chungecd9b302014-04-16 17:07:18 -070033 public static final boolean EnableSearchButton = false;
Winson Chung9f9679d2014-04-11 16:49:09 -070034
35 // This disables the bitmap and icon caches
Winson Chung04dfe0d2014-03-14 14:06:29 -070036 public static final boolean DisableBackgroundCache = false;
Winson Chunga10370f2014-04-02 12:25:04 -070037 // For debugging, this enables us to create mock recents tasks
38 public static final boolean EnableSystemServicesProxy = false;
39 // For debugging, this defines the number of mock recents packages to create
Winson Chung2f2ca082014-04-03 18:05:29 -070040 public static final int SystemServicesProxyMockPackageCount = 3;
Winson Chunga10370f2014-04-02 12:25:04 -070041 // For debugging, this defines the number of mock recents tasks to create
42 public static final int SystemServicesProxyMockTaskCount = 75;
Winson Chung4d7b0922014-03-13 17:14:17 -070043
Winson Chungbd912972014-03-18 14:36:35 -070044 // Timing certain paths
45 public static final String TimeRecentsStartupKey = "startup";
46 public static final String TimeRecentsLaunchKey = "launchTask";
47 public static final boolean TimeRecentsStartup = false;
48 public static final boolean TimeRecentsLaunchTask = false;
49
Winson Chung7048fea2014-03-18 12:21:24 -070050 public static final boolean RecentsComponent = false;
Winson Chung71243902014-03-14 17:52:47 -070051 public static final boolean TaskDataLoader = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080052 public static final boolean SystemUIHandshake = false;
53 public static final boolean TimeSystemCalls = false;
Winson Chung4d7b0922014-03-13 17:14:17 -070054 public static final boolean Memory = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080055 }
56
57 public static class UI {
58 public static final boolean Draw = false;
59 public static final boolean ClickEvents = false;
60 public static final boolean TouchEvents = false;
61 public static final boolean MeasureAndLayout = false;
Winson Chung71243902014-03-14 17:52:47 -070062 public static final boolean HwLayers = false;
Winson Chung303e1ff2014-03-07 15:06:19 -080063 }
64
65 public static class TaskStack {
66 public static final boolean SynchronizeViewsWithModel = false;
67 }
68
69 public static class ViewPool {
70 public static final boolean PoolCallbacks = false;
71 }
72 }
73
74 public static class Values {
75 public static class Window {
Winson Chung4d7b0922014-03-13 17:14:17 -070076 // The dark background dim is set behind the empty recents view
Winson Chung303e1ff2014-03-07 15:06:19 -080077 public static final float DarkBackgroundDim = 0.5f;
Winson Chung303e1ff2014-03-07 15:06:19 -080078 }
79
80 public static class RecentsTaskLoader {
81 // XXX: This should be calculated on the first load
82 public static final int PreloadFirstTasksCount = 5;
Winson Chung303e1ff2014-03-07 15:06:19 -080083 }
84
85 public static class TaskStackView {
Winson Chung47c4c692014-03-17 10:17:11 -070086 public static final int TaskStackOverscrollRange = 150;
Winson Chung2f2ca082014-04-03 18:05:29 -070087 public static final int FilterStartDelay = 25;
Winson Chung47c4c692014-03-17 10:17:11 -070088
Winson Chungecd9b302014-04-16 17:07:18 -070089 // The amount to inverse scale the movement if we are overscrolling
90 public static final float TouchOverscrollScaleFactor = 3f;
91
Winson Chung303e1ff2014-03-07 15:06:19 -080092 // The padding will be applied to the smallest dimension, and then applied to all sides
93 public static final float StackPaddingPct = 0.15f;
94 // The overlap height relative to the task height
95 public static final float StackOverlapPct = 0.65f;
96 // The height of the peek space relative to the stack height
97 public static final float StackPeekHeightPct = 0.1f;
98 // The min scale of the last card in the peek area
99 public static final float StackPeekMinScale = 0.9f;
100 // The number of cards we see in the peek space
101 public static final int StackPeekNumCards = 3;
102 }
103
104 public static class TaskView {
Winson Chungb44c24f2014-04-09 15:17:43 -0700105 public static final boolean AnimateFrontTaskBarOnEnterRecents = true;
106 public static final boolean AnimateFrontTaskBarOnLeavingRecents = true;
Winson Chung303e1ff2014-03-07 15:06:19 -0800107 }
108 }
Winson Chung303e1ff2014-03-07 15:06:19 -0800109}