• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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 {
28             // Enables the screenshot app->Recents transition
29             public static final boolean EnableScreenshotAppTransition = false;
30             // Enables debug drawing for the transition thumbnail
31             public static final boolean EnableTransitionThumbnailDebugMode = false;
32             // Enables the filtering of tasks according to their grouping
33             public static final boolean EnableTaskFiltering = false;
34             // Enables clipping of tasks against each other
35             public static final boolean EnableTaskStackClipping = true;
36             // Enables tapping on the TaskBar to launch the task
37             public static final boolean EnableTaskBarTouchEvents = true;
38             // Enables app-info pane on long-pressing the icon
39             public static final boolean EnableDevAppInfoOnLongPress = true;
40             // Enables debug mode
41             public static final boolean EnableDebugMode = false;
42             // Enables the search bar layout
43             public static final boolean EnableSearchLayout = true;
44             // Enables the thumbnail alpha on the front-most task
45             public static final boolean EnableThumbnailAlphaOnFrontmost = false;
46             // This disables the bitmap and icon caches
47             public static final boolean DisableBackgroundCache = false;
48             // Enables the simulated task affiliations
49             public static final boolean EnableSimulatedTaskGroups = false;
50             // Defines the number of mock task affiliations per group
51             public static final int TaskAffiliationsGroupCount = 12;
52             // Enables us to create mock recents tasks
53             public static final boolean EnableSystemServicesProxy = false;
54             // Defines the number of mock recents packages to create
55             public static final int SystemServicesProxyMockPackageCount = 3;
56             // Defines the number of mock recents tasks to create
57             public static final int SystemServicesProxyMockTaskCount = 100;
58         }
59     }
60 
61     public static class Values {
62         public static class App {
63             public static int AppWidgetHostId = 1024;
64             public static String Key_SearchAppWidgetId = "searchAppWidgetId";
65             public static String Key_DebugModeEnabled = "debugModeEnabled";
66             public static String DebugModeVersion = "A";
67         }
68 
69         public static class RecentsTaskLoader {
70             // XXX: This should be calculated on the first load
71             public static final int PreloadFirstTasksCount = 6;
72         }
73 
74         public static class TaskStackView {
75             public static final int TaskStackOverscrollRange = 150;
76             public static final int FilterStartDelay = 25;
77         }
78     }
79 }
80