1 /*
2  * Copyright (C) 2024 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.bedstead.testapisreflection
18 
19 /**
20  * Declare any constants marked as @TestApi here.
21  *
22  * This class exists so these constants are accessible in environments where TestApis are not
23  * accessible for e.g. g3.
24  */
25 object TestApisConstants {
26     /** See [android.app.ActivityManager#STOP_USER_ON_SWITCH_DEFAULT] */
27     const val STOP_USER_ON_SWITCH_DEFAULT = -1
28 
29     /** See [android.app.ActivityManager#STOP_USER_ON_SWITCH_TRUE] */
30     const val STOP_USER_ON_SWITCH_TRUE = 1
31 
32     /** See [android.app.ActivityManager#STOP_USER_ON_SWITCH_FALSE] */
33     const val STOP_USER_ON_SWITCH_FALSE = 0
34 
35     /** See [android.credentials.CredentialManager#PROVIDER_FILTER_ALL_PROVIDERS] */
36     const val PROVIDER_FILTER_ALL_PROVIDERS = 0
37 
38     /** See [android.credentials.CredentialManager#PROVIDER_FILTER_ALL_PROVIDERS] */
39     const val PROVIDER_FILTER_SYSTEM_PROVIDERS_ONLY = 1
40 
41     /** See [android.credentials.CredentialManager#PROVIDER_FILTER_ALL_PROVIDERS] */
42     const val PROVIDER_FILTER_USER_PROVIDERS_ONLY = 2
43 
44     /** See [android.content.Context#PROVIDER_FILTER_ALL_PROVIDERS] */
45     const val RECEIVER_EXPORTED_UNAUDITED = 0x2
46 
47     /** See [com.android.compatibility.common.util.enterprise.DeviceAdminReceiverUtils.ACTION_DISABLE_SELF ] */
48     const val ACTION_DISABLE_SELF = "disable_self"
49 }