Skip to content

Commit 7d0d256

Browse files
zbw182Android (Google) Code Review
authored andcommitted
Merge "add ScreenPartStatus to displayIdentification" into main
2 parents 2dc2afe + b1b8b4c commit 7d0d256

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

libs/ui/include/ui/DisplayIdentification.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,29 @@ struct DetailedTimingDescriptor {
3939
ui::Size physicalSizeInMm;
4040
};
4141

42+
// These values must match the ones in ScreenPartStatus.aidl file in the composer HAL
43+
enum class ScreenPartStatus : uint8_t {
44+
/**
45+
* Device cannot differentiate an original screen from a replaced screen.
46+
*/
47+
UNSUPPORTED = 0,
48+
/**
49+
* Device has the original screen it was manufactured with.
50+
*/
51+
ORIGINAL = 1,
52+
/**
53+
* Device has a replaced screen.
54+
*/
55+
REPLACED = 2,
56+
};
57+
4258
struct DisplayIdentificationInfo {
4359
PhysicalDisplayId id;
4460
std::string name;
4561
uint8_t port;
4662
std::optional<DeviceProductInfo> deviceProductInfo;
4763
std::optional<DetailedTimingDescriptor> preferredDetailedTimingDescriptor;
64+
ScreenPartStatus screenPartStatus;
4865
};
4966

5067
struct ExtensionBlock {

0 commit comments

Comments
 (0)