diff options
author | 2024-02-06 21:03:19 +0000 | |
---|---|---|
committer | 2024-02-06 21:03:19 +0000 | |
commit | dd09097ec2656aaf9cdf5a9e312f404d56f8b960 (patch) | |
tree | 7889a114196506c6598e557fa33a507eec7d164c /services/surfaceflinger/SurfaceFlinger.cpp | |
parent | 036c283b3f8da1d93eb4a9bcce72d409ebe145cc (diff) | |
parent | 9f0fc5906280883cac1129a7947b741f45a97ae1 (diff) |
Merge "Report hotplug error to framework" into main
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 89a341ff84..589ef99a63 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -3476,8 +3476,12 @@ const char* SurfaceFlinger::processHotplug(PhysicalDisplayId displayId, auto [displayModes, activeMode] = loadDisplayModes(displayId); if (!activeMode) { - // TODO(b/241286153): Report hotplug failure to the framework. ALOGE("Failed to hotplug display %s", to_string(displayId).c_str()); + if (FlagManager::getInstance().hotplug2()) { + mScheduler->onHotplugConnectionError(mAppConnectionHandle, + static_cast<int32_t>( + DisplayHotplugEvent::ERROR_UNKNOWN)); + } getHwComposer().disconnectDisplay(displayId); return nullptr; } |