1 /*
2  * Copyright (C) 2020 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.documentsui;
18 
19 import androidx.annotation.IntDef;
20 
21 import java.lang.annotation.Retention;
22 import java.lang.annotation.RetentionPolicy;
23 
24 /**
25  * All constants are based on the enums in
26  * frameworks/base/core/proto/android/stats/devicepolicy/device_policy_enums.proto.
27  */
28 public class DevicePolicyMetricConsts {
29 
30     public static final int ATOM_DEVICE_POLICY_EVENT = 103;
31 
32     @IntDef(flag = true, value = {
33             ATOM_DEVICE_POLICY_EVENT,
34     })
35     @Retention(RetentionPolicy.SOURCE)
36     public @interface Atom {
37     }
38 
39     // Codes representing DocsUI event id.
40     public static final int EVENT_ID_DOCSUI_EMPTY_STATE_NO_PERMISSION = 173;
41     public static final int EVENT_ID_DOCSUI_EMPTY_STATE_QUIET_MODE = 174;
42     public static final int EVENT_ID_DOCSUI_LAUNCH_OTHER_APP = 175;
43     public static final int EVENT_ID_DOCSUI_PICK_RESULT = 176;
44 
45     @IntDef(flag = true, value = {
46             EVENT_ID_DOCSUI_EMPTY_STATE_NO_PERMISSION,
47             EVENT_ID_DOCSUI_EMPTY_STATE_QUIET_MODE,
48             EVENT_ID_DOCSUI_LAUNCH_OTHER_APP,
49             EVENT_ID_DOCSUI_PICK_RESULT,
50     })
51     @Retention(RetentionPolicy.SOURCE)
52     public @interface EventId {
53     }
54 }
55