blob: 0172e7899a185ae96adaef9bd757e5c5848f5db0 [file] [log] [blame]
Bookatz1a1b0462018-01-12 11:47:03 -08001/*
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}
Kweku Adamsffc19c02018-07-31 17:00:17 -070045
46// Constants found in android.view.WindowManager.
47enum TransitionTypeEnum {
48 TRANSIT_NONE = 0;
49 TRANSIT_UNSET = -1;
50 TRANSIT_ACTIVITY_OPEN = 6;
51 TRANSIT_ACTIVITY_CLOSE = 7;
52 TRANSIT_TASK_OPEN = 8;
53 TRANSIT_TASK_CLOSE = 9;
54 TRANSIT_TASK_TO_FRONT = 10;
55 TRANSIT_TASK_TO_BACK = 11;
56 TRANSIT_WALLPAPER_CLOSE = 12;
57 TRANSIT_WALLPAPER_OPEN = 13;
58 TRANSIT_WALLPAPER_INTRA_OPEN = 14;
59 TRANSIT_WALLPAPER_INTRA_CLOSE = 15;
60 TRANSIT_TASK_OPEN_BEHIND = 16;
61 TRANSIT_TASK_IN_PLACE = 17;
62 TRANSIT_ACTIVITY_RELAUNCH = 18;
63 TRANSIT_DOCK_TASK_FROM_RECENTS = 19;
64 TRANSIT_KEYGUARD_GOING_AWAY = 20;
65 TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER = 21;
66 TRANSIT_KEYGUARD_OCCLUDE = 22;
67 TRANSIT_KEYGUARD_UNOCCLUDE = 23;
68 TRANSIT_TRANSLUCENT_ACTIVITY_OPEN = 24;
69 TRANSIT_TRANSLUCENT_ACTIVITY_CLOSE = 25;
70 TRANSIT_CRASHING_ACTIVITY_CLOSE = 26;
71}