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 GetCredentialEvent(private val id: Int) : UiEventLogger.UiEventEnum { 22 23 @UiEvent(doc = "The The snackbar only page when there's no account but only a remoteEntry " + 24 "visible on the screen.") 25 CREDMAN_GET_CRED_SCREEN_REMOTE_ONLY(1332), 26 27 @UiEvent(doc = "The snackbar when there are only auth entries and all of them are empty.") 28 CREDMAN_GET_CRED_SCREEN_UNLOCKED_AUTH_ENTRIES_ONLY(1333), 29 30 @UiEvent(doc = "The primary credential selection page is displayed on screen.") 31 CREDMAN_GET_CRED_SCREEN_PRIMARY_SELECTION(1334), 32 33 @UiEvent(doc = "The secondary credential selection page, where all sign-in options are " + 34 "listed is displayed on the screen.") 35 CREDMAN_GET_CRED_SCREEN_ALL_SIGN_IN_OPTIONS(1335), 36 37 @UiEvent(doc = "The provider activity is not active nor is any ready for launch on the screen.") 38 CREDMAN_GET_CRED_PROVIDER_ACTIVITY_NOT_APPLICABLE(1336), 39 40 @UiEvent(doc = "The provider activity is ready to be launched on the screen.") 41 CREDMAN_GET_CRED_PROVIDER_ACTIVITY_READY_TO_LAUNCH(1337), 42 43 @UiEvent(doc = "The provider activity is launched and we are waiting for its result. " + 44 "Contents Hidden.") 45 CREDMAN_GET_CRED_PROVIDER_ACTIVITY_PENDING(1338), 46 47 @UiEvent(doc = "The remote credential snackbar screen is visible.") 48 CREDMAN_GET_CRED_REMOTE_CRED_SNACKBAR_SCREEN(1339), 49 50 @UiEvent(doc = "The empty auth snackbar screen is visible.") 51 CREDMAN_GET_CRED_SCREEN_EMPTY_AUTH_SNACKBAR_SCREEN(1340), 52 53 @UiEvent(doc = "The primary selection card is visible on screen.") 54 CREDMAN_GET_CRED_PRIMARY_SELECTION_CARD(1341), 55 56 @UiEvent(doc = "The all sign in option card is visible on screen.") 57 CREDMAN_GET_CRED_ALL_SIGN_IN_OPTION_CARD(1342), 58 59 @UiEvent(doc = "The single tap biometric flow is launched.") 60 CREDMAN_GET_CRED_BIOMETRIC_FLOW_LAUNCHED(1801); 61 getIdnull62 override fun getId(): Int { 63 return this.id 64 } 65 }