Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8357775f authored by Michael Wright's avatar Michael Wright
Browse files

Add viewports to PointerController dump

Bug: 254277939
Test: manually inspect `dumpsys input`
Change-Id: I3286d4d86c50d1df004f7115ad072ebc62cf12f4
parent 72a89137
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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