• 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.accessibility.hearingaid
18 
19 import com.android.internal.logging.UiEvent
20 import com.android.internal.logging.UiEventLogger
21 
22 enum class HearingDevicesUiEvent(private val id: Int) : UiEventLogger.UiEventEnum {
23 
24     @UiEvent(doc = "Hearing devices dialog is shown") HEARING_DEVICES_DIALOG_SHOW(1848),
25     @UiEvent(doc = "Pair new device") HEARING_DEVICES_PAIR(1849),
26     @UiEvent(doc = "Connect to the device") HEARING_DEVICES_CONNECT(1850),
27     @UiEvent(doc = "Disconnect from the device") HEARING_DEVICES_DISCONNECT(1851),
28     @UiEvent(doc = "Set the device as active device") HEARING_DEVICES_SET_ACTIVE(1852),
29     @UiEvent(doc = "Click on the device gear to enter device detail page")
30     HEARING_DEVICES_GEAR_CLICK(1853),
31     @UiEvent(doc = "Select a preset from preset spinner") HEARING_DEVICES_PRESET_SELECT(1854),
32     @UiEvent(doc = "Click on related tool") HEARING_DEVICES_RELATED_TOOL_CLICK(1856),
33     @UiEvent(doc = "Change the ambient volume with unified control")
34     HEARING_DEVICES_AMBIENT_CHANGE_UNIFIED(2149),
35     @UiEvent(doc = "Change the ambient volume with separated control")
36     HEARING_DEVICES_AMBIENT_CHANGE_SEPARATED(2150),
37     @UiEvent(doc = "Mute the ambient volume") HEARING_DEVICES_AMBIENT_MUTE(2151),
38     @UiEvent(doc = "Unmute the ambient volume") HEARING_DEVICES_AMBIENT_UNMUTE(2152),
39     @UiEvent(doc = "Expand the ambient volume controls")
40     HEARING_DEVICES_AMBIENT_EXPAND_CONTROLS(2153),
41     @UiEvent(doc = "Collapse the ambient volume controls")
42     HEARING_DEVICES_AMBIENT_COLLAPSE_CONTROLS(2154),
43     @UiEvent(doc = "Select a input routing option from input routing spinner")
44     HEARING_DEVICES_INPUT_ROUTING_SELECT(2155),
45     @UiEvent(doc = "Click on the device settings to enter hearing devices page")
46     HEARING_DEVICES_SETTINGS_CLICK(2172);
47 
getIdnull48     override fun getId(): Int = this.id
49 }
50