• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.qs
18 
19 import com.android.internal.logging.UiEvent
20 import com.android.internal.logging.UiEventLogger
21 
22 /** Events of user interactions with modes from the QS Modes dialog. {@see ModesDialogViewModel} */
23 enum class QSModesEvent(private val _id: Int) : UiEventLogger.UiEventEnum {
24     @UiEvent(doc = "User turned manual Do Not Disturb on via modes dialog") QS_MODES_DND_ON(1870),
25     @UiEvent(doc = "User turned manual Do Not Disturb off via modes dialog") QS_MODES_DND_OFF(1871),
26     @UiEvent(doc = "User opened mode settings from the Do Not Disturb tile in the modes dialog")
27     QS_MODES_DND_SETTINGS(1872),
28     @UiEvent(doc = "User turned automatic mode on via modes dialog") QS_MODES_MODE_ON(1873),
29     @UiEvent(doc = "User turned automatic mode off via modes dialog") QS_MODES_MODE_OFF(1874),
30     @UiEvent(doc = "User opened mode settings from a mode tile in the modes dialog")
31     QS_MODES_MODE_SETTINGS(1875),
32     @UiEvent(doc = "User clicked on Settings from the modes dialog") QS_MODES_SETTINGS(1876),
33     @UiEvent(doc = "User clicked on Do Not Disturb tile, opening the time selection dialog")
34     QS_MODES_DURATION_DIALOG(1879);
35 
getIdnull36     override fun getId() = _id
37 }
38