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

Commit c8e43a1b authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by Android (Google) Code Review
Browse files

Merge "Update usage of InputPublisher.getInputChannel" into main

parents 261e74ab bb5a1a01
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ private:
    uint32_t mNextPublishedSeq;

    const std::string getInputChannelName() {
        return mInputPublisher.getChannel()->getName();
        return mInputPublisher.getChannel().getName();
    }

    int handleEvent(int receiveFd, int events, void* data) override;
@@ -102,7 +102,7 @@ NativeInputEventSender::~NativeInputEventSender() {
}

status_t NativeInputEventSender::initialize() {
    const int receiveFd = mInputPublisher.getChannel()->getFd();
    const int receiveFd = mInputPublisher.getChannel().getFd();
    mMessageQueue->getLooper()->addFd(receiveFd, 0, ALOOPER_EVENT_INPUT, this, NULL);
    return OK;
}
@@ -112,7 +112,7 @@ void NativeInputEventSender::dispose() {
        LOG(DEBUG) << "channel '" << getInputChannelName() << "' ~ Disposing input event sender.";
    }

    mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel()->getFd());
    mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel().getFd());
}

status_t NativeInputEventSender::sendKeyEvent(uint32_t seq, const KeyEvent* event) {