diff options
author | 2025-02-19 21:38:27 +0000 | |
---|---|---|
committer | 2025-03-19 17:25:55 +0000 | |
commit | b1b8b4c497a1e4797563e8114f61fb4e17730258 (patch) | |
tree | 48e12c81d94b3992ddf32044540281c153af473b /libs | |
parent | 4a95d2d934900b45c8bc210fd15a2331d329c5f7 (diff) |
add ScreenPartStatus to displayIdentification
composer Hal 3 adds screenPartStatus to the DisplayIdentification
parcelable. The struct used in the client side should be updated to
reflect this.
Flag: EXEMPT refactor
Test: th
Change-Id: I8fb7ee099b2c54f3a4708aa19b3169d74e403e4b
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/include/ui/DisplayIdentification.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ui/include/ui/DisplayIdentification.h b/libs/ui/include/ui/DisplayIdentification.h index 1e3449c004..201d5e9ff5 100644 --- a/libs/ui/include/ui/DisplayIdentification.h +++ b/libs/ui/include/ui/DisplayIdentification.h @@ -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 { |