diff options
author | 2024-05-24 14:46:29 +0000 | |
---|---|---|
committer | 2024-05-24 14:46:29 +0000 | |
commit | 8a96ef91b59f3fb422f035fca831cc4515fbba6d (patch) | |
tree | 1e1b3612850a6832eb57458cab3d7c5559c2183b /libs/ui/DisplayIdentification.cpp | |
parent | dbecfa8c6e89fe56d323be583f73b620976ee12f (diff) |
Differentiate between empty and unrecognizable display identification
data
Test: system boots with no display identification error logs
Bug: 220045335
Change-Id: I6efa1daf523b17ea56f4a4b9e842d663804e1c15
Diffstat (limited to 'libs/ui/DisplayIdentification.cpp')
-rw-r--r-- | libs/ui/DisplayIdentification.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ui/DisplayIdentification.cpp b/libs/ui/DisplayIdentification.cpp index 82e5427317..ed7f1930aa 100644 --- a/libs/ui/DisplayIdentification.cpp +++ b/libs/ui/DisplayIdentification.cpp @@ -374,6 +374,11 @@ std::optional<PnpId> getPnpId(PhysicalDisplayId displayId) { std::optional<DisplayIdentificationInfo> parseDisplayIdentificationData( uint8_t port, const DisplayIdentificationData& data) { + if (data.empty()) { + ALOGI("Display identification data is empty."); + return {}; + } + if (!isEdid(data)) { ALOGE("Display identification data has unknown format."); return {}; |