[roll] Roll fuchsia [ui][input-pipeline] gestures: log reason for mismatch/endgesture

1. Update the definition of `ExamineEventResult::Mismatch`
   to require a string explaining the reason for the mismatch.
2. Update the definition of `VerifyEventResult::Mismatch`
   similarly.
3. Update the definition of `ProcessEventResult::EndGesture`
   similarly.
4. Update recognizers to provide reasons for these results.
5. Update `GestureArena` to log the reason each recognizer
   left the arena.

While there: remove some code duplication in `GestureArena`.
There were some `match` expressions where every arm returned
the same value. Instead of repeating the value in each arm,
just place the return value after the match.

Original-Bug: 105489
Test: fx tet input_pipeline_lib_tests
Test: manually examined log with patch

Example log output:
[00063.254215][62723][62725][scene_manager.cm] INFO: touchpad: input_pipeline::gestures::click::UnpressedContender mismatched due to too much motion
[00063.269210][62723][62725][scene_manager.cm] INFO: touchpad: input_pipeline::gestures::primary_tap::FingerContactContender mismatched due to too much motion
[00063.269280][62723][62725][scene_manager.cm] INFO: touchpad: input_pipeline::gestures::secondary_tap::OneFingerContactContender mismatched due to too much motion
[00063.269463][62723][62725][scene_manager.cm] INFO: touchpad: recognized Motion
[00063.775785][62723][62725][scene_manager.cm] INFO: touchpad: input_pipeline::gestures::motion::Winner ended due to wanted 1 contact

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/705739
Original-Revision: 4ba0fb89ac0fb06b2f5471dc4bd8898d013a49b0
GitOrigin-RevId: 393052dbf25df56b008c23145cb6f91c27092650
Change-Id: I818160c58fe079a169feaa6b28ea5a463ce0d5df
1 file changed
tree: 1cf7e551ee36a9deb9212adbd78b12afee059741
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
  12. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.