Loading services/inputflinger/reader/mapper/TouchInputMapper.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <algorithm> #include <cinttypes> #include <chrono> #include <cmath> #include <cstddef> #include <sstream> Loading Loading @@ -51,6 +52,8 @@ namespace android { using std::chrono_literals::operator""ms; namespace input_flags = com::android::input::flags; // --- Constants --- Loading Loading @@ -1393,6 +1396,9 @@ std::list<NotifyArgs> TouchInputMapper::sync(nsecs_t when, nsecs_t readTime) { std::string line; while (std::getline(stream, line, '\n')) { ALOGD(INDENT "%s", line.c_str()); // To prevent overwhelming liblog, add a small delay between each line to give it // time to process the data written so far. std::this_thread::sleep_for(1ms); } } Loading Loading
services/inputflinger/reader/mapper/TouchInputMapper.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <algorithm> #include <cinttypes> #include <chrono> #include <cmath> #include <cstddef> #include <sstream> Loading Loading @@ -51,6 +52,8 @@ namespace android { using std::chrono_literals::operator""ms; namespace input_flags = com::android::input::flags; // --- Constants --- Loading Loading @@ -1393,6 +1396,9 @@ std::list<NotifyArgs> TouchInputMapper::sync(nsecs_t when, nsecs_t readTime) { std::string line; while (std::getline(stream, line, '\n')) { ALOGD(INDENT "%s", line.c_str()); // To prevent overwhelming liblog, add a small delay between each line to give it // time to process the data written so far. std::this_thread::sleep_for(1ms); } } Loading