Constants.java revision d7b2cb12ac90956843413c212769639044a0b6f2
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 = true; 32 // Enables clipping of tasks against each other 33 public static final boolean EnableTaskStackClipping = true; 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 // For debugging, this enables us to create mock recents tasks 45 public static final boolean EnableSystemServicesProxy = false; 46 // For debugging, this defines the number of mock recents packages to create 47 public static final int SystemServicesProxyMockPackageCount = 3; 48 // For debugging, this defines the number of mock recents tasks to create 49 public static final int SystemServicesProxyMockTaskCount = 100; 50 } 51 } 52 53 public static class Log { 54 public static class App { 55 public static final String TimeRecentsStartupKey = "startup"; 56 public static final String TimeRecentsLaunchKey = "launchTask"; 57 public static final String TimeRecentsScreenshotTransitionKey = "screenshot"; 58 public static final boolean TimeRecentsStartup = true; 59 public static final boolean TimeRecentsLaunchTask = true; 60 public static final boolean TimeRecentsScreenshotTransition = true; 61 62 63 public static final boolean RecentsComponent = false; 64 public static final boolean TaskDataLoader = false; 65 public static final boolean SystemUIHandshake = false; 66 public static final boolean TimeSystemCalls = false; 67 public static final boolean Memory = false; 68 public static final boolean Search = false; 69 } 70 71 public static class UI { 72 public static final boolean Draw = false; 73 public static final boolean ClickEvents = false; 74 public static final boolean TouchEvents = false; 75 public static final boolean MeasureAndLayout = false; 76 public static final boolean HwLayers = false; 77 public static final boolean Focus = false; 78 } 79 80 public static class TaskStack { 81 public static final boolean SynchronizeViewsWithModel = false; 82 } 83 84 public static class ViewPool { 85 public static final boolean PoolCallbacks = false; 86 } 87 } 88 89 /** XXX: We are going to move almost all of these into a resource once they are nailed down. */ 90 public static class Values { 91 public static class App { 92 public static int AppWidgetHostId = 1024; 93 public static String Key_SearchAppWidgetId = "searchAppWidgetId"; 94 public static String Key_DebugModeEnabled = "debugModeEnabled"; 95 public static String DebugModeVersion = "A"; 96 } 97 98 public static class RecentsTaskLoader { 99 // XXX: This should be calculated on the first load 100 public static final int PreloadFirstTasksCount = 5; 101 } 102 103 public static class TaskStackView { 104 public static final int TaskStackOverscrollRange = 150; 105 public static final int FilterStartDelay = 25; 106 } 107 } 108} 109