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