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