• Home
  • Raw
  • Download

Lines Matching refs:eventHub

33 void setAxisInfo(ThreadSafeFuzzedDataProvider& fdp, FuzzEventHub& eventHub, int32_t id, int axis) {  in setAxisInfo()  argument
35 eventHub.setAbsoluteAxisInfo(id, axis, in setAxisInfo()
47 void setAxisInfos(ThreadSafeFuzzedDataProvider& fdp, FuzzEventHub& eventHub, int32_t id) { in setAxisInfos() argument
48 setAxisInfo(fdp, eventHub, id, ABS_MT_SLOT); in setAxisInfos()
49 setAxisInfo(fdp, eventHub, id, ABS_MT_POSITION_X); in setAxisInfos()
50 setAxisInfo(fdp, eventHub, id, ABS_MT_POSITION_Y); in setAxisInfos()
51 setAxisInfo(fdp, eventHub, id, ABS_MT_PRESSURE); in setAxisInfos()
52 setAxisInfo(fdp, eventHub, id, ABS_MT_ORIENTATION); in setAxisInfos()
53 setAxisInfo(fdp, eventHub, id, ABS_MT_TOUCH_MAJOR); in setAxisInfos()
54 setAxisInfo(fdp, eventHub, id, ABS_MT_TOUCH_MINOR); in setAxisInfos()
55 setAxisInfo(fdp, eventHub, id, ABS_MT_WIDTH_MAJOR); in setAxisInfos()
56 setAxisInfo(fdp, eventHub, id, ABS_MT_WIDTH_MINOR); in setAxisInfos()
93 void setDeviceSpecificConfig(ThreadSafeFuzzedDataProvider& fdp, FuzzEventHub& eventHub) { in setDeviceSpecificConfig() argument
100 eventHub.addProperty("gestureProp.Touchpad_Stack_Version", in setDeviceSpecificConfig()
106 eventHub.addProperty(propertyName, fdp.ConsumeBool() ? "1" : "0"); in setDeviceSpecificConfig()
112 eventHub.addProperty(propertyName, std::to_string(fdp.ConsumeFloatingPoint<double>())); in setDeviceSpecificConfig()
117 eventHub.addProperty("gestureProp." + fdp.ConsumeRandomLengthString(), in setDeviceSpecificConfig()
140 std::shared_ptr<FuzzEventHub> eventHub = std::make_shared<FuzzEventHub>(fdp); in LLVMFuzzerTestOneInput() local
141 FuzzInputReaderContext context(eventHub, fdp); in LLVMFuzzerTestOneInput()
144 setAxisInfos(*fdp, *eventHub.get(), device.getId()); in LLVMFuzzerTestOneInput()
145 setDeviceSpecificConfig(*fdp, *eventHub.get()); in LLVMFuzzerTestOneInput()