Loading services/inputflinger/dispatcher/InputDispatcher.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1030,7 +1030,7 @@ void InputDispatcher::dispatchOnce() { const nsecs_t nextAnrCheck = processAnrsLocked(); nextWakeupTime = std::min(nextWakeupTime, nextAnrCheck); if (input_flags::enable_per_device_input_latency_metrics()) { if (mPerDeviceInputLatencyMetricsFlag) { const nsecs_t nextStatisticsPush = processLatencyStatisticsLocked(); nextWakeupTime = std::min(nextWakeupTime, nextStatisticsPush); } Loading Loading @@ -4549,7 +4549,7 @@ void InputDispatcher::notifyKey(const NotifyKeyArgs& args) { newEntry->traceTracker = mTracer->traceInboundEvent(*newEntry); } if (input_flags::enable_per_device_input_latency_metrics()) { if (mPerDeviceInputLatencyMetricsFlag) { if (args.id != android::os::IInputConstants::INVALID_INPUT_EVENT_ID && IdGenerator::getSource(args.id) == IdGenerator::Source::INPUT_READER && !mInputFilterEnabled) { Loading services/inputflinger/dispatcher/InputDispatcher.h +6 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ #pragma once #include <com_android_input_flags.h> #include "AnrTracker.h" #include "CancelationOptions.h" #include "DragState.h" Loading Loading @@ -741,6 +743,10 @@ private: sp<android::gui::WindowInfoHandle> findWallpaperWindowBelow( const sp<android::gui::WindowInfoHandle>& windowHandle) const REQUIRES(mLock); /** Stores the value of the input flag for per device input latency metrics. */ const bool mPerDeviceInputLatencyMetricsFlag = com::android::input::flags::enable_per_device_input_latency_metrics(); }; } // namespace android::inputdispatcher Loading
services/inputflinger/dispatcher/InputDispatcher.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1030,7 +1030,7 @@ void InputDispatcher::dispatchOnce() { const nsecs_t nextAnrCheck = processAnrsLocked(); nextWakeupTime = std::min(nextWakeupTime, nextAnrCheck); if (input_flags::enable_per_device_input_latency_metrics()) { if (mPerDeviceInputLatencyMetricsFlag) { const nsecs_t nextStatisticsPush = processLatencyStatisticsLocked(); nextWakeupTime = std::min(nextWakeupTime, nextStatisticsPush); } Loading Loading @@ -4549,7 +4549,7 @@ void InputDispatcher::notifyKey(const NotifyKeyArgs& args) { newEntry->traceTracker = mTracer->traceInboundEvent(*newEntry); } if (input_flags::enable_per_device_input_latency_metrics()) { if (mPerDeviceInputLatencyMetricsFlag) { if (args.id != android::os::IInputConstants::INVALID_INPUT_EVENT_ID && IdGenerator::getSource(args.id) == IdGenerator::Source::INPUT_READER && !mInputFilterEnabled) { Loading
services/inputflinger/dispatcher/InputDispatcher.h +6 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ #pragma once #include <com_android_input_flags.h> #include "AnrTracker.h" #include "CancelationOptions.h" #include "DragState.h" Loading Loading @@ -741,6 +743,10 @@ private: sp<android::gui::WindowInfoHandle> findWallpaperWindowBelow( const sp<android::gui::WindowInfoHandle>& windowHandle) const REQUIRES(mLock); /** Stores the value of the input flag for per device input latency metrics. */ const bool mPerDeviceInputLatencyMetricsFlag = com::android::input::flags::enable_per_device_input_latency_metrics(); }; } // namespace android::inputdispatcher