Home | History | Annotate | Download | only in recents
      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 
     17 package com.android.systemui.recents;
     18 
     19 /**
     20  * Constants
     21  */
     22 public class Constants {
     23 
     24     public static class Metrics {
     25         // DO NOT MODIFY THE ORDER OF THESE METRICS
     26         public static final int DismissSourceKeyboard = 0;
     27         public static final int DismissSourceSwipeGesture = 1;
     28         public static final int DismissSourceHeaderButton = 2;
     29     }
     30 
     31     public static class DebugFlags {
     32         // Enable this with any other debug flag to see more info
     33         public static final boolean Verbose = false;
     34 
     35         public static class App {
     36             // Enables debug drawing for the transition thumbnail
     37             public static final boolean EnableTransitionThumbnailDebugMode = false;
     38             // Enables the filtering of tasks according to their grouping
     39             public static final boolean EnableTaskFiltering = false;
     40             // Enables dismiss-all
     41             public static final boolean EnableDismissAll = false;
     42             // Enables debug mode
     43             public static final boolean EnableDebugMode = false;
     44             // Enables the search bar layout
     45             public static final boolean EnableSearchLayout = true;
     46             // Enables the thumbnail alpha on the front-most task
     47             public static final boolean EnableThumbnailAlphaOnFrontmost = false;
     48             // Enables all system stacks to show up in the same recents stack
     49             public static final boolean EnableMultiStackToSingleStack = true;
     50             // This disables the bitmap and icon caches
     51             public static final boolean DisableBackgroundCache = false;
     52             // Enables the simulated task affiliations
     53             public static final boolean EnableSimulatedTaskGroups = false;
     54             // Defines the number of mock task affiliations per group
     55             public static final int TaskAffiliationsGroupCount = 12;
     56             // Enables us to create mock recents tasks
     57             public static final boolean EnableSystemServicesProxy = false;
     58             // Defines the number of mock recents packages to create
     59             public static final int SystemServicesProxyMockPackageCount = 3;
     60             // Defines the number of mock recents tasks to create
     61             public static final int SystemServicesProxyMockTaskCount = 100;
     62         }
     63     }
     64 
     65     public static class Values {
     66         public static class App {
     67             public static int AppWidgetHostId = 1024;
     68             public static String DebugModeVersion = "A";
     69         }
     70 
     71         public static class TaskStackView {
     72             public static final int TaskStackMinOverscrollRange = 32;
     73             public static final int TaskStackMaxOverscrollRange = 128;
     74             public static final int FilterStartDelay = 25;
     75         }
     76     }
     77 }
     78