1/* 2 * Copyright (C) 2022 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 android.server.display; 20 21option java_outer_classname = "DisplayProtoEnums"; 22option java_multiple_files = true; 23 24// Logging constants for DisplayService 25 26enum HbmState { 27 // Unknown state 28 HBM_UNKNOWN = 0; 29 // HBM is off. 30 HBM_OFF = 1; 31 // HBM is on for HDR playback. 32 HBM_ON_HDR = 2; 33 // HBM is on for sunlight visibility. 34 HBM_ON_SUNLIGHT = 3; 35} 36 37enum HbmStateTransitionReason { 38 HBM_TRANSITION_REASON_UNKNOWN = 0; 39 // Hbm sunlight visibility is off due to ambient light drop below threshold. 40 HBM_SV_OFF_LUX_DROP = 1; 41 // Hbm sunlight visibility is off due to out of time budget. 42 HBM_SV_OFF_TIME_LIMIT = 2; 43 // Hbm sunlight visibility is off due to thermal status exceeding threshold. 44 HBM_SV_OFF_THERMAL_LIMIT = 3; 45 // Hbm sunlight visibility is off due to HDR playing. 46 HBM_SV_OFF_HDR_PLAYING = 4; 47 // Hbm sunlight visibility is off due to battery saving is on. 48 HBM_SV_OFF_BATTERY_SAVE_ON = 5; 49 // Hbm sunlight visibility is off due to display off. 50 HBM_SV_OFF_DISPLAY_OFF = 6; 51 // Hbm sunlight visibility is off due to auto brightness off. 52 HBM_SV_OFF_AUTOBRIGHTNESS_OFF = 7; 53 // Hbm HDR is off due to thermal status exceeding threshold. 54 HBM_HDR_OFF_THERMAL_LIMIT = 8; 55 // Hbm sunlight visibility is off due to requested brightness is lower than 56 // HBM transition point. Note if brightness is low due to thermal cap, the 57 // reason will be HBM_SV_OFF_THERMAL_LIMIT. 58 HBM_SV_OFF_LOW_REQUESTED_BRIGHTNESS = 9; 59} 60 61enum ExternalDisplayState { 62 UNKNOWN = 0; 63 DISCONNECTED = 1; 64 CONNECTED = 2; 65 DISABLED = 3; 66 KEYGUARD = 4; 67 MIRRORING = 5; 68 EXTENDED = 6; 69 PRESENTATION_WHILE_MIRRORING = 7; 70 PRESENTATION_WHILE_EXTENDED = 8; 71 PRESENTATION_ENDED = 9; 72 AUDIO_SINK_CHANGED = 10; 73 ERROR_HOTPLUG_CONNECTION = 11; 74 ERROR_DISPLAYPORT_LINK_FAILED = 12; 75 ERROR_CABLE_NOT_CAPABLE_DISPLAYPORT = 13; 76} 77