cmds: Add evemu-record command
This is a Rust implementation of the command of the same name in the
FreeDesktop evemu suite [0].
The first version of this CL caused a build breakage on x86 due to
different sizes of the fields in libc::timeval. This version uses the
nix crate's wrapper to handle changes in timeval size by platform.
[0]: https://gitlab.freedesktop.org/libevdev/evemu
Bug: 302297266
Test: record events from an input peripheral (such as a mouse) and
replay them using the FreeDesktop implementation of evemu-play
Ignore-AOSP-First: the directory does not yet exist in AOSP, so OWNERS
can safely be added here
Change-Id: I7851f6770e08babc2caa8c58c18612ee8543b401
4 files changed