[roll] Roll fuchsia [starnix] implement InputFile::read()

Complete the initial implementation of Starnix touch support:

1. Add code to translate from Fuchsia's touch events into
   UAPI input events.
2. Provide UAPI clients a way to read the ranges of the
   X and Y axes.
3. Implement `FileOps::read()`, so that UAPI clients can
   read the translated events.
4. Report support for the `BTN_TOOL_FINGER` button, which
   UAPI clients can recognize as indicating that one
   finger is in contact with the touch sensor.
5. Update the existing `query_events()` test: since the
   updated implementation of the reader thread filters
   out `EMPTY` events, the test needs to inject a non-empty
   event to cause `FileOps::query_events()` to return `POLLIN`.

While there: add some advice on when to call `start_relay()`,
which will help keep Scenic happy.

Original-Bug: 123785
Test: fx test test_chromiumos_syscalls
Test: fx test starnix-tests
Test: manual (see below)

Manual test
-----------
1. Booted Starnix in emulator.
2. Verified tapping and swiping work.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/823845
Original-Revision: 76fa04cfd67507fb1e8d30db9964495fe6af5522
GitOrigin-RevId: 78d84787fc7711c63dc551c27117da93cde0b75d
Change-Id: I59e06b81dc118cc12c75740a9e8f202f5d68c939
1 file changed
tree: 80bdbbd4b832bac0e54e4f2fda0b11a02bbc1c9d
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. 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.