summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Daniel Zheng <zhengdaniel@google.com> 2025-03-19 10:29:15 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-19 10:29:15 -0700
commit7d0d256b62dee09e04528c4244a4f7026fa0fb8c (patch)
treeb46e7dddb33d4aebeab3c3ff23e159b49c015d32 /libs
parent2dc2afe2e0210dd42d80136ca425aed51ae69d4a (diff)
parentb1b8b4c497a1e4797563e8114f61fb4e17730258 (diff)
Merge "add ScreenPartStatus to displayIdentification" into main
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/include/ui/DisplayIdentification.h17
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 {