1 /*
2  * Copyright (C) 2022 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.permissioncontroller.safetycenter;
18 
19 /** App-global constants */
20 public class SafetyCenterConstants {
21     /**
22      * Key for the argument noting that it is the quick settings safety center dashboard fragment
23      */
24     public static final String QUICK_SETTINGS_SAFETY_CENTER_FRAGMENT =
25             "QUICK_SETTINGS_SAFETY_CENTER_FRAGMENT";
26 
27     public static final String EXPAND_ISSUE_GROUP_QS_FRAGMENT_KEY =
28             "expand_issue_group_qs_fragment_key";
29 
30     public static final String EXTRA_NAVIGATION_SOURCE = "navigation_source_intent_extra";
31 
32     /** Intent extra indicating whether a subpage in Safety Center was opened from the homepage */
33     public static final String EXTRA_OPENED_FROM_HOMEPAGE = "opened_from_homepage_intent_extra";
34 
35     /** Suffix used to identify a source in the Safety Center personal profile */
36     public static final String PERSONAL_PROFILE_SUFFIX = "personal";
37 
38     /** Suffix used to identify a source in the Safety Center work profile */
39     public static final String WORK_PROFILE_SUFFIX = "work";
40 
41     /** Suffix used to identify a source in the Safety Center private profile */
42     public static final String PRIVATE_PROFILE_SUFFIX = "private";
43 
44     /** Intent extra representing the preference key of a search result */
45     public static final String EXTRA_SETTINGS_FRAGMENT_ARGS_KEY = ":settings:fragment_args_key";
46 
47     /** Identifier for the group of privacy safety sources */
48     public static final String PRIVACY_SOURCES_GROUP_ID = "AndroidPrivacySources";
49 }
50