summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2024-07-01 16:42:49 -0700
committer Siarhei Vishniakou <svv@google.com> 2024-07-06 20:42:37 +0000
commitb0058744c3d701845ef149c5605f2fee50006f10 (patch)
treef3e6f5e079265b56bd51e19d6bcf6b2b7afa970c /include
parent19ad7d0ec189c8e0e524e0783519701bca964c2f (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/input/InputTransport.h3
1 files changed, 2 insertions, 1 deletions
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,