1 /*
2  * Copyright 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 
17 package android.gui;
18 
19 import android.gui.DisplayMode;
20 import android.gui.HdrCapabilities;
21 
22 // Information about a physical display which may change on hotplug reconnect.
23 // Make sure to sync with libui DynamicDisplayInfo.h
24 
25 /** @hide */
26 parcelable DynamicDisplayInfo {
27     List<DisplayMode> supportedDisplayModes;
28 
29     int activeDisplayModeId;
30     float renderFrameRate;
31 
32     int[] supportedColorModes;
33     int activeColorMode;
34     HdrCapabilities hdrCapabilities;
35 
36     // True if the display reports support for HDMI 2.1 Auto Low Latency Mode.
37     // For more information, see the HDMI 2.1 specification.
38     boolean autoLowLatencyModeSupported;
39 
40     // True if the display reports support for Game Content Type.
41     // For more information, see the HDMI 1.4 specification.
42     boolean gameContentTypeSupported;
43 
44     // The boot display mode preferred by the implementation.
45     int preferredBootDisplayMode;
46 }
47