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 SetDescriptor (fuchsia::input::report::DeviceDescriptorPtr descriptor)
Sets the fake's descriptor, which will be read with |GetDescriptor|.
Defined at line 15 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void GetDescriptor (GetDescriptorCallback callback)
Defined at line 20 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 71 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 79 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 27 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void GetInputReportsReaderV2 (::fidl::InterfaceRequest< ::fuchsia::input::report::InputReportsReaderV2>reader,uint16_tmax_unacknowledged_reports_limit,GetInputReportsReaderV2Callbackcallback)
Defined at line 37 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SendOutputReport (fuchsia::input::report::OutputReport report, SendOutputReportCallback callback)
Defined at line 44 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void SetFeatureReport (::fuchsia::input::report::FeatureReport report, SetFeatureReportCallback callback)
Defined at line 48 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
void GetFeatureReport (GetFeatureReportCallback callback)
Defined at line 57 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 50 of file ../../src/ui/input/testing/fake_input_report_device/fake.cc
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Defined at line 55 of file ../../src/ui/input/testing/fake_input_report_device/fake.h
Friends
class FakeInputReportsReader