class FakeInputDevice
Defined at line 21 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
Creates a fake device that vends fuchsia.input.report FIDL.
Calling `SetReport` and `SetDescriptor` will change the behavior of
the device when the client goes to read the report or the descriptor.
Public Methods
void GetDescriptor (GetDescriptorCallback callback)
Defined at line 18 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void FakeInputDevice (fidl::InterfaceRequest<fuchsia::input::report::InputDevice> request, async_dispatcher_t * dispatcher)
Defined at line 23 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
void SetReports (std::vector<fuchsia::input::report::InputReport> reports)
Sets the fake's report, which will be read with |ReadInputReports| and
|GetInputReport|. This also causes any InputReportReaders to receive data
they are waiting for.
Defined at line 69 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SetReports (std::vector<fuchsia::input::report::FeatureReport> reports)
Sets the fake's report, which will be read with |GetFeatureReport|.
Defined at line 77 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SetDescriptor (fuchsia::input::report::DeviceDescriptorPtr descriptor)
Sets the fake's descriptor, which will be read with |GetDescriptor|.
Defined at line 13 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void GetInputReportsReader (fidl::InterfaceRequest<fuchsia::input::report::InputReportsReader> reader)
The overriden FIDL function calls.
Defined at line 25 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SendOutputReport (fuchsia::input::report::OutputReport report, SendOutputReportCallback callback)
Defined at line 35 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void GetFeatureReport (GetFeatureReportCallback callback)
Defined at line 55 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void GetInputReport (::fuchsia::input::report::DeviceType device_type, GetInputReportCallback callback)
Defined at line 41 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SetFeatureReport (::fuchsia::input::report::FeatureReport report, SetFeatureReportCallback callback)
Defined at line 45 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Defined at line 52 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
Friends
class FakeInputReportsReader