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 17 package com.android.systemui.bluetooth.qsdialog 18 19 import com.android.internal.logging.UiEvent 20 import com.android.internal.logging.UiEventLogger 21 22 /** UI Events for the bluetooth tile dialog. */ 23 enum class BluetoothTileDialogUiEvent(val metricId: Int) : UiEventLogger.UiEventEnum { 24 @UiEvent(doc = "The bluetooth tile dialog is shown") BLUETOOTH_TILE_DIALOG_SHOWN(1493), 25 @UiEvent(doc = "The master toggle is clicked") BLUETOOTH_TOGGLE_CLICKED(1494), 26 @UiEvent(doc = "Pair new device is clicked") PAIR_NEW_DEVICE_CLICKED(1495), 27 @UiEvent(doc = "See all is clicked") SEE_ALL_CLICKED(1496), 28 @UiEvent(doc = "Gear icon clicked") DEVICE_GEAR_CLICKED(1497), 29 @UiEvent(doc = "Device clicked") DEVICE_CLICKED(1498), 30 @UiEvent(doc = "Connected device clicked to active") CONNECTED_DEVICE_SET_ACTIVE(1499), 31 @UiEvent(doc = "Saved clicked to connect") SAVED_DEVICE_CONNECT(1500), 32 @UiEvent(doc = "Active device clicked to disconnect") ACTIVE_DEVICE_DISCONNECT(1507), 33 @UiEvent(doc = "Audio sharing device clicked, do nothing") AUDIO_SHARING_DEVICE_CLICKED(1699), 34 @UiEvent(doc = "Connected other device clicked to disconnect") 35 CONNECTED_OTHER_DEVICE_DISCONNECT(1508), 36 @UiEvent(doc = "The auto on toggle is clicked") BLUETOOTH_AUTO_ON_TOGGLE_CLICKED(1617), 37 @UiEvent(doc = "The audio sharing button is clicked") 38 BLUETOOTH_AUDIO_SHARING_BUTTON_CLICKED(1700), 39 @UiEvent(doc = "Currently broadcasting and a LE audio supported device is clicked") 40 LAUNCH_SETTINGS_IN_SHARING_LE_DEVICE_CLICKED(1717), 41 @UiEvent(doc = "Currently broadcasting and a non-LE audio supported device is clicked") 42 LAUNCH_SETTINGS_IN_SHARING_NON_LE_DEVICE_CLICKED(1718), 43 @UiEvent( 44 doc = "Not broadcasting, having one connected, another saved LE audio device is clicked" 45 ) 46 LAUNCH_SETTINGS_NOT_SHARING_SAVED_LE_DEVICE_CLICKED(1719), 47 @UiEvent(doc = "Not broadcasting, one of the two connected LE audio devices is clicked") 48 LAUNCH_SETTINGS_NOT_SHARING_CONNECTED_LE_DEVICE_CLICKED(1720); 49 getIdnull50 override fun getId() = metricId 51 } 52