Skip to content

Commit b1b8b4c

Browse files
committed
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
1 parent 4a95d2d commit b1b8b4c

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)