• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2019 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 package com.android.settings.panel;
17 
18 /**
19  * Simple contract class to track keys in Panel logging.
20  *
21  * <p>
22  *    Constants should only be removed if underlying panel, or use case is removed.
23  * </p>
24  */
25 public class PanelLoggingContract {
26 
27     /**
28      * Keys tracking different ways users exit Panels.
29      */
30     interface PanelClosedKeys {
31         /**
32          * The user clicked the See More button linking deeper into Settings.
33          */
34         String KEY_SEE_MORE = "see_more";
35 
36         /**
37          * The user clicked the Done button, closing the Panel.
38          */
39         String KEY_DONE = "done";
40 
41         /**
42          * The user closed the panel by other ways, for example: clicked outside of dialog, tapping
43          * on back button, etc.
44          */
45         String KEY_OTHERS = "others";
46     }
47 }
48