1303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung/*
2303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * Copyright (C) 2014 The Android Open Source Project
3303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung *
4303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * Licensed under the Apache License, Version 2.0 (the "License");
5303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * you may not use this file except in compliance with the License.
6303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * You may obtain a copy of the License at
7303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung *
8303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung *      http://www.apache.org/licenses/LICENSE-2.0
9303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung *
10303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * Unless required by applicable law or agreed to in writing, software
11303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * distributed under the License is distributed on an "AS IS" BASIS,
12303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * See the License for the specific language governing permissions and
14303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * limitations under the License.
15303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung */
16303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung
17303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chungpackage com.android.systemui.recents;
18303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung
19303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung/**
20303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung * Constants
21303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung */
22303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chungpublic class Constants {
235c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung
245c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung    public static class Metrics {
255c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung        // DO NOT MODIFY THE ORDER OF THESE METRICS
265c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung        public static final int DismissSourceKeyboard = 0;
275c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung        public static final int DismissSourceSwipeGesture = 1;
285c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung        public static final int DismissSourceHeaderButton = 2;
295c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung    }
305c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777Winson Chung
31303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung    public static class DebugFlags {
32303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung        // Enable this with any other debug flag to see more info
33303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung        public static final boolean Verbose = false;
34303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung
35303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung        public static class App {
36a4ccb86ddc8f9f486aee25fb836f4aff97bf7679Winson Chung            // Enables debug drawing for the transition thumbnail
37a4ccb86ddc8f9f486aee25fb836f4aff97bf7679Winson Chung            public static final boolean EnableTransitionThumbnailDebugMode = false;
38814086db674d8eb298541b7e601e29c5c68e2074Winson Chung            // Enables the filtering of tasks according to their grouping
39ffa2ec664479bff6b4b61d4c349d9db2cb37ca16Winson Chung            public static final boolean EnableTaskFiltering = false;
406ac8bd6198f67b64aea2258bdb5f8ed371b5bec1Winson Chung            // Enables dismiss-all
416ac8bd6198f67b64aea2258bdb5f8ed371b5bec1Winson Chung            public static final boolean EnableDismissAll = false;
429cb5c4e3854aa7f2ddab707920b688c3108cbc85Winson Chung            // Enables debug mode
439cb5c4e3854aa7f2ddab707920b688c3108cbc85Winson Chung            public static final boolean EnableDebugMode = false;
44814086db674d8eb298541b7e601e29c5c68e2074Winson Chung            // Enables the search bar layout
45814086db674d8eb298541b7e601e29c5c68e2074Winson Chung            public static final boolean EnableSearchLayout = true;
4660a729c8e93461c9446d0c8cd519b40dec01e8d8Winson Chung            // Enables the thumbnail alpha on the front-most task
4760a729c8e93461c9446d0c8cd519b40dec01e8d8Winson Chung            public static final boolean EnableThumbnailAlphaOnFrontmost = false;
48d16c565a607de754379fe699a4def21bd0e3de2fWinson Chung            // Enables all system stacks to show up in the same recents stack
49d16c565a607de754379fe699a4def21bd0e3de2fWinson Chung            public static final boolean EnableMultiStackToSingleStack = true;
509f9679d91ee5f067cd5dcbf4d780a1f5b522e4baWinson Chung            // This disables the bitmap and icon caches
5104dfe0d26b944324ee920001f40d74cff47281d6Winson Chung            public static final boolean DisableBackgroundCache = false;
52012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            // Enables the simulated task affiliations
53012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            public static final boolean EnableSimulatedTaskGroups = false;
54012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            // Defines the number of mock task affiliations per group
55012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            public static final int TaskAffiliationsGroupCount = 12;
56012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            // Enables us to create mock recents tasks
57a10370fc2eb8eb95631592160c5f6281b9d75722Winson Chung            public static final boolean EnableSystemServicesProxy = false;
58012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            // Defines the number of mock recents packages to create
592f2ca08baa072376b3dfd60506625496aa05903fWinson Chung            public static final int SystemServicesProxyMockPackageCount = 3;
60012ef36a6c5e9745d112c734aed916cab052558cWinson Chung            // Defines the number of mock recents tasks to create
61c9567c07dd4953f5c5e3821d30525e50ed8b9b29Winson Chung            public static final int SystemServicesProxyMockTaskCount = 100;
62814086db674d8eb298541b7e601e29c5c68e2074Winson Chung        }
63814086db674d8eb298541b7e601e29c5c68e2074Winson Chung    }
644d7b092a866d2fce3e11b5a12cda2b87a83af52dWinson Chung
65303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung    public static class Values {
66f7bca430d9356c26d6df222d2c90bc7668262f6bWinson Chung        public static class App {
67f7bca430d9356c26d6df222d2c90bc7668262f6bWinson Chung            public static int AppWidgetHostId = 1024;
688eaeb7dc93ed71b768a2ea8d45021cca010e8263Winson Chung            public static String DebugModeVersion = "A";
69f7bca430d9356c26d6df222d2c90bc7668262f6bWinson Chung        }
70303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung
71303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung        public static class TaskStackView {
722cf8b221fca18dbee3703388ae7970491c86ec7fWinson Chung            public static final int TaskStackMinOverscrollRange = 32;
732cf8b221fca18dbee3703388ae7970491c86ec7fWinson Chung            public static final int TaskStackMaxOverscrollRange = 128;
742f2ca08baa072376b3dfd60506625496aa05903fWinson Chung            public static final int FilterStartDelay = 25;
75303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung        }
76303e1ff1fec8b240b587bb18b981247a99833aa8Winson Chung    }
77069707ed6fd1399ca90c57741960884773d3cc69Winson Chung}
78