Home
last modified time | relevance | path

Searched refs:eventHub (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/services/inputflinger/tests/fuzzers/
DTouchpadInputFuzzer.cpp33 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()
[all …]
DMultiTouchInputFuzzer.cpp26 static void addProperty(FuzzEventHub& eventHub, std::shared_ptr<ThreadSafeFuzzedDataProvider> fdp) { in addProperty() argument
29 {[&]() -> void { eventHub.addProperty("touch.deviceType", "touchScreen"); }, in addProperty()
31 eventHub.addProperty("touch.deviceType", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
34 eventHub.addProperty("touch.size.scale", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
37 eventHub.addProperty("touch.size.bias", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
40 eventHub.addProperty("touch.size.isSummed", in addProperty()
44 eventHub.addProperty("touch.size.calibration", in addProperty()
48 eventHub.addProperty("touch.pressure.scale", in addProperty()
52 eventHub.addProperty("touch.size.calibration", in addProperty()
56 eventHub.addProperty("touch.pressure.calibration", in addProperty()
[all …]
DKeyboardInputFuzzer.cpp26 static void addProperty(FuzzEventHub& eventHub, std::shared_ptr<ThreadSafeFuzzedDataProvider> fdp) { in addProperty() argument
29 {[&]() -> void { eventHub.addProperty("keyboard.orientationAware", "1"); }, in addProperty()
31 eventHub.addProperty("keyboard.orientationAware", in addProperty()
35 eventHub.addProperty("keyboard.doNotWakeByDefault", in addProperty()
39 eventHub.addProperty("keyboard.handlesKeyRepeat", in addProperty()
49 std::shared_ptr<FuzzEventHub> eventHub = std::make_shared<FuzzEventHub>(fdp); in LLVMFuzzerTestOneInput() local
50 FuzzInputReaderContext context(eventHub, fdp); in LLVMFuzzerTestOneInput()
61 [&]() -> void { addProperty(*eventHub.get(), fdp); }, in LLVMFuzzerTestOneInput()
DCursorInputFuzzer.cpp24 static void addProperty(FuzzEventHub& eventHub, std::shared_ptr<ThreadSafeFuzzedDataProvider> fdp) { in addProperty() argument
27 {[&]() -> void { eventHub.addProperty("cursor.mode", "pointer"); }, in addProperty()
28 [&]() -> void { eventHub.addProperty("cursor.mode", "navigation"); }, in addProperty()
30 eventHub.addProperty("cursor.mode", fdp->ConsumeRandomLengthString(100).data()); in addProperty()
33 eventHub.addProperty("cursor.orientationAware", in addProperty()
43 std::shared_ptr<FuzzEventHub> eventHub = std::make_shared<FuzzEventHub>(fdp); in LLVMFuzzerTestOneInput() local
44 FuzzInputReaderContext context(eventHub, fdp); in LLVMFuzzerTestOneInput()
56 addProperty(*eventHub.get(), fdp); in LLVMFuzzerTestOneInput()
DSwitchInputFuzzer.cpp29 std::shared_ptr<FuzzEventHub> eventHub = std::make_shared<FuzzEventHub>(fdp); in LLVMFuzzerTestOneInput() local
30 FuzzInputReaderContext context(eventHub, fdp); in LLVMFuzzerTestOneInput()
DMapperHelpers.h312 FuzzInputReaderContext(std::shared_ptr<EventHubInterface> eventHub, in FuzzInputReaderContext() argument
314 : mEventHub(eventHub), mPolicy(sp<FuzzInputReaderPolicy>::make(fdp)), mFdp(fdp) {} in FuzzInputReaderContext()
/frameworks/native/services/inputflinger/tests/
DInstrumentedInputReader.cpp21 InstrumentedInputReader::InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub, in InstrumentedInputReader() argument
24 : InputReader(eventHub, policy, listener), mFakeContext(this) {} in InstrumentedInputReader()
DInstrumentedInputReader.h32 InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub,
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h52 InputReader(std::shared_ptr<EventHubInterface> eventHub,
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp98 InputReader::InputReader(std::shared_ptr<EventHubInterface> eventHub, in InputReader() argument
102 mEventHub(eventHub), in InputReader()