• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 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.statusbar.chips.uievents
18 
19 import com.android.internal.logging.UiEvent
20 import com.android.internal.logging.UiEventLogger
21 
22 /** All UI Events related to the status bar chips. */
23 enum class StatusBarChipUiEvent(private val _id: Int) : UiEventLogger.UiEventEnum {
24     // New chip events, with chip type embedded in the event
25     @UiEvent(doc = "New status bar chip: Call") STATUS_BAR_NEW_CHIP_CALL(2211),
26     @UiEvent(doc = "New status bar chip: Screen record") STATUS_BAR_NEW_CHIP_SCREEN_RECORD(2212),
27     @UiEvent(doc = "New status bar chip: Share screen/audio to another app")
28     STATUS_BAR_NEW_CHIP_SHARE_TO_APP(2213),
29     @UiEvent(doc = "New status bar chip: Cast screen/audio to different device")
30     STATUS_BAR_NEW_CHIP_CAST_TO_OTHER_DEVICE(2214),
31     @UiEvent(doc = "New status bar chip: Promoted notification")
32     STATUS_BAR_NEW_CHIP_NOTIFICATION(2215),
33 
34     // Other chip events, which don't need the chip type embedded in the event because an instanceId
35     // should also be provided with the new event and all subsequent events
36     @UiEvent(doc = "A status bar chip was removed") STATUS_BAR_CHIP_REMOVED(2216),
37     @UiEvent(doc = "A status bar chip was tapped to show more information")
38     STATUS_BAR_CHIP_TAP_TO_SHOW(2217),
39     @UiEvent(
40         doc = "A status bar chip was re-tapped to hide the information that was previously shown"
41     )
42     STATUS_BAR_CHIP_TAP_TO_HIDE(2218);
43 
getIdnull44     override fun getId() = _id
45 }
46