diff options
author | 2022-10-28 16:24:33 +0100 | |
---|---|---|
committer | 2022-11-11 14:04:12 +0000 | |
commit | 8357775f16a66d973bb056b277ab4ca125c15544 (patch) | |
tree | bcfff8e4d58a24f78911ef27c459dc0ac71e7b8d | |
parent | 72a89137e05ea2c0a51cbe2f10a0e953ae1e5f77 (diff) |
Add viewports to PointerController dump
Bug: 254277939
Test: manually inspect `dumpsys input`
Change-Id: I3286d4d86c50d1df004f7115ad072ebc62cf12f4
-rw-r--r-- | libs/input/PointerController.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/input/PointerController.cpp b/libs/input/PointerController.cpp index 42606e3ee4df..3ae613195197 100644 --- a/libs/input/PointerController.cpp +++ b/libs/input/PointerController.cpp @@ -32,6 +32,7 @@ #define INDENT " " #define INDENT2 " " +#define INDENT3 " " namespace android { @@ -326,6 +327,10 @@ void PointerController::dump(std::string& dump) { dump += StringPrintf(INDENT2 "Presentation: %s\n", ftl::enum_string(mLocked.presentation).c_str()); dump += StringPrintf(INDENT2 "Pointer Display ID: %" PRIu32 "\n", mLocked.pointerDisplayId); + dump += StringPrintf(INDENT2 "Viewports:\n"); + for (const auto& info : mLocked.mDisplayInfos) { + info.dump(dump, INDENT3); + } } } // namespace android |