Loading libs/ui/include/ui/DisplayIdentification.h +17 −0 Original line number Diff line number Diff line Loading @@ -39,12 +39,29 @@ struct DetailedTimingDescriptor { ui::Size physicalSizeInMm; }; // These values must match the ones in ScreenPartStatus.aidl file in the composer HAL enum class ScreenPartStatus : uint8_t { /** * Device cannot differentiate an original screen from a replaced screen. */ UNSUPPORTED = 0, /** * Device has the original screen it was manufactured with. */ ORIGINAL = 1, /** * Device has a replaced screen. */ REPLACED = 2, }; struct DisplayIdentificationInfo { PhysicalDisplayId id; std::string name; uint8_t port; std::optional<DeviceProductInfo> deviceProductInfo; std::optional<DetailedTimingDescriptor> preferredDetailedTimingDescriptor; ScreenPartStatus screenPartStatus; }; struct ExtensionBlock { Loading Loading
libs/ui/include/ui/DisplayIdentification.h +17 −0 Original line number Diff line number Diff line Loading @@ -39,12 +39,29 @@ struct DetailedTimingDescriptor { ui::Size physicalSizeInMm; }; // These values must match the ones in ScreenPartStatus.aidl file in the composer HAL enum class ScreenPartStatus : uint8_t { /** * Device cannot differentiate an original screen from a replaced screen. */ UNSUPPORTED = 0, /** * Device has the original screen it was manufactured with. */ ORIGINAL = 1, /** * Device has a replaced screen. */ REPLACED = 2, }; struct DisplayIdentificationInfo { PhysicalDisplayId id; std::string name; uint8_t port; std::optional<DeviceProductInfo> deviceProductInfo; std::optional<DetailedTimingDescriptor> preferredDetailedTimingDescriptor; ScreenPartStatus screenPartStatus; }; struct ExtensionBlock { Loading