Loading libs/input/Input.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -374,7 +374,7 @@ std::ostream& operator<<(std::ostream& out, const KeyEvent& event) { out << ", deviceId=" << event.getDeviceId(); out << ", source=" << inputEventSourceToString(event.getSource()); out << ", displayId=" << event.getDisplayId(); out << ", eventId=" << event.getId(); out << ", eventId=0x" << std::hex << event.getId() << std::dec; out << "}"; return out; } Loading Loading @@ -1051,7 +1051,7 @@ std::ostream& operator<<(std::ostream& out, const MotionEvent& event) { out << ", deviceId=" << event.getDeviceId(); out << ", source=" << inputEventSourceToString(event.getSource()); out << ", displayId=" << event.getDisplayId(); out << ", eventId=" << event.getId(); out << ", eventId=0x" << std::hex << event.getId() << std::dec; out << "}"; return out; } Loading services/inputflinger/tests/FakeInputTracingBackend.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,11 @@ namespace android::inputdispatcher { namespace { constexpr auto TRACE_TIMEOUT = std::chrono::milliseconds(100); // Use a larger timeout while waiting for events to be traced, compared to the timeout used while // waiting to receive events through the input channel. Events are traced from a separate thread, // which does not have the same high thread priority as the InputDispatcher's thread, so the tracer // is expected to lag behind the Dispatcher at times. constexpr auto TRACE_TIMEOUT = std::chrono::seconds(5); base::ResultError<> error(const std::ostringstream& ss) { return base::ResultError(ss.str(), BAD_VALUE); Loading Loading
libs/input/Input.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -374,7 +374,7 @@ std::ostream& operator<<(std::ostream& out, const KeyEvent& event) { out << ", deviceId=" << event.getDeviceId(); out << ", source=" << inputEventSourceToString(event.getSource()); out << ", displayId=" << event.getDisplayId(); out << ", eventId=" << event.getId(); out << ", eventId=0x" << std::hex << event.getId() << std::dec; out << "}"; return out; } Loading Loading @@ -1051,7 +1051,7 @@ std::ostream& operator<<(std::ostream& out, const MotionEvent& event) { out << ", deviceId=" << event.getDeviceId(); out << ", source=" << inputEventSourceToString(event.getSource()); out << ", displayId=" << event.getDisplayId(); out << ", eventId=" << event.getId(); out << ", eventId=0x" << std::hex << event.getId() << std::dec; out << "}"; return out; } Loading
services/inputflinger/tests/FakeInputTracingBackend.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,11 @@ namespace android::inputdispatcher { namespace { constexpr auto TRACE_TIMEOUT = std::chrono::milliseconds(100); // Use a larger timeout while waiting for events to be traced, compared to the timeout used while // waiting to receive events through the input channel. Events are traced from a separate thread, // which does not have the same high thread priority as the InputDispatcher's thread, so the tracer // is expected to lag behind the Dispatcher at times. constexpr auto TRACE_TIMEOUT = std::chrono::seconds(5); base::ResultError<> error(const std::ostringstream& ss) { return base::ResultError(ss.str(), BAD_VALUE); Loading