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

Commit 78548254 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Alex Chau
Browse files

Multiply stale event detection threshold by HwTimeoutMultiplier

Bug: 202433017
Change-Id: I76c71865238d43712cd0af020505a32a21db3ed9
Test: presubmit
parent bc8ab021
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -120,7 +120,8 @@ constexpr nsecs_t APP_SWITCH_TIMEOUT = 500 * 1000000LL; // 0.5sec

// Amount of time to allow for an event to be dispatched (measured since its eventTime)
// before considering it stale and dropping it.
constexpr nsecs_t STALE_EVENT_TIMEOUT = 10000 * 1000000LL; // 10sec
const nsecs_t STALE_EVENT_TIMEOUT = 10000 * 1000000LL // 10sec
        * HwTimeoutMultiplier();

// Log a warning when an event takes longer than this to process, even if an ANR does not occur.
constexpr nsecs_t SLOW_EVENT_PROCESSING_WARNING_TIMEOUT = 2000 * 1000000LL; // 2sec