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.systemui.communal.shared.log 18 19 import com.android.internal.logging.UiEvent 20 import com.android.internal.logging.UiEventLogger.UiEventEnum 21 22 /** UI events for the Communal Hub. */ 23 enum class CommunalUiEvent(private val id: Int) : UiEventEnum { 24 @UiEvent(doc = "Communal Hub is fully shown") COMMUNAL_HUB_SHOWN(1566), 25 @UiEvent(doc = "Communal Hub is fully gone") COMMUNAL_HUB_GONE(1577), 26 @UiEvent(doc = "Communal Hub times out") COMMUNAL_HUB_TIMEOUT(1578), 27 @UiEvent(doc = "The visible content in the Communal Hub is fully loaded and rendered") 28 COMMUNAL_HUB_LOADED(1579), 29 @UiEvent(doc = "User starts the swipe gesture to enter the Communal Hub") 30 COMMUNAL_HUB_SWIPE_TO_ENTER_START(1580), 31 @UiEvent(doc = "User finishes the swipe gesture to enter the Communal Hub") 32 COMMUNAL_HUB_SWIPE_TO_ENTER_FINISH(1581), 33 @UiEvent(doc = "User cancels the swipe gesture to enter the Communal Hub") 34 COMMUNAL_HUB_SWIPE_TO_ENTER_CANCEL(1582), 35 @UiEvent(doc = "User starts the swipe gesture to exit the Communal Hub") 36 COMMUNAL_HUB_SWIPE_TO_EXIT_START(1583), 37 @UiEvent(doc = "User finishes the swipe gesture to exit the Communal Hub") 38 COMMUNAL_HUB_SWIPE_TO_EXIT_FINISH(1584), 39 @UiEvent(doc = "User cancels the swipe gesture to exit the Communal Hub") 40 COMMUNAL_HUB_SWIPE_TO_EXIT_CANCEL(1585), 41 @UiEvent(doc = "User starts the drag gesture to reorder a widget") 42 COMMUNAL_HUB_REORDER_WIDGET_START(1586), 43 @UiEvent(doc = "User finishes the drag gesture to reorder a widget") 44 COMMUNAL_HUB_REORDER_WIDGET_FINISH(1587), 45 @UiEvent(doc = "User cancels the drag gesture to reorder a widget") 46 COMMUNAL_HUB_REORDER_WIDGET_CANCEL(1588), 47 @UiEvent(doc = "Edit mode for the Communal Hub is shown") COMMUNAL_HUB_EDIT_MODE_SHOWN(1569), 48 @UiEvent(doc = "Edit mode for the Communal Hub is gone") COMMUNAL_HUB_EDIT_MODE_GONE(1589), 49 @UiEvent(doc = "Widget picker for the Communal Hub is shown") 50 COMMUNAL_HUB_WIDGET_PICKER_SHOWN(1590), 51 @UiEvent(doc = "Widget picker for the Communal Hub is gone") 52 COMMUNAL_HUB_WIDGET_PICKER_GONE(1591), 53 @UiEvent(doc = "User performs a swipe up gesture from bottom to enter bouncer") 54 COMMUNAL_HUB_SWIPE_UP_TO_BOUNCER(1573), 55 @UiEvent(doc = "User performs a swipe down gesture from top to enter shade") 56 COMMUNAL_HUB_SWIPE_DOWN_TO_SHADE(1574); 57 getIdnull58 override fun getId(): Int { 59 return id 60 } 61 } 62