1 /*
2  * Copyright (C) 2023 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.credentialmanager.logging
17 
18 import com.android.internal.logging.UiEvent
19 import com.android.internal.logging.UiEventLogger
20 
21 enum class CreateCredentialEvent(private val id: Int) : UiEventLogger.UiEventEnum {
22 
23     @UiEvent(doc = "The create credential bottomsheet became visible on the screen.")
24     CREDMAN_CREATE_CRED_BOTTOMSHEET(1318),
25 
26     @UiEvent(doc = "The provider activity is launched on the screen.")
27     CREDMAN_CREATE_CRED_PROVIDER_ACTIVITY_READY_TO_LAUNCH(1319),
28 
29     @UiEvent(doc = "The provider activity is launched and we are waiting for its result. " +
30             "Contents Hidden.")
31     CREDMAN_CREATE_CRED_PROVIDER_ACTIVITY_PENDING(1320),
32 
33     @UiEvent(doc = "The provider activity is not active or ready launched on the screen.")
34     CREDMAN_CREATE_CRED_PROVIDER_ACTIVITY_NOT_APPLICABLE(1321),
35 
36     @UiEvent(doc = "The passkey introduction card is visible on screen.")
37     CREDMAN_CREATE_CRED_PASSKEY_INTRO(1322),
38 
39     @UiEvent(doc = "The provider selection card is visible on screen.")
40     CREDMAN_CREATE_CRED_PROVIDER_SELECTION(1323),
41 
42     @UiEvent(doc = "The creation option selection card is visible on screen.")
43     CREDMAN_CREATE_CRED_CREATION_OPTION_SELECTION(1324),
44 
45     @UiEvent(doc = "The more option selection card is visible on screen.")
46     CREDMAN_CREATE_CRED_MORE_OPTIONS_SELECTION(1325),
47 
48     @UiEvent(doc = "The more options row intro card is visible on screen.")
49     CREDMAN_CREATE_CRED_MORE_OPTIONS_ROW_INTRO(1326),
50 
51     @UiEvent(doc = "The external only selection card is visible on screen.")
52     CREDMAN_CREATE_CRED_EXTERNAL_ONLY_SELECTION(1327),
53 
54     @UiEvent(doc = "The more about passkeys intro card is visible on screen.")
55     CREDMAN_CREATE_CRED_MORE_ABOUT_PASSKEYS_INTRO(1328),
56 
57     @UiEvent(doc = "The single tap biometric flow is launched.")
58     CREDMAN_CREATE_CRED_BIOMETRIC_FLOW_LAUNCHED(1800);
59 
getIdnull60     override fun getId(): Int {
61         return this.id
62     }
63 }