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