xref: /aosp_15_r20/external/perfetto/protos/perfetto/trace/android/view/enums.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1/*
2 * Copyright (C) 2018 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
17syntax = "proto2";
18
19package perfetto.protos;
20
21// Screen states, primarily used by android/view/Display.java.
22enum DisplayStateEnum {
23  // The display state is unknown.
24  DISPLAY_STATE_UNKNOWN = 0;
25  // The display state is off.
26  DISPLAY_STATE_OFF = 1;
27  // The display state is on.
28  DISPLAY_STATE_ON = 2;
29  // The display is dozing in a low power state; it is still on but is
30  // optimized for showing system-provided content while the device is
31  // non-interactive.
32  DISPLAY_STATE_DOZE = 3;
33  // The display is dozing in a suspended low power state; it is still on
34  // but is optimized for showing static system-provided content while the
35  // device is non-interactive.
36  DISPLAY_STATE_DOZE_SUSPEND = 4;
37  // The display is on and optimized for VR mode.
38  DISPLAY_STATE_VR = 5;
39  // The display is in a suspended full power state; it is still on but the
40  // CPU is not updating it.
41  DISPLAY_STATE_ON_SUSPEND = 6;
42}
43
44// Screen state reasons.
45enum DisplayStateReason {
46  // The display state reason is unknown.
47  DISPLAY_STATE_REASON_UNKNOWN = 0;
48  // The display state reason is the default policy.
49  DISPLAY_STATE_REASON_DEFAULT_POLICY = 1;
50  // The display state is caused by a draw wake lock.
51  DISPLAY_STATE_REASON_DRAW_WAKE_LOCK = 2;
52  // The display state is caused by display offloading.
53  DISPLAY_STATE_REASON_OFFLOAD = 3;
54  // The display state is caused by a tilt.
55  DISPLAY_STATE_REASON_TILT = 4;
56  // The display state is caused by the dream manager.
57  DISPLAY_STATE_REASON_DREAM_MANAGER = 5;
58  // The display state is caused by an input key event.
59  DISPLAY_STATE_REASON_KEY = 6;
60  // The display state is caused by an input motion event.
61  DISPLAY_STATE_REASON_MOTION = 7;
62}
63
64// Constants found in android.view.WindowManager.
65enum TransitionTypeEnum {
66  TRANSIT_NONE = 0;
67  TRANSIT_UNSET = -1;
68  TRANSIT_ACTIVITY_OPEN = 6;
69  TRANSIT_ACTIVITY_CLOSE = 7;
70  TRANSIT_TASK_OPEN = 8;
71  TRANSIT_TASK_CLOSE = 9;
72  TRANSIT_TASK_TO_FRONT = 10;
73  TRANSIT_TASK_TO_BACK = 11;
74  TRANSIT_WALLPAPER_CLOSE = 12;
75  TRANSIT_WALLPAPER_OPEN = 13;
76  TRANSIT_WALLPAPER_INTRA_OPEN = 14;
77  TRANSIT_WALLPAPER_INTRA_CLOSE = 15;
78  TRANSIT_TASK_OPEN_BEHIND = 16;
79  TRANSIT_TASK_IN_PLACE = 17;
80  TRANSIT_ACTIVITY_RELAUNCH = 18;
81  TRANSIT_DOCK_TASK_FROM_RECENTS = 19 [deprecated = true];
82  TRANSIT_KEYGUARD_GOING_AWAY = 20;
83  TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER = 21;
84  TRANSIT_KEYGUARD_OCCLUDE = 22;
85  TRANSIT_KEYGUARD_UNOCCLUDE = 23;
86  TRANSIT_TRANSLUCENT_ACTIVITY_OPEN = 24;
87  TRANSIT_TRANSLUCENT_ACTIVITY_CLOSE = 25;
88  TRANSIT_CRASHING_ACTIVITY_CLOSE = 26;
89}
90