Constants.java revision cd23c849afefe58b213d5abb1c581f15d3ad543a
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 = true; 32 // Enables the use of theme colors as the task bar background 33 public static final boolean EnableTaskBarThemeColors = true; 34 // Enables app-info pane on long-pressing the icon 35 public static final boolean EnableDevAppInfoOnLongPress = 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 = true; 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 public static final boolean Focus = false; 73 } 74 75 public static class TaskStack { 76 public static final boolean SynchronizeViewsWithModel = false; 77 } 78 79 public static class ViewPool { 80 public static final boolean PoolCallbacks = false; 81 } 82 } 83 84 /** XXX: We are going to move almost all of these into a resource once they are nailed down. */ 85 public static class Values { 86 public static class App { 87 public static int AppWidgetHostId = 1024; 88 public static String Key_SearchAppWidgetId = "searchAppWidgetId"; 89 } 90 public static class Window { 91 // The dark background dim is set behind the empty recents view 92 public static final float DarkBackgroundDim = 0.5f; 93 } 94 95 public static class RecentsTaskLoader { 96 // XXX: This should be calculated on the first load 97 public static final int PreloadFirstTasksCount = 5; 98 } 99 100 public static class TaskStackView { 101 public static final int TaskStackOverscrollRange = 150; 102 public static final int FilterStartDelay = 25; 103 104 // The overlap height relative to the task height 105 public static final float StackOverlapPct = 0.65f; 106 // The height of the peek space relative to the stack height 107 public static final float StackPeekHeightPct = 0.1f; 108 // The min scale of the last card in the peek area 109 public static final float StackPeekMinScale = 0.9f; 110 // The number of cards we see in the peek space 111 public static final int StackPeekNumCards = 3; 112 } 113 } 114} 115