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.systemui.user.utils
18 
19 import com.android.internal.logging.UiEvent
20 import com.android.internal.logging.UiEventLogger
21 
22 enum class MultiUserActionsEvent(val value: Int) : UiEventLogger.UiEventEnum {
23     @UiEvent(doc = "Add User tap from User Switcher.") CREATE_USER_FROM_USER_SWITCHER(1257),
24     @UiEvent(doc = "Add Guest tap from User Switcher.") CREATE_GUEST_FROM_USER_SWITCHER(1258),
25     @UiEvent(doc = "Add Restricted User tap from User Switcher.")
26     CREATE_RESTRICTED_USER_FROM_USER_SWITCHER(1259),
27     @UiEvent(doc = "Switch to   User tap from User Switcher.")
28     SWITCH_TO_USER_FROM_USER_SWITCHER(1266),
29     @UiEvent(doc = "Switch to  Guest User tap from User Switcher.")
30     SWITCH_TO_GUEST_FROM_USER_SWITCHER(1267),
31     @UiEvent(doc = "Switch to Restricted User tap from User Switcher.")
32     SWITCH_TO_RESTRICTED_USER_FROM_USER_SWITCHER(1268),
33     @UiEvent(doc = "Grant admin privileges to user on creation from User Switcher.")
34     GRANT_ADMIN_FROM_USER_SWITCHER_CREATION_DIALOG(1278),
35     @UiEvent(doc = "Not grant admin privileges to user on creation from User Switcher")
36     NOT_GRANT_ADMIN_FROM_USER_SWITCHER_CREATION_DIALOG(1279);
37 
getIdnull38     override fun getId(): Int {
39         return value
40     }
41 }
42