Constants.java revision 814086db674d8eb298541b7e601e29c5c68e2074
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 filtering of tasks according to their grouping 29 public static final boolean EnableTaskFiltering = false; 30 // Enables clipping of tasks against each other 31 public static final boolean EnableTaskStackClipping = false; 32 // Enables the use of theme colors as the task bar background 33 public static final boolean EnableTaskBarThemeColors = true; 34 // Enables the info pane on long-press 35 public static final boolean EnableInfoPane = true; 36 // Enables the search bar layout 37 public static final boolean EnableSearchLayout = true; 38 // Enables the dynamic shadows behind each task 39 public static final boolean EnableShadows = false; 40 // This disables the bitmap and icon caches 41 public static final boolean DisableBackgroundCache = false; 42 // For debugging, this enables us to create mock recents tasks 43 public static final boolean EnableSystemServicesProxy = false; 44 // For debugging, this defines the number of mock recents packages to create 45 public static final int SystemServicesProxyMockPackageCount = 3; 46 // For debugging, this defines the number of mock recents tasks to create 47 public static final int SystemServicesProxyMockTaskCount = 75; 48 } 49 } 50 51 public static class Log { 52 public static class App { 53 public static final String TimeRecentsStartupKey = "startup"; 54 public static final String TimeRecentsLaunchKey = "launchTask"; 55 public static final boolean TimeRecentsStartup = false; 56 public static final boolean TimeRecentsLaunchTask = false; 57 58 public static final boolean RecentsComponent = false; 59 public static final boolean TaskDataLoader = false; 60 public static final boolean SystemUIHandshake = false; 61 public static final boolean TimeSystemCalls = false; 62 public static final boolean Memory = false; 63 public static final boolean Search = false; 64 } 65 66 public static class UI { 67 public static final boolean Draw = false; 68 public static final boolean ClickEvents = false; 69 public static final boolean TouchEvents = false; 70 public static final boolean MeasureAndLayout = false; 71 public static final boolean HwLayers = false; 72 } 73 74 public static class TaskStack { 75 public static final boolean SynchronizeViewsWithModel = false; 76 } 77 78 public static class ViewPool { 79 public static final boolean PoolCallbacks = false; 80 } 81 } 82 83 /** XXX: We are going to move almost all of these into a resource once they are nailed down. */ 84 public static class Values { 85 public static class App { 86 public static int AppWidgetHostId = 1024; 87 public static String Key_SearchAppWidgetId = "searchAppWidgetId"; 88 } 89 public static class Window { 90 // The dark background dim is set behind the empty recents view 91 public static final float DarkBackgroundDim = 0.5f; 92 } 93 94 public static class RecentsTaskLoader { 95 // XXX: This should be calculated on the first load 96 public static final int PreloadFirstTasksCount = 5; 97 } 98 99 public static class TaskStackView { 100 public static final int TaskStackOverscrollRange = 150; 101 public static final int FilterStartDelay = 25; 102 103 // The padding will be applied to the smallest dimension, and then applied to all sides 104 public static final float StackPaddingPct = 0.1f; 105 // The overlap height relative to the task height 106 public static final float StackOverlapPct = 0.65f; 107 // The height of the peek space relative to the stack height 108 public static final float StackPeekHeightPct = 0.1f; 109 // The min scale of the last card in the peek area 110 public static final float StackPeekMinScale = 0.9f; 111 // The number of cards we see in the peek space 112 public static final int StackPeekNumCards = 3; 113 } 114 } 115}