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

Commit 1bbb0a93 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Mark InputDispatcher::dump as const" into udc-qpr-dev

parents 5443413a 5e20f27d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6590,7 +6590,7 @@ void InputDispatcher::traceWaitQueueLength(const Connection& connection) {
    }
}

void InputDispatcher::dump(std::string& dump) {
void InputDispatcher::dump(std::string& dump) const {
    std::scoped_lock _l(mLock);

    dump += "Input Dispatcher State:\n";
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public:
                             std::chrono::nanoseconds staleEventTimeout);
    ~InputDispatcher() override;

    void dump(std::string& dump) override;
    void dump(std::string& dump) const override;
    void monitor() override;
    bool waitForIdle() const override;
    status_t start() override;
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ public:
    /* Dumps the state of the input dispatcher.
     *
     * This method may be called on any thread (usually by the input manager). */
    virtual void dump(std::string& dump) = 0;
    virtual void dump(std::string& dump) const = 0;

    /* Called by the heatbeat to ensures that the dispatcher has not deadlocked. */
    virtual void monitor() = 0;