Constants.java revision 012ef36a6c5e9745d112c734aed916cab052558c
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
17package com.android.systemui.recents;
18
19/**
20 * Constants
21 */
22public 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 {
28            // Enables the screenshot app->Recents transition
29            public static final boolean EnableScreenshotAppTransition = false;
30            // Enables the filtering of tasks according to their grouping
31            public static final boolean EnableTaskFiltering = false;
32            // Enables clipping of tasks against each other
33            public static final boolean EnableTaskStackClipping = false;
34            // Enables tapping on the TaskBar to launch the task
35            public static final boolean EnableTaskBarTouchEvents = true;
36            // Enables app-info pane on long-pressing the icon
37            public static final boolean EnableDevAppInfoOnLongPress = true;
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 = true;
42            // This disables the bitmap and icon caches
43            public static final boolean DisableBackgroundCache = false;
44            // Enables the simulated task affiliations
45            public static final boolean EnableSimulatedTaskGroups = false;
46            // Defines the number of mock task affiliations per group
47            public static final int TaskAffiliationsGroupCount = 12;
48            // Enables us to create mock recents tasks
49            public static final boolean EnableSystemServicesProxy = false;
50            // Defines the number of mock recents packages to create
51            public static final int SystemServicesProxyMockPackageCount = 3;
52            // Defines the number of mock recents tasks to create
53            public static final int SystemServicesProxyMockTaskCount = 100;
54        }
55    }
56
57    public static class Values {
58        public static class App {
59            public static int AppWidgetHostId = 1024;
60            public static String Key_SearchAppWidgetId = "searchAppWidgetId";
61            public static String Key_DebugModeEnabled = "debugModeEnabled";
62            public static String DebugModeVersion = "A";
63        }
64
65        public static class RecentsTaskLoader {
66            // XXX: This should be calculated on the first load
67            public static final int PreloadFirstTasksCount = 5;
68        }
69
70        public static class TaskStackView {
71            public static final int TaskStackOverscrollRange = 150;
72            public static final int FilterStartDelay = 25;
73        }
74    }
75}
76