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