• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 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.assist
18 
19 import com.android.internal.logging.UiEvent
20 import com.android.internal.logging.UiEventLogger
21 
22 enum class AssistantSessionEvent(private val id: Int) : UiEventLogger.UiEventEnum {
23     @UiEvent(doc = "Unknown assistant session event")
24     ASSISTANT_SESSION_UNKNOWN(0),
25 
26     @UiEvent(doc = "Assistant session dismissed due to timeout")
27     ASSISTANT_SESSION_TIMEOUT_DISMISS(524),
28 
29     @UiEvent(doc = "User began a gesture for invoking the Assistant")
30     ASSISTANT_SESSION_INVOCATION_START(525),
31 
32     @UiEvent(doc =
33         "User stopped a gesture for invoking the Assistant before the gesture was completed")
34     ASSISTANT_SESSION_INVOCATION_CANCELLED(526),
35 
36     @UiEvent(doc = "User manually dismissed the Assistant session")
37     ASSISTANT_SESSION_USER_DISMISS(527),
38 
39     @UiEvent(doc = "The Assistant session has changed modes")
40     ASSISTANT_SESSION_UPDATE(528),
41 
42     @UiEvent(doc = "The Assistant session completed")
43     ASSISTANT_SESSION_CLOSE(529);
44 
getIdnull45     override fun getId(): Int {
46         return id
47     }
48 }