From d6d7df73241ba78a1e41a7ad1c358164e2358867 Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Fri, 7 Mar 2025 11:14:03 +0000 Subject: [CD Cursor] Add DisplayTopologyValidator Add a DisplayTopologyValidator to verify assumptions made in the PointerChoreographer and InputDispatcher, some sanity checks on the topology graph to flag issues realted to topology for debugging. The validator will be used in the InputManager to validated and discard invalid topology updates. Test: atest inputflinger_tests Bug: 401219231 Flag: com.android.input.flags.enable_display_topology_validation Change-Id: I624bc32b73144cc047f317ef889f7f07cc1c3dfc --- include/input/DisplayTopologyGraph.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/input') diff --git a/include/input/DisplayTopologyGraph.h b/include/input/DisplayTopologyGraph.h index 3ae865a33a..ce7259e09a 100644 --- a/include/input/DisplayTopologyGraph.h +++ b/include/input/DisplayTopologyGraph.h @@ -55,6 +55,8 @@ struct DisplayTopologyGraph { ui::LogicalDisplayId primaryDisplayId = ui::LogicalDisplayId::INVALID; std::unordered_map> graph; std::unordered_map displaysDensity; + + bool isValid() const; }; } // namespace android -- cgit v1.2.3-59-g8ed1b