From b0058744c3d701845ef149c5605f2fee50006f10 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Mon, 1 Jul 2024 16:42:49 -0700 Subject: Dump dispatcher state during publisher error When publisher encounters an error, it crashes. Today, those crashes lack the corresponding dispatcher context. In this CL, we change the pipeline so that the dispatcher crashes instead. This would help us see the dump of the dispatcher state and get better idea of how things went wrong. Bug: 347700797 Flag: EXEMPT refactor Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_break_on_failure --gtest_filter="*SpyThatPreventsSplittingWithApplication*" Change-Id: Iac148751703de833503c2638ef20dcb4cb137297 --- include/input/InputTransport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/input/InputTransport.h b/include/input/InputTransport.h index b26a194a0e..7d11f76c85 100644 --- a/include/input/InputTransport.h +++ b/include/input/InputTransport.h @@ -363,7 +363,8 @@ public: * Returns OK on success. * Returns WOULD_BLOCK if the channel is full. * Returns DEAD_OBJECT if the channel's peer has been closed. - * Returns BAD_VALUE if seq is 0 or if pointerCount is less than 1 or greater than MAX_POINTERS. + * Returns BAD_VALUE if seq is 0 or if pointerCount is less than 1 or greater than MAX_POINTERS, + * or if the verifier is enabled and the event failed verification upon publishing. * Other errors probably indicate that the channel is broken. */ status_t publishMotionEvent(uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source, -- cgit v1.2.3-59-g8ed1b